/* ==========================================================================
   Fracct Project Management — single-page site
   Brand palette: Fracct 2023 Brand Book, Sheet 14
   Persian Blue (primary) · Resolution Blue (secondary) · Sandal (complementary)
   Type: Roboto (UI and headlines) paired with Lora (body and italic accents).
   Look: near-black surfaces, glass cards with fine gradient borders, soft layered
   shadows and Persian Blue glows; light panels overlap the dark sections.
   ========================================================================== */

:root {
  /* Persian Blue */
  --persian: #3025b1;
  --persian-dark: #21197b;
  --persian-bright: #493bed;
  --persian-light: #8377ff;
  --lavender: #d9d6ff;
  /* Resolution Blue */
  --resolution: #29396f;
  --resolution-dark: #112155;
  --resolution-light: #738ad6;
  /* Sandal */
  --sandal: #a5865d;
  --sandal-dark: #463621;
  --sandal-light: #efba79;
  /* Neutrals */
  --black: #171717;
  --ink: #1a272d;
  --ink-soft: #3b525c;
  --stone: #565c6a;
  --stone-light: #9a9daa;
  --paper: #fbfbfc;
  --paper-2: #f1f3f7;
  --line: #e4e7ee;
  --white: #ffffff;

  --font-display: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Lora", Georgia, serif;
  --font-logo: "Roboto", "Helvetica Neue", Arial, sans-serif;

  --radius: 5px;        /* Fracct Homes: small elements */
  --radius-lg: 28px;    /* fracct.com: cards and panels */
  --sheet-r: 40px;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 80px;

  /* Layered shadows */
  --shadow-sm: 0 1px 2px rgba(17, 17, 40, 0.06), 0 8px 24px -12px rgba(17, 17, 40, 0.18);
  --shadow-md: 0 2px 4px rgba(17, 17, 40, 0.05), 0 24px 48px -24px rgba(17, 17, 40, 0.28);
  --shadow-lg: 0 4px 8px rgba(10, 10, 30, 0.08), 0 40px 80px -32px rgba(10, 10, 40, 0.45);
  --glow: 0 0 0 1px rgba(131, 119, 255, 0.25), 0 20px 60px -20px rgba(73, 59, 237, 0.55);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--ink);
  font-family: var(--font-display); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
::selection { background: rgba(48, 37, 177, 0.2); }
:focus-visible { outline: 2px solid var(--persian-bright); outline-offset: 3px; border-radius: var(--radius); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--persian); color: var(--white); padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 16px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 128px) 0; }

/* ---------- Typography ---------- */
.eyebrow, .label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--persian); margin-bottom: 22px;
}
.eyebrow::before, .label::before {
  content: ""; display: block; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent), 0 0 14px currentColor;
}
.eyebrow-light, .label-light { color: var(--sandal-light); }

