/* NIMDEE website: deep teal (#185959) with a warm orange accent (#F37B44), Inter throughout (the NIMDEE app font),
   real Revit footage and screenshots. No inline styles or scripts (CSP). Fonts: SIL Open Font License. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 700 800; font-display: swap; src: url("../fonts/Inter-Bold.ttf") format("truetype"); }

:root {
  --navy: #185959;
  --deep: #0D2B2B;
  --night: #071D1D;
  --gold: #F37B44;
  --gold-d: #DB6F3D;
  --paper: #F3F5F7;
  --white: #FFFFFF;
  --ink: #0E1B25;
  --text: #2D3A43;
  --muted: #5C6870;
  --line: #D9DFE3;
  --gold-hover: #F59569;
  --badge: #172026;
  --badge-text: #EF956C;
  /* the same colours as r, g, b for translucent overlays: keep them in step with --night, --deep and --ink */
  --night-rgb: 7, 29, 29;
  --deep-rgb: 13, 43, 43;
  --ink-rgb: 14, 27, 37;
  --display: "Inter", "Segoe UI", Arial, sans-serif;
  --body: "Inter", "Segoe UI", Arial, sans-serif;
  --max: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 700; letter-spacing: -.03em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 4px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- buttons, labels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 4px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--display); letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn .dim { opacity: .6; font-weight: 600; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-clear { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-clear:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-line { color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--navy); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.label { display: flex; align-items: center; gap: 12px; font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.label::before { content: ""; width: 26px; height: 3px; background: var(--gold); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 28px; padding: 0 8px; border-radius: 4px; background: var(--badge); color: var(--badge-text); font: 700 13px/1 var(--display); letter-spacing: .04em; }
.eyebrow { font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--deep); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: background-color .25s, border-color .25s; }
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; }
.home .site-header.scrolled, .home .site-header.open { background: var(--deep); border-color: rgba(255, 255, 255, .08); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-name { font: 800 21px/1 var(--display); letter-spacing: .14em; }
.brand-text { display: flex; flex-direction: column; }
.brand-tag { display: none; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0 0 0 18px; padding: 0; }
.nav-links a { position: relative; display: block; padding: 10px 12px; color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-signin { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-signin:hover { color: #fff; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }

/* ---------- hero: real Revit footage ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: max(640px, min(100vh, 940px)); background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--night-rgb), .95) 0%, rgba(var(--night-rgb), .86) 34%, rgba(var(--night-rgb), .45) 64%, rgba(var(--night-rgb), .2) 100%), linear-gradient(0deg, rgba(var(--night-rgb), .8), transparent 35%); }
.hero-inner { padding-top: 150px; padding-bottom: 110px; }
.kicker { font: 600 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.kicker span { color: rgba(255, 255, 255, .6); }
.hero h1 { margin-top: 26px; max-width: 900px; color: #fff; font-weight: 800; font-size: clamp(44px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -.045em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lead { margin-top: 26px; max-width: 580px; color: rgba(255, 255, 255, .82); font-size: clamp(17px, 1.4vw, 19.5px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-note { margin-top: 22px; color: rgba(255, 255, 255, .6); font-size: 15.5px; }
.hero-tag { position: absolute; right: var(--gutter); bottom: 22px; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .6); font: 600 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.hero-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 4px rgba(229, 72, 77, .25); }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 10vw, 136px) 0; }
.head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 60px); }
.head h2, .studio-copy h2, .price h2 { margin-top: 18px; font-weight: 800; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -.04em; }
.sub { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 620px; }

/* suite tabs */
.suite { background: var(--paper); }
.tab-list { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.tab { position: relative; padding: 14px 20px 16px; border: 0; background: none; cursor: pointer; color: var(--muted); font: 600 16.5px/1 var(--display); letter-spacing: -.01em; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.panel { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.panel[hidden] { display: none; }
.no-js .panel[hidden] { display: grid; margin-top: 48px; }
.panel picture img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: #fff; box-shadow: 0 40px 70px -40px rgba(var(--deep-rgb), .55), 0 0 0 1px rgba(var(--deep-rgb), .08); }
.panel picture img.wide { aspect-ratio: 2 / 1; }
.panel picture img.fit { width: auto; max-width: 100%; aspect-ratio: auto; margin: 0 auto; }
.tool { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.tool::before { content: ""; width: 10px; height: 10px; background: var(--gold); }
.panel h3 { margin-top: 16px; font-weight: 800; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
.panel-copy p:last-child { margin-top: 16px; color: var(--muted); font-size: 17.5px; }

/* film */
.film { background: var(--night); color: #fff; }
.film h2 { color: #fff; }
.film .label { color: var(--gold); }
.film .sub { color: rgba(255, 255, 255, .65); }
.video-shell { position: relative; border-radius: 8px; overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, .1); aspect-ratio: 16 / 9; }
.video-shell video { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; background: rgba(var(--night-rgb), .35); }
.play-disc { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: var(--gold); color: var(--ink); transition: transform .2s; }
.play:hover .play-disc { transform: scale(1.06); }
.play-disc svg { width: 34px; height: 34px; margin-left: 5px; }
.video-shell.is-playing .play { display: none; }

/* the dialog */
.studio-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 26px; }
.points li { display: flex; gap: 18px; }
.points .badge { flex: none; margin-top: 2px; }
.points h3 { font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.points p { margin-top: 4px; color: var(--muted); font-size: 16.5px; }
.studio-shot img { border-radius: 8px; box-shadow: 0 50px 80px -45px rgba(var(--deep-rgb), .6), 0 0 0 1px rgba(var(--deep-rgb), .1); }

/* ribbon tools */
.ribbon { background: var(--navy); color: #fff; }
.ribbon h2 { color: #fff; }
.ribbon .label { color: var(--gold); }
.ribbon .sub { color: rgba(255, 255, 255, .72); }
.tool-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.tool-groups h3 { padding-bottom: 14px; border-bottom: 2px solid var(--gold); color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.tool-groups ul { list-style: none; margin: 0; padding: 0; }
.tool-groups li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .9); font-size: 16px; font-weight: 500; }

/* site photo band */
.band { position: relative; display: flex; align-items: center; min-height: 520px; color: #fff; overflow: hidden; isolation: isolate; }
.band-bg, .band-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band-bg { z-index: -2; }
.band-bg img { object-fit: cover; object-position: 50% 45%; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--night-rgb), .88) 0%, rgba(var(--night-rgb), .6) 45%, rgba(var(--night-rgb), .1) 80%); }
.band h2 { max-width: 640px; color: #fff; font-weight: 800; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -.04em; }
.photo-credit { position: absolute; right: 0; bottom: 0; margin: 0; padding: 6px 12px; background: rgba(var(--night-rgb), .7); color: rgba(255, 255, 255, .75); font-size: 13px; }
.photo-credit a { color: inherit; }

/* pricing */
.price { background: var(--paper); }
.price-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.plans { display: grid; gap: 16px; }
.plan { padding: 30px 32px; background: #fff; border-left: 5px solid var(--gold); box-shadow: 0 20px 40px -30px rgba(var(--deep-rgb), .45); }
.plan + .plan { border-left-color: var(--navy); }
.plan h3 { font-weight: 700; font-size: 24px; letter-spacing: -.025em; }
.plan p { margin-top: 6px; color: var(--muted); font-size: 16.5px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.faq-grid .head { margin-bottom: 0; }
.faq-grid .sub a { color: var(--navy); font-weight: 600; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 0; cursor: pointer; list-style: none; color: var(--ink); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--navy); font: 600 20px/1 var(--display); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); font-size: 16.5px; }

/* closing call */
.cta { background: var(--gold); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 72px; padding-bottom: 72px; }
.cta h2 { max-width: 760px; color: var(--ink); font-weight: 800; font-size: clamp(32px, 4vw, 52px); line-height: 1.06; letter-spacing: -.04em; }
.cta .hero-actions { margin-top: 0; }
.cta .btn-gold { background: var(--ink); color: #fff; }
.cta .btn-gold:hover { background: var(--navy); }
.cta .btn-clear { color: var(--ink); border-color: var(--ink); }
.cta .btn-clear:hover { background: rgba(var(--ink-rgb), .08); }

/* footer */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .62); font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-top: 72px; padding-bottom: 48px; }
.footer-about p { margin-top: 18px; max-width: 340px; }
.site-footer h4 { margin: 0 0 16px; color: #fff; font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- legal + credits pages ---------- */
.legal-hero { background: var(--deep); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.legal-hero h1 { margin-top: 16px; color: #fff; font-weight: 800; font-size: clamp(36px, 4.8vw, 60px); line-height: 1.05; letter-spacing: -.04em; }
.legal-hero p { margin-top: 14px; color: rgba(255, 255, 255, .65); }
.legal { max-width: 820px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) var(--gutter) clamp(64px, 8vw, 104px); }
.legal h2 { margin: 44px 0 14px; font-weight: 700; font-size: 26px; letter-spacing: -.025em; }
.legal p, .legal li { color: var(--text); }
.legal p + p { margin-top: 14px; }
.legal a { color: var(--navy); font-weight: 600; }
.credits-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.credit { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; padding: 20px; background: var(--paper); border-radius: 6px; color: var(--text); font-size: 16px; }
.credit picture, .credit img { display: block; width: 100%; height: auto; border-radius: 4px; }
.credit-head { display: flex; align-items: center; gap: 12px; }
.credit-head h3 { font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.legal .credit-desc { margin-top: 8px; font-size: 16px; }
.credit-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 12px 0 0; font-size: 15.5px; }
.credit-meta dt { font-weight: 600; color: var(--ink); }
.credit-meta dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .tool-groups { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-links, .nav-signin { display: none; }
  .menu-btn { display: grid; }
  .site-header.open .nav-links { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; margin: 0; padding: 10px var(--gutter) 20px; background: var(--deep); border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-header.open .nav-links a { padding: 14px 0; font-size: 18px; }
  .panel, .studio-grid, .price-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(90deg, rgba(var(--night-rgb), .92), rgba(var(--night-rgb), .6)), linear-gradient(0deg, rgba(var(--night-rgb), .8), transparent 40%); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { height: 66px; }
  .site-header.open .nav-links { top: 66px; }
  .nav-cta .btn-sm { display: none; }
  .brand-name { font-size: 19px; }
  .hero-inner { padding-top: 120px; padding-bottom: 90px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-tag { left: var(--gutter); right: auto; }
  .tab-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tab { white-space: nowrap; padding: 12px 14px 14px; font-size: 15.5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tool-groups { gap: 28px 20px; }
  .tool-groups h3 { font-size: 17px; }
  .tool-groups li { padding: 9px 0; font-size: 15.5px; }
  .band { min-height: 420px; }
  .credit { grid-template-columns: 1fr; }
  .play-disc { width: 76px; height: 76px; }
}

/* the Rebar Suite product icon beside the hero kicker */
.kicker-icon { display: inline-block; width: 44px; height: 44px; margin-right: 14px; vertical-align: middle; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }

/* Credits page: heading band as on the legal pages; the photographs as a two-column gallery of cards */
.credits-page .legal-hero { background: linear-gradient(160deg, var(--night) 0%, var(--deep) 100%); }
.credits-page .legal-hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.credits-page .legal-hero .eyebrow::before { content: ""; width: 26px; height: 3px; background: currentColor; }
.legal.credits { max-width: 1160px; }
.legal.credits > p { max-width: 760px; font-size: 17.5px; line-height: 1.7; }
.legal.credits > h2 { margin-top: 56px; font-weight: 800; font-size: 30px; letter-spacing: -.03em; }
.credits .credits-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 22px; }
.credits .credit { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; background: #fff; border-radius: 0; border-top: 4px solid var(--gold); box-shadow: 0 30px 60px -42px rgba(var(--deep-rgb), .55), 0 0 0 1px rgba(var(--deep-rgb), .08); }
.credits .credit picture, .credits .credit img { border-radius: 0; }
.credits .credit img { aspect-ratio: 3 / 2; object-fit: cover; }
.credits .credit-body { padding: 22px 24px 26px; }
.credit-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.credit-note { padding: 26px 28px 28px; background: var(--paper); border-top: 4px solid var(--deep); }
.legal .credit-note h2 { margin: 0 0 12px; font-weight: 800; font-size: 22px; }
.credit-correct { margin-top: 32px; padding: 22px 26px; background: var(--paper); border-left: 4px solid var(--gold); }
.legal .credit-correct h2 { margin: 0 0 6px; font-weight: 800; font-size: 20px; }
/* an odd last photo spans both columns, its picture beside the text, so the gallery has no gap */
.credits .credit:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
.credits .credit:last-child:nth-child(odd) picture { flex: 0 0 50%; }
.credits .credit:last-child:nth-child(odd) img { height: 100%; }
.credits .credit:last-child:nth-child(odd) .credit-body { align-self: center; padding: 28px 32px; }
@media (max-width: 860px) {
  .credits .credits-list, .credit-notes { grid-template-columns: 1fr; }
  .credits .credit:last-child:nth-child(odd) { flex-direction: column; }
  .credits .credit:last-child:nth-child(odd) img { height: auto; }
  .credits .credit:last-child:nth-child(odd) .credit-body { padding: 22px 24px 26px; }
}