.title {
  font-size: clamp(2.2rem, 3.6vw + 0.8rem, 4rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 400;
  color: var(--black);
}
.title em { color: var(--persian); letter-spacing: -0.015em; }
.display { font-size: clamp(2rem, 3.4vw + 0.8rem, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 400; }
.display-light { color: var(--white); }
.display-light em { color: var(--sandal-light); }
.body-lg, .lede {
  margin-top: 22px; max-width: 60ch;
  font-family: var(--font-serif); font-size: clamp(1.02rem, 0.35vw + 0.95rem, 1.15rem); line-height: 1.75; color: var(--stone);
}
.body-light, .lede-light { color: rgba(255, 255, 255, 0.75); }

.section-head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .label { justify-content: center; }
.section-head-center .body-lg { margin-left: auto; margin-right: auto; }
.section-head-row { max-width: none; display: grid; gap: 24px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head-row { grid-template-columns: 1.2fr 1fr; gap: 64px; } .section-head-row .body-lg { margin-top: 0; } }

/* ---------- Buttons (fracct.com pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-size: 0.98rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn-pill:has(.btn-arrow) { padding: 6px 6px 6px 26px; }
.btn-arrow {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--black); transition: transform .4s var(--ease);
}
.btn-arrow::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--white); border-top: 1.5px solid var(--white);
  transform: translate(-65%, -50%) rotate(45deg);
}
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-light { background: var(--white); color: var(--black); box-shadow: 0 10px 30px -12px rgba(255, 255, 255, 0.35); }
.btn-light:hover { background: var(--lavender); }
.btn-primary { background: linear-gradient(135deg, var(--persian-bright), var(--persian-dark)); color: var(--white); box-shadow: 0 10px 30px -10px rgba(73, 59, 237, 0.7); }
.btn-primary .btn-arrow { background: var(--white); }
.btn-primary .btn-arrow::after { border-color: var(--persian-dark); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(73, 59, 237, 0.85); }
.btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-block { width: 100%; justify-content: space-between; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); color: var(--white);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-solid {
  background: rgba(251, 251, 252, 0.9); color: var(--black);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .header-cta { background: var(--persian-dark); color: var(--white); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--persian), var(--persian-light) 60%, var(--sandal-light)); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

/* Logo lockup: Fracct logo | Project Management */
.lockup { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; }
.lockup-logo { height: 30px; width: auto; display: block; }
.lockup-logo-blue { display: none; }
.lockup-divider { width: 1px; height: 34px; background: currentColor; opacity: 0.35; }
.lockup-text {
  font-family: var(--font-display); font-weight: 500; font-size: 0.82rem; line-height: 1.12;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.site-header.is-solid .lockup-logo-white,
body.nav-open .site-header .lockup-logo-white { display: none; }
.site-header.is-solid .lockup-logo-blue,
body.nav-open .site-header .lockup-logo-blue { display: block; }
.site-header.is-solid .lockup { color: var(--persian); }
.lockup-footer .lockup-logo { height: 34px; }
.lockup-footer { color: var(--white); }
@media (max-width: 480px) {
  .lockup { gap: 12px; }
  .lockup-logo { height: 24px; }
  .lockup-divider { height: 28px; }
  .lockup-text { font-size: 0.7rem; letter-spacing: 0.12em; }
}

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 34px; }
.nav-list a:not(.btn) { position: relative; text-decoration: none; font-size: 0.95rem; font-weight: 400; letter-spacing: 0.01em; padding: 6px 0; }
.nav-list a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: currentColor; transition: width .5s var(--ease); }
.nav-list a:not(.btn):hover::after, .nav-list a.is-active::after { width: 100%; }
.site-header.is-solid .nav-list a.is-active { color: var(--persian); }
.nav-cta-mobile { display: none; }
.nav-list a { white-space: nowrap; }
@media (max-width: 1320px) { .nav-list { gap: 22px; } .header-inner { gap: 24px; } }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 1180px) {
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .nav { margin-left: 0; }
  .nav-list {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 24px var(--gutter) 40px;
    background: var(--paper); color: var(--black);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav-list.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list li { width: 100%; }
  .nav-list a:not(.btn) { display: block; width: 100%; padding: 16px 0; font-size: 1.8rem; font-weight: 300; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
  .nav-list a:not(.btn)::after { display: none; }
  .nav-cta-mobile { display: block; margin-top: 24px; }
  .nav-cta-mobile .btn { width: 100%; padding: 16px; }
  body.nav-open .site-header { background: var(--paper); color: var(--black); backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.nav-open .site-header .lockup { color: var(--persian); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ----------
   A "blueprint to build" composition: positioning statement on a drawing grid,
   the project framed as a technical drawing, and floating oversight cards. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column;
  color: var(--white);
  background:
    radial-gradient(55% 60% at 85% 35%, rgba(73, 59, 237, 0.32), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(165, 134, 93, 0.16), transparent 70%),
    var(--black);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(90% 80% at 60% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(90% 80% at 60% 40%, #000 30%, transparent 85%);
}

.hero-layout {
  flex: 1;
  display: grid; align-items: center;
  grid-template-columns: 1fr;
  gap: 56px;
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 32px;
}
@media (min-width: 1020px) {
  .hero-layout { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
}

.hero-title {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.3rem, 4vw + 0.4rem, 4.6rem);
  line-height: 1; letter-spacing: -0.035em;
}
.hero-line:first-child { font-weight: 300; }
.hero-line { display: block; }
.hero-title .dot { color: var(--sandal-light); }
.hero-lede {
  margin-top: 30px; max-width: 48ch;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);
  line-height: 1.7; color: rgba(255, 255, 255, 0.78);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.72);
}
.hero-proof li { position: relative; padding-left: 20px; }
.hero-proof li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 10px; height: 6px;
  border-left: 1.5px solid var(--sandal-light); border-bottom: 1.5px solid var(--sandal-light);
  transform: rotate(-45deg);
}

/* Staggered entrance */
.hero-in { opacity: 0; transform: translateY(20px); animation: hero-in 1s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 150ms); }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* Visual composition */
.hero-visual { position: relative; padding: 16px 0 28px; max-width: 480px; width: 100%; justify-self: center; }
@media (min-width: 1020px) { .hero-visual { justify-self: end; } }
.hero-frame {
  position: relative; aspect-ratio: 4 / 4.9; border-radius: var(--radius-lg); overflow: hidden;
  margin-left: 12%;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.7);
  opacity: 0; animation: frame-in 1.4s var(--ease) 0.3s forwards;
}
@keyframes frame-in { from { opacity: 0; clip-path: inset(100% 0 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.12); animation: hero-zoom 12s var(--ease) 0.3s forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 33, 85, 0.35), rgba(17, 33, 85, 0.05) 40%, rgba(17, 33, 85, 0.55));
}

.blueprint { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.bp {
  fill: none; stroke: rgba(255, 255, 255, 0.75); stroke-width: 1; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: bp-draw 1.4s var(--ease) 1.1s forwards;
}
.bp-2 { animation-delay: 1.3s; }
.bp-3 { animation-delay: 1.5s; }
.bp-4 { animation-delay: 1.7s; stroke: rgba(239, 186, 121, 0.7); }
.bp-5 { animation-delay: 1.9s; stroke: var(--sandal-light); }
@keyframes bp-draw { to { stroke-dashoffset: 0; } }

.bp-label {
  position: absolute; z-index: 2;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0; animation: hero-in 0.8s var(--ease) 2s forwards; transform: translateY(6px);
}
.bp-label-top { top: 4.5%; left: 30%; translate: -50% 0; background: rgba(23, 23, 23, 0.6); padding: 2px 8px; border-radius: 3px; }
.bp-label-side { right: 0.5%; top: 50%; writing-mode: vertical-rl; background: rgba(23, 23, 23, 0.6); padding: 8px 2px; border-radius: 3px; translate: 0 -50%; }
.bp-label-lvl1 { left: 8%; top: calc(38.5% - 18px); color: var(--sandal-light); }

/* Floating oversight cards */
.hc {
  position: absolute; z-index: 3;
  background: rgba(251, 251, 252, 0.96); color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  opacity: 0; animation: card-in 1s var(--ease) forwards;
}
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { translate: 0 -8px; } }

.hc-schedule {
  left: 0; bottom: 18%; width: 70%; padding: 18px 18px 16px;
  animation: card-in 1s var(--ease) 1.2s forwards, float 7s ease-in-out 2.4s infinite; }
.hc-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.hc-head b { font-weight: 500; letter-spacing: 0.04em; text-transform: none; font-size: 0.85rem; color: var(--persian); }
.gantt { position: relative; margin-top: 16px; margin-bottom: 18px; display: grid; gap: 9px; }
.g-row { display: grid; grid-template-columns: 112px 1fr; white-space: nowrap; align-items: center; gap: 10px; font-size: 0.72rem; color: var(--stone); }
.g-row i {
  display: block; height: 8px; border-radius: 4px; position: relative;
  margin-left: var(--s); width: var(--w);
  background: var(--line);
  transform-origin: left; transform: scaleX(0);
  animation: grow 1s var(--ease) forwards;
}
.g-row:nth-child(1) i { animation-delay: 1.6s; }
.g-row:nth-child(2) i { animation-delay: 1.75s; }
.g-row:nth-child(3) i { animation-delay: 1.9s; }
.g-row:nth-child(4) i { animation-delay: 2.05s; }
@keyframes grow { to { transform: scaleX(1); } }
.g-row i.g-done { background: var(--resolution); }
.g-row i.g-now { background: linear-gradient(90deg, var(--persian) 0 35%, var(--sandal-light) 35%); }
.g-today {
  position: absolute; top: -4px; bottom: -4px;
  left: calc(122px + (100% - 122px) * 0.62);
  width: 1px; background: var(--persian);
  opacity: 0; animation: hero-in .6s var(--ease) 2.4s forwards;
}
.g-today em {
  position: absolute; bottom: -20px; left: 50%; translate: -50% 0;
  font-family: var(--font-sans); font-style: normal; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--persian); white-space: nowrap;
}

.hc-budget {
  right: -4%; top: 8%; padding: 14px 18px 14px 14px;
  display: flex; align-items: center; gap: 14px;
  animation: card-in 1s var(--ease) 1.45s forwards, float 8s ease-in-out 3s infinite;
}
.ring { width: 52px; height: 52px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--paper-2); stroke-width: 4; }
.ring .ring-val {
  stroke: var(--sandal); stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: ring 1.6s var(--ease) 1.9s forwards;
}
@keyframes ring { to { stroke-dashoffset: calc(100 - var(--v)); } }
.hc-k { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.hc-v { display: block; font-size: 1.5rem; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.hc-ok { display: block; font-size: 0.72rem; color: var(--persian); }

.hc-chip {
  right: 2%; bottom: 2%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; font-size: 0.78rem; white-space: nowrap;
  background: rgba(23, 23, 23, 0.85); color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: card-in 1s var(--ease) 1.7s forwards;
}
.hc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sandal-light); box-shadow: 0 0 0 0 rgba(239, 186, 121, 0.6); animation: pulse 2.4s ease-out 2.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 186, 121, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(239, 186, 121, 0); } }

@media (max-width: 1019px) {
  .hero-visual { max-width: 460px; }
}
@media (max-width: 560px) {
  .hero-frame { margin-left: 8%; }
  .hc-schedule { width: 86%; bottom: 14%; padding: 14px; }
  .g-row { grid-template-columns: 104px 1fr; }
  .g-today { left: calc(114px + (100% - 114px) * 0.62); }
  .hc-budget { right: -2%; top: 4%; padding: 10px 14px 10px 10px; }
  .ring { width: 40px; height: 40px; }
  .hc-v { font-size: 1.2rem; }
  .hc-chip { display: none; }
}

/* Process rail with track dots */
.hero-rail { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-bottom: var(--sheet-r); }
.rail { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.rail li { position: relative; }
.rail a {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 24px 16px 24px 0; text-decoration: none;
}
.rail a::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--black); border: 1.5px solid rgba(255, 255, 255, 0.45);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.rail li:first-child a::before { background: var(--sandal-light); border-color: var(--sandal-light); }
.rail a:hover::before { background: var(--sandal-light); border-color: var(--sandal-light); transform: scale(1.3); }
.rail-no { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--sandal-light); }
.rail-label { font-size: 0.92rem; color: rgba(255, 255, 255, 0.88); transition: color .3s var(--ease); }
.rail a:hover .rail-label { color: var(--white); }
@media (max-width: 900px) {
  .rail { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .rail::-webkit-scrollbar { display: none; }
  .rail li { flex: 0 0 auto; scroll-snap-align: start; }
  .rail a { padding: 20px 0; }
  .rail li:last-child { padding-right: var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-in, .hero-frame, .hc, .bp-label, .g-today { opacity: 1 !important; transform: none !important; animation: none !important; }
  .bp { stroke-dashoffset: 0; animation: none; }
  .g-row i { transform: none; animation: none; }
  .ring .ring-val { stroke-dashoffset: calc(100 - var(--v)); animation: none; }
}

/* ---------- Rounded panels (fracct.com) ----------
   Light panels overlap the dark sections around them with large rounded corners. */
.sheet {
  position: relative; z-index: 2;
  background: var(--paper); color: var(--ink);
  border-radius: var(--sheet-r);
  margin-top: calc(var(--sheet-r) * -1);
}
.sheet + .process,
.sheet + .contact { margin-top: calc(var(--sheet-r) * -1); padding-top: calc(clamp(72px, 9vw, 128px) + var(--sheet-r)); }
.process { padding-bottom: calc(clamp(72px, 9vw, 128px) + var(--sheet-r)); }

/* ---------- About ---------- */
.statement {
  max-width: 26ch;
  font-size: clamp(1.9rem, 3.4vw + 0.6rem, 3.9rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 300;
  color: var(--black);
}
.statement .w { color: #c4c7d0; transition: color .35s ease; }
.statement .w.on { color: var(--black); }
.statement .w.accent.on { color: var(--persian); }

.about-grid { display: grid; gap: clamp(40px, 6vw, 88px); grid-template-columns: 1fr; margin-top: clamp(56px, 7vw, 96px); align-items: start; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 0.9fr 1.1fr; } }
.about-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; transition: transform 1.2s var(--ease); }
.about-media:hover img { transform: scale(1.03); }
@media (min-width: 960px) { .about-media { position: sticky; top: calc(var(--header-h) + 32px); } }
.about-copy .body-lg + .body-lg { margin-top: 18px; }
.facts { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: minmax(130px, 0.6fr) 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts b { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; color: var(--persian); }
.facts span { color: var(--stone); font-size: 0.98rem; }

/* ---------- Before / after slider ---------- */
.ba { position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.about-media.ba:hover img { transform: none; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -1px 0;
  background: var(--white); box-shadow: 0 0 18px rgba(73, 59, 237, 0.7); pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; translate: -50% -50%; border-radius: 50%;
  background: rgba(23, 23, 23, 0.55); border: 1.5px solid var(--white);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
}
.ba-handle span::before, .ba-handle span::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px;
  border-top: 1.5px solid var(--white); border-left: 1.5px solid var(--white);
}
.ba-handle span::before { left: 13px; transform: translateY(-50%) rotate(-45deg); }
.ba-handle span::after { right: 13px; transform: translateY(-50%) rotate(135deg); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible + .ba-tag-before, .ba-tag-after { white-space: nowrap; }
@media (max-width: 600px) { .ba-sub { display: none; } }
.ba-cap { outline: 2px solid var(--persian-bright); }
.ba-tag {
  position: absolute; top: 18px; padding: 7px 14px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; pointer-events: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ba-tag-before { left: 18px; background: rgba(255, 255, 255, 0.85); color: var(--resolution); box-shadow: var(--shadow-sm); }
.ba-tag-after { right: 18px; background: rgba(23, 23, 23, 0.6); color: var(--white); }
.ba-cap {
  position: absolute; bottom: 18px; left: 50%; translate: -50% 0; padding: 7px 14px; border-radius: 999px;
  background: rgba(23, 23, 23, 0.6); color: var(--white); font-size: 0.75rem; letter-spacing: 0.06em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none;
}

/* ---------- Services: stacking glass cards ---------- */
.services { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); }
.about { padding-bottom: clamp(24px, 3vw, 40px); }
.stack { display: grid; gap: 72px; }
.stack-card {
  --accent: var(--persian-bright);
  position: sticky; top: calc(var(--header-h) + 24px);
  display: grid; gap: 28px; grid-template-columns: 1fr;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) clamp(40px, 4.5vw, 64px);
  border-radius: var(--radius-lg); color: var(--white);
  /* Glass surface + fine gradient border */
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, #1d1d27 0%, #0e0e14 100%) padding-box,
    linear-gradient(140deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04) 40%, color-mix(in srgb, var(--accent) 60%, transparent)) border-box;
}
.stack-card:nth-child(2) { top: calc(var(--header-h) + 36px); --accent: var(--persian-light); }
.stack-card:nth-child(3) { top: calc(var(--header-h) + 48px); --accent: var(--resolution-light); }
.stack-card:nth-child(4) { top: calc(var(--header-h) + 60px); --accent: var(--sandal-light); }
.stack-card:nth-child(5) { top: calc(var(--header-h) + 72px); --accent: var(--persian-light); }
.stack-card:nth-child(6) { top: calc(var(--header-h) + 84px); --accent: var(--sandal-light); }
@media (min-width: 900px) {
  .stack-card { grid-template-columns: 1.15fr 0.85fr; grid-template-areas: "main media" "list media"; gap: 24px 48px; min-height: 460px; }
  .stack-main { grid-area: main; }
  .stack-list { grid-area: list; }
  .stack-media { grid-area: media; }
}
.stack-main { display: flex; flex-direction: column; }
.stack-no {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.22em; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.stack-card h3 { margin-top: 20px; font-size: clamp(1.9rem, 2.2vw + 0.8rem, 2.8rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 400; }
.stack-main p { margin-top: 14px; max-width: 46ch; font-family: var(--font-serif); font-size: 1.04rem; line-height: 1.7; color: rgba(255, 255, 255, 0.72); }
.stack-list { display: grid; align-self: end; }
.stack-list li {
  position: relative; padding: 12px 0 12px 26px; font-size: 0.97rem; color: rgba(255, 255, 255, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stack-list li::before {
  content: ""; position: absolute; left: 2px; top: 1.15em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.stack-media {
  position: relative; margin: 0; border-radius: 20px; overflow: hidden; min-height: 240px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.stack-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.stack-card:hover .stack-media img { transform: scale(1.04); }
/* Documents, drawings and boards are shown whole (not cropped) on a matching surface. */
.s2 .stack-media, .s4 .stack-media { background: #e8ebf3; }
/* All card visuals are 4:3, so the frame matches them and nothing is letterboxed. */
.stack-media { aspect-ratio: 4 / 3; min-height: 0; align-self: center; }
.s1 .stack-media, .s5 .stack-media { background: #fcfcfb; }
.s1 .stack-media img, .s5 .stack-media img { object-fit: contain; }
.s1:hover .stack-media img, .s5:hover .stack-media img { transform: none; }
@media (max-width: 899px) { .stack-card { position: relative; top: auto !important; } .stack-media { aspect-ratio: 4 / 3; min-height: 0; } }

/* ---------- Clear roles ---------- */
.roles-grid { display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 1040px; margin: 0 auto; align-items: stretch; }
@media (min-width: 860px) { .roles-grid { grid-template-columns: 1fr auto 1fr; gap: 0; } }
.role { padding: clamp(28px, 3vw, 44px); border-radius: var(--radius-lg); border: 1px solid rgba(17, 17, 40, 0.06); background: var(--white); box-shadow: var(--shadow-md); }
.role-us {
  color: var(--white); border: 1px solid transparent; box-shadow: var(--shadow-lg);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(73, 59, 237, 0.35), transparent 70%) padding-box,
    linear-gradient(160deg, #1d1d27, #0e0e14) padding-box,
    linear-gradient(140deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.04) 45%, rgba(131, 119, 255, 0.6)) border-box;
}
.role-tag { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sandal); }
.role-us .role-tag { color: var(--sandal-light); }
.role h3 { margin-top: 12px; font-size: clamp(1.6rem, 1.2vw + 1rem, 2.1rem); font-weight: 400; letter-spacing: -0.03em; }
.role ul { margin-top: 24px; display: grid; }
.role li { padding: 13px 0; border-top: 1px solid var(--line); color: var(--stone); }
.role-us li { border-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.82); }
.roles-divider { display: flex; align-items: center; justify-content: center; padding: 0 20px; }
.roles-divider span { font-family: var(--font-serif); font-style: italic; color: var(--sandal); writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 0.06em; }
@media (max-width: 859px) { .roles-divider span { writing-mode: horizontal-tb; transform: none; } }

/* ---------- Process timeline ---------- */
.process {
  position: relative;
  background: var(--resolution-dark);
  color: var(--white);
  overflow: clip;
}
.process::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 0% 0%, rgba(73, 59, 237, 0.35), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgba(165, 134, 93, 0.18), transparent 70%);
}
.process-layout {
  position: relative;
  display: grid; gap: 56px; grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .process-layout { grid-template-columns: 0.9fr 1.1fr; gap: 96px; }
  .process-sticky { position: sticky; top: calc(var(--header-h) + 48px); }
}

.process-meter {
  margin-top: 48px; padding: 28px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  max-width: 420px;
}
.meter-count { display: flex; align-items: baseline; gap: 10px; }
.meter-current { font-size: 4rem; font-weight: 300; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.meter-total { color: rgba(255, 255, 255, 0.5); font-size: 1rem; }
.meter-name { margin-top: 10px; font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--sandal-light); }
.meter-bar { margin-top: 20px; height: 2px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.meter-bar span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0.143); transform-origin: left;
  background: linear-gradient(90deg, var(--persian-light), var(--sandal-light));
  transition: transform .6s var(--ease);
}
@media (max-width: 999px) { .process-meter { display: none; } }

.timeline { position: relative; display: grid; gap: 20px; padding-left: 44px; }
.timeline-line {
  position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px;
  background: rgba(255, 255, 255, 0.12); border-radius: 2px;
}
.timeline-line span {
  position: absolute; inset: 0; transform-origin: top; transform: scaleY(0);
  background: linear-gradient(180deg, var(--persian-light), var(--sandal-light));
  border-radius: 2px;
}

.step { position: relative; }
.step-dot {
  position: absolute; left: -44px; top: 32px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--resolution-dark);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: border-color .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.step-dot::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background: transparent; transition: background-color .5s var(--ease);
}
.step.is-passed .step-dot { border-color: var(--persian-light); }
.step.is-passed .step-dot::after { background: var(--persian-light); }
.step.is-active .step-dot { border-color: var(--sandal-light); box-shadow: 0 0 0 6px rgba(239, 186, 121, 0.14); }
.step.is-active .step-dot::after { background: var(--sandal-light); }

.step-card {
  padding: 28px 30px 30px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  opacity: 0.55;
  transition: opacity .6s var(--ease), background-color .6s var(--ease), border-color .6s var(--ease), transform .6s var(--ease);
}
.step.is-passed .step-card { opacity: 0.85; }
.step.is-active .step-card {
  opacity: 1; border-color: rgba(239, 186, 121, 0.4);
  box-shadow: 0 0 0 1px rgba(239, 186, 121, 0.12), 0 30px 70px -25px rgba(73, 59, 237, 0.55);
}
.step-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.step-no { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sandal-light); }
.step-gate { font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); }
.step h3 { margin-top: 14px; font-size: clamp(1.35rem, 1vw + 1rem, 1.7rem); font-weight: 500; letter-spacing: -0.01em; }
.step p { margin-top: 12px; color: rgba(255, 255, 255, 0.74); font-family: var(--font-serif); line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li {
  font-size: 0.78rem; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(131, 119, 255, 0.4); color: rgba(255, 255, 255, 0.86);
  background: rgba(131, 119, 255, 0.08);
}

@media (max-width: 640px) {
  .timeline { padding-left: 34px; }
  .timeline-line { left: 8px; }
  .step-dot { left: -34px; width: 18px; height: 18px; top: 30px; }
  .step-dot::after { inset: 3px; }
  .step-card { padding: 22px 20px 24px; }
}


/* ---------- Sectors ---------- */
.sector-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .sector-grid { grid-template-columns: repeat(4, 1fr); } }
.sector {
  position: relative; display: flex; flex-direction: column; min-height: 320px;
  padding: 30px 28px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--white), #f6f7fb); color: var(--black);
  border: 1px solid rgba(17, 17, 40, 0.06);
  box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.sector::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(131, 119, 255, 0.7), transparent 40%, rgba(239, 186, 121, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s var(--ease);
}
.sector svg {
  width: 56px; height: 56px; padding: 12px; border-radius: 16px;
  fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  background: linear-gradient(135deg, var(--persian-bright), var(--persian-dark));
  box-shadow: 0 12px 28px -10px rgba(73, 59, 237, 0.7);
}
.sector h3 { margin-top: 0; font-size: 1.45rem; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.sector p { margin-top: 10px; color: var(--stone); font-size: 0.97rem; }
/* Full bleed photo, then title and text on shared rows so every card lines up. */
.sector { padding: 0 0 28px; overflow: hidden; min-height: 0; }
.sector h3, .sector p { padding: 0 24px; }
.sector-media { margin: 0 0 22px; aspect-ratio: 4 / 3; overflow: hidden; }
@media (min-width: 640px) {
  .sector { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
}
.sector-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sector:hover .sector-media img { transform: scale(1.04); }
.sector:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sector:hover::before { opacity: 1; }

/* ---------- Reporting ---------- */
.reporting { padding-top: 0; }
.split { display: grid; gap: clamp(48px, 7vw, 96px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.ticks { margin-top: 32px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 9px;
  border-left: 1.5px solid var(--persian); border-bottom: 1.5px solid var(--persian);
  transform: rotate(-45deg);
}

.report-card {
  background: var(--white); border-radius: 24px; padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(17, 33, 85, 0.35), 0 2px 6px rgba(17, 33, 85, 0.04);
}
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.report-kicker { display: block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone-light); }
.report-title { display: block; margin-top: 6px; font-size: 1.15rem; font-weight: 500; }
.report-status {
  flex: none; font-size: 0.75rem; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  background: rgba(48, 37, 177, 0.08); color: var(--persian);
}
.report-rows { display: grid; gap: 20px; padding: 26px 0; }
.report-row { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 16px; font-size: 0.88rem; color: var(--stone); }
.report-row b { text-align: right; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.report-bar { height: 6px; background: var(--paper-2); border-radius: 6px; overflow: hidden; }
.report-bar span {
  display: block; height: 100%; width: var(--v); background: var(--persian); border-radius: 6px;
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s;
}
.report-bar-sandal span { background: var(--sandal); }
.report-bar-soft span { background: var(--resolution-light); }
.report-card.is-visible .report-bar span { transform: scaleX(1); }
.report-phases { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; padding-bottom: 24px; }
.report-phases span { height: 4px; border-radius: 4px; background: var(--line); }
.report-phases .done { background: var(--resolution); }
.report-phases .current { background: var(--sandal-light); }
.report-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--stone); }
.report-foot b { font-weight: 500; color: var(--ink); }
@media (max-width: 480px) { .report-row { grid-template-columns: 1fr 44px; } .report-row .report-bar { grid-column: 1 / -1; grid-row: 2; } }


/* ---------- Contact ---------- */
.contact {
  position: relative; color: var(--white); padding-bottom: clamp(80px, 10vw, 136px);
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(73, 59, 237, 0.32), transparent 70%),
    radial-gradient(35% 45% at 0% 40%, rgba(165, 134, 93, 0.12), transparent 70%),
    var(--black);
}
.contact-inner { display: grid; gap: 56px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .contact-inner { grid-template-columns: 1fr 1fr; gap: 88px; } }
.contact-title { font-size: clamp(2.6rem, 5vw + 0.5rem, 5.4rem); line-height: 1; letter-spacing: -0.04em; font-weight: 300; }
.contact-title em { color: var(--sandal-light); letter-spacing: -0.02em; font-weight: 400; }
.contact-details { margin: 40px 0 0; display: grid; gap: 18px; }
.contact-details div { display: grid; gap: 4px; }
.contact-details dt { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sandal-light); }
.contact-details dd { margin: 0; font-size: 1.1rem; }
.contact-details a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.contact-details a:hover { border-color: var(--white); }
.contact-form { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 100px -40px rgba(73, 59, 237, 0.6); }
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field span { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 13px 16px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--white);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--persian); box-shadow: 0 0 0 3px rgba(48, 37, 177, 0.15); }
.field .is-invalid { border-color: #b3261e; }
.form-note { font-size: 0.82rem; color: var(--stone); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255, 255, 255, 0.68); padding: 0 0 32px; }
.footer-inner { display: grid; gap: 40px; grid-template-columns: 1fr; padding-top: 56px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
@media (min-width: 600px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { margin-top: 18px; max-width: 34ch; font-size: 0.95rem; }
.footer-nav { display: grid; gap: 10px; align-content: start; font-size: 0.95rem; }
.footer-nav h4 { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sandal-light); margin-bottom: 6px; }
.footer-nav .footer-sub { margin-top: 18px; }
.footer-nav a { text-decoration: none; transition: color .3s var(--ease); }
.footer-nav a:hover { color: var(--white); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; }
.footer-base a { text-decoration: none; }
/* "Part of the Fracct Group": logo plus link, right aligned above the bottom bar. */
.footer-group { display: flex; align-items: center; gap: 18px; }
.footer-group-row { padding-top: 48px; display: flex; justify-content: flex-end; }
.footer-inner + .footer-group-row { padding-top: 40px; }
@media (max-width: 599px) { .footer-group-row { justify-content: flex-start; } }
.footer-group-logo { display: block; flex: none; }
.footer-group-logo img { display: block; height: 30px; width: auto; }
.footer-group-text { display: grid; gap: 2px; font-size: 0.85rem; line-height: 1.5; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.68); }
.footer-group-text a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); justify-self: start; transition: border-color .3s var(--ease); }
.footer-group-text a:hover { border-color: var(--sandal-light); }
.footer-group-row + .footer-base { margin-top: 28px; }
.footer-base a:hover { color: var(--white); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .statement .w { color: var(--black); }
}

/* ---------- Legal pages ---------- */
.legal-page { background: var(--paper); }
.legal-page .site-header { position: sticky; }
.legal { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.4rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; color: var(--black); }
.legal .updated { margin-top: 12px; color: var(--stone); font-size: 0.92rem; }
.legal h2 { margin-top: 44px; font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; color: var(--black); }
.legal p, .legal li { margin-top: 12px; font-family: var(--font-serif); font-size: 1.04rem; line-height: 1.75; color: var(--ink-soft); }
.legal ul { margin-top: 8px; padding-left: 20px; list-style: disc; }
.legal a { color: var(--persian); }
.legal .todo { background: rgba(239, 186, 121, 0.28); padding: 0 4px; border-radius: 3px; font-family: var(--font-display); font-size: 0.92em; }
.legal .note-box { margin-top: 32px; padding: 18px 22px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); font-size: 0.95rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--white); }
.form-note a { color: var(--persian); }

/* Slimmer Contact button in the header */
.header-cta { padding: 8px 22px; font-size: 0.92rem; }

/* ---------- Financing ---------- */
.financing { padding-top: 0; }
.fin-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .fin-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .fin-grid { grid-template-columns: 1fr 1fr 1.05fr; } }
.fin-card {
  padding: clamp(26px, 3vw, 38px); border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid rgba(17, 17, 40, 0.06); box-shadow: var(--shadow-md);
}
.fin-tag { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sandal); }
.fin-tag-light { color: var(--sandal-light); }
.fin-card h3 { margin-top: 12px; font-size: clamp(1.45rem, 1vw + 1rem, 1.85rem); font-weight: 400; letter-spacing: -0.02em; color: var(--black); }
.fin-card ul { margin-top: 20px; display: grid; }
.fin-card li { position: relative; padding: 12px 0 12px 24px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.97rem; }
.fin-card li::before { content: ""; position: absolute; left: 2px; top: 1.2em; width: 6px; height: 6px; border-radius: 50%; background: var(--persian); box-shadow: 0 0 10px var(--persian-light); }
.fin-panel {
  display: flex; flex-direction: column; padding: clamp(26px, 3vw, 38px); border-radius: var(--radius-lg); color: var(--white);
  border: 1px solid transparent; box-shadow: var(--shadow-lg);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(73, 59, 237, 0.4), transparent 70%) padding-box,
    linear-gradient(160deg, #1d1d27, #0e0e14) padding-box,
    linear-gradient(140deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.04) 45%, rgba(239, 186, 121, 0.6)) border-box;
}
@media (min-width: 760px) and (max-width: 1099px) { .fin-panel { grid-column: 1 / -1; } }
.fin-figs { margin: 20px 0 0; display: grid; gap: 0; }
.fin-figs div { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.fin-figs dt { font-size: 1.3rem; font-weight: 400; letter-spacing: -0.01em; }
.fin-figs dd { margin: 2px 0 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.68); }
.fin-link { margin-top: auto; padding-top: 18px; color: var(--sandal-light); text-decoration: none; font-weight: 500; }
.fin-link:hover { color: var(--white); }
.fin-note { margin-top: 18px; font-size: 0.82rem; color: var(--stone); }

/* ---------- Professionals page ---------- */
.pro-page .site-header { position: sticky; top: 0; }
.pro-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); }
.pro-hero-grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .pro-hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.pro-hero h1 { font-size: clamp(2.3rem, 3.6vw + 0.8rem, 3.9rem); }
.pro-hero-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.pro-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.pro-section { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.pro-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pro-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pro-grid { grid-template-columns: repeat(4, 1fr); } }
.pro-card { padding: 26px 24px; border-radius: 22px; background: var(--white); border: 1px solid rgba(17, 17, 40, 0.06); box-shadow: var(--shadow-sm); }
.pro-card h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; color: var(--black); }
/* Cards in a row share title and text rows, so text starts on the same line even when a title wraps. */
@media (min-width: 640px) {
  .pro-grid { align-items: stretch; }
  .pro-card { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .pro-models { align-items: stretch; }
  .pro-model { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
}
.pro-card p { margin-top: 10px; font-size: 0.95rem; color: var(--stone); line-height: 1.6; }
.pro-models { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pro-models { grid-template-columns: repeat(4, 1fr); } }
.pro-model {
  --accent: var(--persian-light); padding: 28px 26px; border-radius: 22px; color: var(--white); border: 1px solid transparent; box-shadow: var(--shadow-lg);
  background: radial-gradient(70% 60% at 100% 0%, rgba(73, 59, 237, 0.35), transparent 70%) padding-box, linear-gradient(160deg, #1d1d27, #0e0e14) padding-box,
    linear-gradient(140deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.04) 45%, rgba(131, 119, 255, 0.6)) border-box;
}
.pro-model h3 { margin-top: 16px; font-size: 1.3rem; font-weight: 400; letter-spacing: -0.02em; }
.pro-model p { margin-top: 10px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.74); line-height: 1.6; }
.pro-cta { margin-top: clamp(40px, 6vw, 72px); }

.hero-title .hero-line-sub { font-size: 0.56em; letter-spacing: -0.02em; margin-bottom: 0.12em; }
.pro-cta { padding-top: clamp(72px, 9vw, 120px); }

/* Cards taller than the screen get a lower sticky offset (set in main.js), so they
   pin by their bottom edge: the whole card is read before the next one stacks. */

/* Very small phones: keep the logo lockup and menu button on one line. */
@media (max-width: 359px) {
  .header-inner { gap: 12px; }
  .lockup { gap: 9px; }
  .lockup-logo { height: 20px; }
  .lockup-divider { height: 24px; }
  .lockup-text { font-size: 0.6rem; letter-spacing: 0.1em; }
}

/* Wider screens: text on the left, right aligned, with the Fracct Group logo on the far right. */
@media (min-width: 600px) {
  .footer-group-row .footer-group { flex-direction: row-reverse; gap: 22px; }
  .footer-group-row .footer-group-text { text-align: right; padding-left: 0; border-left: 0; }
  .footer-group-row .footer-group-text a { justify-self: end; }
  .footer-group-row .footer-group-logo img { height: 36px; }
}
