:root {
  --white: #ffffff;
  --paper: #f8f8f7;
  --ink: #070707;
  --muted: #606166;
  --soft: #ece9e2;
  --line: #ddd8ce;
  --red: #a50005;
  --red-dark: #780004;
  --gold: #b7892d;
  --gold-text: #765818;
  --gold-soft: #dbc189;
  --charcoal: #0d0f11;
  --shadow: 0 24px 60px rgba(8, 8, 8, 0.13);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--red-dark);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

.section-shell {
  width: min(100% - 48px, 1380px);
  margin: 0 auto;
}

.section-anchor {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 12px 44px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(183, 137, 45, 0.35);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark,
.login-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  background-image: url("./orahood-logo.png");
  background-repeat: no-repeat;
  background-size: 240% auto;
  background-position: center 8%;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.66rem;
  color: var(--ink);
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
}

.primary-nav a {
  position: relative;
  padding: 10px 0;
}

.primary-nav .nav-login-link {
  display: none;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--red);
  transition: transform 160ms ease;
}

.primary-nav a:hover::after,
.primary-nav a.active::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-cta,
.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  white-space: nowrap;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.header-cta {
  color: var(--white);
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  border: 1px solid var(--red-dark);
}

.header-login {
  color: var(--white);
  background: linear-gradient(180deg, #181a1d, #070707);
  border: 1px solid #070707;
}

.header-login.active-action {
  border-color: var(--gold);
}

.header-cta svg,
.header-login svg,
.nav-login-link svg,
.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  border-color: var(--red-dark);
  box-shadow: 0 18px 32px rgba(165, 0, 5, 0.2);
}

.button-secondary {
  color: var(--gold-text);
  background: var(--white);
  border-color: var(--gold);
}

.button-secondary:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.button-ghost-dark {
  color: var(--white);
  background: transparent;
  border-color: rgba(183, 137, 45, 0.7);
}

.button-gold {
  color: var(--ink);
  background: linear-gradient(180deg, #d9b764, var(--gold));
  border-color: var(--gold);
}

.button.compact {
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.84rem;
}

.button.full {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 70px 0 86px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 1)),
    radial-gradient(circle at 78% 18%, rgba(183, 137, 45, 0.13), transparent 28%),
    var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  background:
    linear-gradient(180deg, transparent, var(--white)),
    repeating-linear-gradient(171deg, transparent 0 18px, rgba(183, 137, 45, 0.11) 19px 20px);
  pointer-events: none;
}

.hero-ornament {
  position: absolute;
  left: 40px;
  top: 126px;
  width: 250px;
  height: 510px;
  border: 1px solid rgba(183, 137, 45, 0.22);
  border-bottom-color: transparent;
  border-radius: 130px 130px 0 0;
  opacity: 0.8;
}

.hero-ornament::before,
.hero-ornament::after {
  content: "";
  position: absolute;
  background: rgba(183, 137, 45, 0.32);
}

.hero-ornament::before {
  left: 45px;
  bottom: 160px;
  width: 2px;
  height: 70px;
}

.hero-ornament::after {
  left: 15px;
  bottom: 192px;
  width: 62px;
  height: 2px;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 790px);
  align-items: start;
  gap: 0;
}

.hero-copy {
  padding: 16px 0 0 48px;
}

.cross-rule {
  display: flex;
  align-items: center;
  width: 260px;
  height: 28px;
  margin-bottom: 20px;
  color: var(--gold);
}

.cross-rule::before,
.cross-rule::after,
.section-line::after {
  content: "";
  height: 1px;
  background: currentColor;
  opacity: 0.78;
}

.cross-rule::before,
.cross-rule::after {
  flex: 1;
}

.cross-rule span {
  position: relative;
  width: 34px;
  height: 28px;
}

.cross-rule span::before,
.cross-rule span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: currentColor;
}

.cross-rule span::before {
  width: 17px;
  height: 3px;
}

.cross-rule span::after {
  width: 3px;
  height: 17px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  max-width: 540px;
  font-size: 3.55rem;
}

h1::first-line {
  color: var(--ink);
}

h1 span,
.accent-word {
  color: var(--red);
}

h2 {
  font-size: 3.15rem;
}

h3 {
  font-size: 1.35rem;
}

.hero-copy h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin: 20px 0 0;
  background: var(--gold);
}

.hero-copy p {
  max-width: 550px;
  margin: 18px 0 0;
  color: #303236;
  font-size: 1rem;
  line-height: 1.65;
}

.hero-copy .hero-proof {
  max-width: 600px;
  margin-top: 18px;
  padding-left: 16px;
  color: #3b3d42;
  border-left: 3px solid var(--gold);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
}

.contact-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  width: auto;
  max-width: calc(100vw - 96px);
  margin-top: 20px;
}

.contact-strip a,
.contact-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 30px;
  color: #202124;
  font-size: 0.88rem;
}

.contact-strip svg,
.contact-info svg,
.about-facts svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 470px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1800px) rotateY(-4deg) rotateX(1deg);
  transform-origin: center;
}

.dash-sidebar,
.admin-sidebar {
  color: var(--white);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 35%),
    var(--charcoal);
}

.dash-sidebar {
  padding: 24px 18px;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: 0.78rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.mini-shield {
  position: relative;
  width: 29px;
  height: 34px;
  display: inline-block;
  border: 2px solid var(--gold);
  border-top-color: var(--red);
  border-radius: 13px 13px 16px 16px;
  transform: skewY(-4deg);
}

.mini-shield::before,
.mini-shield::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 5px;
  background: var(--gold);
}

.mini-shield::before {
  left: 8px;
  height: 12px;
}

.mini-shield::after {
  left: 16px;
  height: 19px;
}

.dash-nav,
.admin-tab {
  width: 100%;
  min-height: 37px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
}

.dash-nav.active,
.dash-nav:hover,
.admin-tab.active,
.admin-tab:hover {
  color: var(--white);
  background: linear-gradient(90deg, var(--red), rgba(165, 0, 5, 0.1));
}

.dash-main {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(248, 248, 247, 0.6), transparent),
    var(--white);
}

.dash-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.dash-topline strong {
  display: block;
  font-size: 1.1rem;
}

.dash-topline span {
  color: var(--muted);
  font-size: 0.87rem;
}

.date-select {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.78rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric-grid article,
.chart-panel,
.donut-panel,
.workspace-metrics article,
.admin-metrics article {
  background: var(--white);
  border: 1px solid var(--soft);
  border-radius: 4px;
}

.metric-grid article {
  min-height: 94px;
  padding: 13px;
}

.metric-grid span,
.metric-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.metric-grid strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 1.2rem;
  font-weight: 500;
}

.metric-grid small {
  color: var(--gold);
}

.dash-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  gap: 16px;
  margin-top: 18px;
}

.chart-panel,
.donut-panel {
  min-height: 168px;
  padding: 16px;
}

.panel-title {
  margin-bottom: 12px;
  font-weight: 700;
}

.chart-panel svg {
  width: 100%;
  height: auto;
}

.chart-panel circle {
  fill: var(--white);
  stroke: var(--red);
  stroke-width: 2;
}

.grid-line {
  fill: none;
  stroke: #ececec;
  stroke-width: 1;
}

.trend-line,
.trend-muted {
  fill: none;
  stroke-linecap: round;
}

.trend-line {
  stroke: var(--red);
  stroke-width: 4;
}

.trend-muted {
  stroke: #b8b8b8;
  stroke-width: 2;
  stroke-dasharray: 4 7;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
}

.donut {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: conic-gradient(var(--red) 0 42%, var(--gold) 42% 63%, #222 63% 75%, #c9c9c9 75% 100%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  background: var(--white);
  border-radius: 50%;
}

.donut-wrap ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #3c3e42;
  font-size: 0.82rem;
}

.red-dot,
.gold-dot,
.black-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
}

.red-dot {
  background: var(--red);
}

.gold-dot {
  background: var(--gold);
}

.black-dot {
  background: #222;
}

.services {
  padding: 20px 0 78px;
  background: var(--white);
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(560px, 1.22fr);
  gap: 70px;
  align-items: start;
}

.section-line {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--gold);
}

.section-line span {
  color: var(--red-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-line.on-dark {
  color: var(--gold);
}

.section-line.on-dark span {
  color: #f1d492;
}

.split-intro p,
.portfolio-head p,
.about-copy p,
.contact-heading p,
.form-panel p,
.login-panel p {
  color: #474a50;
}

.split-intro p {
  max-width: 540px;
  margin: 24px 0 30px;
  font-size: 1.08rem;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 34px;
  border-top: 1px solid var(--line);
}

.services-subheading {
  margin-bottom: 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-item {
  min-height: 126px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--red);
  border-left: 3px solid var(--red);
}

.service-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item h3 {
  margin-bottom: 7px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 800;
}

.service-item p {
  margin: 0;
  color: #4f5258;
  font-size: 0.95rem;
}

.service-outcomes {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.service-outcomes div {
  display: grid;
  gap: 4px;
  padding: 12px 0 0;
  border-top: 1px solid var(--soft);
}

.service-outcomes dt {
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-outcomes dd {
  margin: 0;
  color: #4f5258;
  font-size: 0.9rem;
}

.assessment-callout-section {
  padding: clamp(70px, 8vw, 104px) 0;
  color: var(--white);
  background:
    linear-gradient(105deg, rgba(165, 0, 5, 0.34), transparent 52%),
    #050505;
}

.assessment-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: center;
}

.assessment-callout h2 {
  max-width: 780px;
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
}

.assessment-callout p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.portfolio {
  padding: 70px 0 84px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(183, 137, 45, 0.08), transparent 25%),
    #050505;
}

.portfolio h2,
.portfolio h3,
.portal h2,
.portal h3 {
  color: var(--white);
}

.portfolio-head,
.portal-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.portfolio-head p {
  max-width: 520px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.portfolio-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.portfolio-list.is-empty {
  grid-template-columns: 1fr;
}

.portfolio-empty {
  min-height: 230px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: 36px;
  border: 1px solid rgba(183, 137, 45, 0.45);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(183, 137, 45, 0.12), transparent 42%),
    #101112;
}

.portfolio-empty h3 {
  color: var(--white);
  font-size: 2rem;
}

.portfolio-empty p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.portfolio-item {
  min-height: 292px;
  display: grid;
  grid-template-rows: 135px 1fr;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(183, 137, 45, 0.45);
  border-radius: 4px;
}

.project-visual {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.project-visual::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.visual-sheet,
.visual-dashboard,
.visual-scorecard,
.visual-workflow {
  position: absolute;
  inset: 24px;
}

.visual-sheet {
  background:
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(0, 0, 0, 0.1) 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(0, 0, 0, 0.09) 47px 48px),
    linear-gradient(90deg, #e7f0df 0 18%, #fff 18% 100%);
}

.visual-dashboard {
  background:
    radial-gradient(circle at 25% 70%, #2f9c91 0 8px, transparent 9px),
    linear-gradient(90deg, var(--red) 0 18%, transparent 18%),
    linear-gradient(180deg, #f9fbfb 0 28%, #ffffff 28%);
}

.visual-scorecard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.visual-scorecard span {
  border: 1px solid #cfd6d0;
  background: linear-gradient(180deg, #ffffff, #eef4f0);
}

.visual-workflow {
  background:
    linear-gradient(90deg, transparent 10%, rgba(183, 137, 45, 0.42) 10% 12%, transparent 12%),
    linear-gradient(0deg, transparent 43%, rgba(183, 137, 45, 0.42) 43% 45%, transparent 45%);
}

.visual-workflow span {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 2px solid #6bbfbd;
  border-radius: 4px;
  background: #fff;
}

.visual-workflow span:nth-child(1) {
  top: 8px;
  left: 10px;
}

.visual-workflow span:nth-child(2) {
  top: 8px;
  right: 12px;
}

.visual-workflow span:nth-child(3) {
  bottom: 7px;
  left: 45%;
  border-color: var(--red);
}

.project-copy {
  padding: 24px;
}

.project-copy h3 {
  max-width: 220px;
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.project-copy h3::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--gold);
}

.project-copy p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.project-link {
  color: var(--red);
  font-size: 1.4rem;
}

.about {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.about-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(460px, 1fr);
  gap: 60px;
  align-items: center;
}

.about-media {
  min-width: 0;
}

.about-photo-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(183, 137, 45, 0.14), transparent 46%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.about-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  filter: brightness(1.08) contrast(1.04) saturate(1.04);
}

.about-photo-placeholder {
  position: absolute;
  inset: 24px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px dashed rgba(183, 137, 45, 0.7);
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
}

.about-photo-card.has-image .about-photo-placeholder {
  display: none;
}

.about-copy p {
  max-width: 700px;
  margin: 22px 0 0;
  font-size: 1.04rem;
}

.bio-panel {
  margin-top: 28px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.bio-panel h3 {
  font-size: 1.8rem;
}

.bio-panel strong {
  display: block;
  margin-top: 6px;
  color: var(--red-dark);
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.84rem;
}

.bio-panel p {
  margin-top: 14px;
}

.about-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
}

.about-facts article {
  min-height: 170px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 18px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.about-facts span,
.about-facts small {
  color: #55585e;
}

.about-facts strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.1;
}

.ok-outline {
  width: 42px;
  height: 24px;
  border: 2px solid var(--red);
  clip-path: polygon(0 25%, 62% 25%, 62% 0, 100% 0, 100% 72%, 68% 72%, 68% 100%, 0 100%);
}

.cross-icon {
  position: relative;
  width: 34px;
  height: 44px;
  display: block;
}

.cross-icon::before,
.cross-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--red);
}

.cross-icon::before {
  width: 3px;
  height: 40px;
}

.cross-icon::after {
  width: 26px;
  height: 3px;
  top: 38%;
}

.chapel-line {
  position: absolute;
  right: 0;
  bottom: -34px;
  width: 235px;
  height: 150px;
  opacity: 0.2;
  border: 2px solid var(--gold);
  border-bottom: 0;
  border-radius: 120px 120px 0 0;
}

.chapel-line::before,
.chapel-line::after {
  content: "";
  position: absolute;
  bottom: 0;
  border: 2px solid var(--gold);
  border-bottom: 0;
}

.chapel-line::before {
  left: 42px;
  width: 60px;
  height: 88px;
  border-radius: 38px 38px 0 0;
}

.chapel-line::after {
  right: 42px;
  width: 60px;
  height: 88px;
  border-radius: 38px 38px 0 0;
}

.contact {
  padding: 76px 0 86px;
  background:
    linear-gradient(90deg, rgba(183, 137, 45, 0.08), transparent 38%),
    var(--white);
}

.contact-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.contact-heading {
  position: relative;
  max-width: 760px;
}

.contact-heading h2 {
  text-transform: uppercase;
  font-size: 3.3rem;
}

.contact-heading p {
  max-width: 450px;
  margin: 30px 0 0;
}

.contact-heading::after {
  display: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) minmax(240px, 0.78fr);
  gap: 30px;
  min-width: 0;
}

.simple-contact-grid {
  grid-template-columns: minmax(280px, 620px);
}

.form-panel,
.login-panel,
.contact-info,
.client-workspace,
.admin-workspace {
  border-radius: 4px;
}

.form-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.form-panel h3,
.contact-info h3 {
  color: var(--red-dark);
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: #4d5055;
  font-size: 0.82rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(183, 137, 45, 0.16);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--red-dark);
  font-size: 0.88rem;
}

.contact-info {
  display: grid;
  gap: 20px;
  align-content: start;
  padding-left: 28px;
  border-left: 1px solid var(--line);
  min-width: 0;
}

.simple-contact-grid .contact-info {
  padding-left: 0;
  border-left: 0;
}

.contact-info a,
.contact-info > span {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 13px;
  align-items: center;
  color: #3b3d42;
}

.statewide {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gold);
}

.contact-info > .statewide {
  display: block;
}

.contact-direct-actions {
  display: grid;
  gap: 12px;
}

.portal {
  padding: 74px 0 86px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(183, 137, 45, 0.14), transparent 34%),
    #050505;
}

.portal-static {
  min-height: calc(100vh - var(--header-height));
  padding: 82px 0 96px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(183, 137, 45, 0.14), transparent 34%),
    #050505;
}

.portal-static-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: 54px;
  align-items: center;
}

.portal-static-copy p {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.portal-static-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.portal-static-note {
  padding: 30px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(183, 137, 45, 0.55);
  border-radius: 4px;
}

.portal-static-note h2 {
  font-size: 1.6rem;
}

.portal-static-note p {
  margin: 14px 0 0;
  color: #4d5055;
}

.portal-head {
  align-items: center;
}

.login-title {
  color: var(--white);
  font-size: 3.4rem;
}

.login-title::first-line {
  color: var(--white);
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.single-login {
  max-width: 620px;
  grid-template-columns: 1fr;
}

.compact-panel {
  min-height: 0;
}

.login-panel {
  min-height: 430px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 48px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.96)),
    var(--white);
  border: 1px solid var(--line);
}

.login-panel h3 {
  color: var(--red-dark);
  text-align: center;
}

.login-panel h2 {
  color: var(--red-dark);
  text-align: center;
  font-size: 1.35rem;
}

.login-panel p {
  margin: -8px 0 4px;
  text-align: center;
}

.login-logo {
  justify-self: center;
  width: 64px;
  height: 64px;
  flex-basis: 64px;
}

.staff-panel {
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(183, 137, 45, 0.12), transparent 45%),
    #101112;
  border-color: rgba(183, 137, 45, 0.65);
}

.staff-panel h3 {
  color: var(--gold);
}

.staff-panel h2 {
  color: var(--gold);
}

.staff-panel p,
.staff-panel label span,
.staff-panel .forgot-link {
  color: rgba(255, 255, 255, 0.78);
}

.staff-panel input {
  color: var(--white);
  background: #141618;
  border-color: rgba(183, 137, 45, 0.45);
}

.forgot-link {
  justify-self: center;
  color: var(--red-dark);
  font-size: 0.88rem;
}

.text-button {
  padding: 0;
  background: transparent;
  border: 0;
  text-decoration: underline;
}

.login-status {
  text-align: center;
}

.client-workspace {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  color: var(--ink);
}

.workspace-main,
.workspace-side,
.admin-main {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.workspace-main,
.workspace-side {
  padding: 28px;
}

.workspace-main h3,
.workspace-side h3,
.admin-main h3 {
  color: var(--ink);
}

.workspace-main h2,
.workspace-side h2,
.admin-main h2 {
  color: var(--ink);
  font-size: 1.35rem;
}

.workspace-metrics,
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.workspace-metrics article,
.admin-metrics article {
  padding: 18px;
}

.workspace-metrics span,
.admin-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.workspace-metrics strong,
.admin-metrics strong {
  font-size: 2rem;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.timeline span {
  color: var(--red-dark);
  font-weight: 800;
}

.timeline p {
  margin: 6px 0 0;
  color: #55585e;
}

.workspace-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 560px;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(183, 137, 45, 0.5);
}

.admin-sidebar {
  padding: 24px 16px;
}

.admin-main {
  min-width: 0;
  padding: 30px;
  background: #f4f5f5;
  border: 0;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-form,
.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 10px;
  margin: 18px 0;
}

.admin-actions {
  grid-template-columns: auto auto 1fr;
}

.admin-help {
  max-width: 780px;
  margin: 12px 0 0;
  color: #565960;
}

.content-editor {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.content-group {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.content-group h3 {
  color: var(--red-dark);
  font-family: var(--sans);
  font-size: 0.94rem;
  text-transform: uppercase;
}

.content-field {
  display: grid;
  gap: 7px;
}

.content-field textarea {
  min-height: 112px;
}

.content-editor .admin-actions {
  margin: 0;
}

.admin-subsection {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.admin-subsection h3 {
  color: var(--red-dark);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.admin-list article.editable-record {
  grid-template-columns: 1fr;
}

.record-fields {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(220px, 1fr);
  gap: 10px;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.record-meta {
  display: grid;
  gap: 3px;
}

.admin-list strong {
  display: block;
}

.admin-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.remove-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--red-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.save-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--white);
  background: var(--red-dark);
  border: 1px solid var(--red-dark);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-success {
  color: #17612d;
}

.status-error {
  color: var(--red-dark);
}

.site-footer {
  padding: 34px 0;
  background: #050505;
  color: var(--white);
  border-top: 1px solid rgba(183, 137, 45, 0.5);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(280px, 1fr) auto auto;
  align-items: start;
  gap: 24px;
}

.footer-brand .brand-name,
.footer-brand .brand-subtitle {
  color: var(--white);
}

.footer-summary {
  display: grid;
  gap: 8px;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.footer-links,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-legal {
  max-width: 190px;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--gold-soft);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 1280px) {
  .site-header {
    gap: 18px;
    padding: 12px 26px;
  }

  .primary-nav {
    gap: 18px;
    font-size: 0.9rem;
  }

  .hero-shell {
    grid-template-columns: minmax(390px, 0.78fr) minmax(540px, 1.22fr);
    gap: 38px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .dashboard-preview {
    transform: none;
  }

}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-shell,
  .contact-expectations {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    max-width: none;
  }

  .contact-info {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }
}

@media (max-width: 1180px) {
  .site-header {
    gap: 12px;
    padding: 10px 18px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand-name {
    font-size: 1.45rem;
  }

  .brand-subtitle {
    font-size: 0.54rem;
  }

  .primary-nav {
    gap: 12px;
    font-size: 0.84rem;
  }

  .header-cta,
  .header-login {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 1080px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .brand-name {
    font-size: 1.6rem;
  }

  .brand-subtitle {
    font-size: 0.58rem;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .primary-nav,
  .header-actions {
    display: none;
  }

  .primary-nav.open {
    position: fixed;
    left: 16px;
    right: 16px;
    top: calc(var(--header-height) + 10px);
    z-index: 60;
    display: grid;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .primary-nav.open a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--soft);
  }

  .primary-nav.open .nav-login-link {
    display: inline-flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--white);
    background: linear-gradient(180deg, var(--red), var(--red-dark));
    border: 1px solid var(--red-dark);
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .primary-nav.open .nav-login-link::after {
    display: none;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .split-intro,
  .about-shell,
  .portal-static-shell {
    grid-template-columns: 1fr;
  }

  .portfolio-list {
    grid-template-columns: 1fr 1fr;
  }

  .about-photo-card,
  .about-photo-card img {
    min-height: 420px;
  }

  .about-facts {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .admin-workspace,
  .client-workspace {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .admin-sidebar .dash-brand {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
}

@media (max-width: 780px) {
  .section-shell {
    width: min(100% - 32px, 1380px);
  }

  .site-header {
    padding: 10px 16px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .hero {
    padding: 46px 0 40px;
  }

  .hero-ornament {
    display: none;
  }

  .hero-copy {
    padding-left: 0;
  }

  h1 {
    font-size: 3rem;
  }

  h2,
  .contact-heading h2 {
    font-size: 2.25rem;
  }

  .hero-copy p {
    font-size: 1.05rem;
  }

  .contact-strip {
    flex-wrap: wrap;
    width: auto;
    max-width: 100%;
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dash-sidebar {
    display: none;
  }

  .dash-main {
    padding: 20px;
  }

  .metric-grid,
  .dash-panels,
  .service-list,
  .portfolio-list,
  .about-facts,
  .login-grid,
  .workspace-metrics,
  .admin-metrics,
  .field-row {
    grid-template-columns: 1fr;
  }

  .portfolio-head,
  .portal-head,
  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-panel {
    padding: 30px 22px;
  }

  .admin-sidebar,
  .admin-form,
  .admin-actions,
  .record-fields {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .brand-text {
    max-width: 190px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .brand-subtitle {
    font-size: 0.5rem;
  }

  .cross-rule {
    width: 210px;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2,
  .contact-heading h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .contact-strip,
  .portal-static-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .dash-topline,
  .contact-info a,
  .contact-info > span,
  .admin-list article {
    grid-template-columns: 1fr;
  }
}

/* Homepage previews */
.home-routing,
.home-next-step {
  padding: 76px 0;
  background: var(--white);
}

.home-positioning {
  padding: 74px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.positioning-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: start;
}

.positioning-shell > div:first-child p {
  max-width: 620px;
  margin: 22px 0 0;
  color: #474a50;
  font-size: 1.04rem;
}

.positioning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.positioning-grid article {
  min-height: 220px;
  padding: 26px;
  background: var(--white);
}

.positioning-grid h3 {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.positioning-grid p {
  margin: 14px 0 0;
  color: #4f5258;
  font-size: 0.95rem;
}

.home-routing-shell,
.home-next-step-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: start;
}

.home-routing-copy p,
.home-next-step p {
  max-width: 580px;
  margin: 22px 0 0;
  color: #474a50;
  font-size: 1.04rem;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.home-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding: 26px;
  background: var(--paper);
  transition: background 150ms ease, transform 150ms ease;
}

.home-card:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.home-card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--red);
  border-left: 3px solid var(--red);
}

.home-card-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-card-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.home-card-label {
  color: var(--red-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-card strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.42rem;
  line-height: 1.22;
}

.home-card small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.home-featured-work {
  padding-top: 76px;
}

.portfolio-preview-head h2 {
  max-width: 760px;
}

.portfolio-preview-head p {
  max-width: 680px;
  margin-top: 18px;
}

.portfolio-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: 44px;
  align-items: center;
  padding: 36px;
  border: 1px solid rgba(183, 137, 45, 0.48);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(183, 137, 45, 0.12), transparent 42%),
    #101112;
}

.project-kicker,
.disclosure-line {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-kicker {
  margin-bottom: 10px;
  color: var(--gold-soft);
}

.portfolio-feature h3 {
  color: var(--white);
  font-size: 2rem;
}

.portfolio-feature p {
  max-width: 680px;
  margin: 14px 0;
  color: rgba(255, 255, 255, 0.76);
}

.disclosure-line {
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.03em;
  text-transform: none;
}

.mini-architecture {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.mini-architecture span {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--white);
  border: 1px solid rgba(183, 137, 45, 0.52);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  font-weight: 800;
}

.mini-architecture i {
  color: var(--gold);
  font-style: normal;
  font-size: 1.4rem;
}

.home-feature-actions {
  margin-top: 24px;
}

.home-data-preview {
  min-height: 330px;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(183, 137, 45, 0.5);
  background:
    linear-gradient(135deg, rgba(165, 0, 5, 0.16), transparent 44%),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(183, 137, 45, 0.08) 55px 56px),
    #151719;
}

.sql-window {
  display: grid;
  gap: 12px;
  padding: 18px;
  color: var(--white);
  background: #070707;
  border: 1px solid rgba(183, 137, 45, 0.45);
}

.sql-window span {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sql-window code {
  color: rgba(255, 255, 255, 0.82);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.schema-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.schema-grid span {
  min-height: 46px;
  display: grid;
  align-items: center;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.82);
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.06);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
}

.home-dashboard-thumb {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(183, 137, 45, 0.52);
  background: #111214;
}

.home-dashboard-thumb img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: contain;
}

.home-audience {
  padding: 76px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.home-process {
  padding: 76px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.home-process-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: start;
}

.home-process-shell p {
  max-width: 580px;
  margin: 22px 0 24px;
  color: #474a50;
  font-size: 1.04rem;
}

.home-process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.home-process-steps article {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  background: var(--paper);
}

.home-process-steps span {
  color: rgba(120, 0, 4, 0.78);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 800;
}

.home-process-steps strong {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-process-steps small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.home-trust {
  padding: 76px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 16% 16%, rgba(183, 137, 45, 0.18), transparent 27%),
    linear-gradient(145deg, #050505 0%, #111214 58%, #060606 100%);
}

.home-trust-shell h2 {
  max-width: 820px;
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  padding: 1px;
  background: rgba(183, 137, 45, 0.34);
}

.trust-grid article {
  min-height: 200px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.055);
}

.trust-grid h3 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-grid p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}

.home-section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.audience-grid,
.about-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.audience-grid article,
.about-value-grid article {
  min-height: 180px;
  padding: 26px;
  background: var(--white);
}

.audience-grid h3,
.about-value-grid h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.audience-grid p,
.about-value-grid p {
  margin: 14px 0 0;
  color: #4f5258;
  font-size: 0.95rem;
}

.home-next-step {
  background:
    linear-gradient(90deg, rgba(183, 137, 45, 0.08), transparent 38%),
    var(--white);
}

.home-contact-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(24px, 4vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
}

.home-contact-links {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.home-contact-links a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: center;
  color: #3b3d42;
}

.home-contact-links svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-media-slot {
  width: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 9;
}

.about-story-section,
.about-founder-section,
.about-values-section {
  padding: clamp(64px, 7vw, 96px) 0;
}

.about-story-section,
.about-values-section {
  background: var(--white);
}

.about-founder-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-story-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: start;
}

.about-story-copy {
  display: grid;
  gap: 18px;
}

.about-story-copy p {
  margin: 0;
  color: #474a50;
  font-size: 1.03rem;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

@media (max-width: 1080px) {
  .home-routing-shell,
  .home-next-step-shell,
  .home-process-shell,
  .positioning-shell,
  .assessment-shell,
  .support-shell,
  .about-story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .home-card-grid,
  .positioning-grid,
  .home-process-steps,
  .trust-grid,
  .process-steps,
  .support-grid,
  .schema-grid,
  .audience-grid,
  .about-value-grid {
    grid-template-columns: 1fr;
  }

  .home-card {
    grid-template-columns: 52px 1fr;
    min-height: 0;
    padding: 22px;
  }

  .home-data-preview,
  .empty-media-slot {
    min-height: 260px;
  }

  .home-dashboard-thumb img {
    min-height: 0;
  }

  .about-cta-actions {
    display: grid;
  }

  .about-copy {
    order: -1;
  }
}

/* Contact form and social links */
.project-contact-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.72fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.contact-expectations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.contact-expectations article {
  min-height: 190px;
  padding: 24px;
  background: var(--paper);
}

.contact-expectations h2 {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-expectations p {
  margin: 14px 0 0;
  color: #4f5258;
  font-size: 0.94rem;
}

.project-form {
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(8, 8, 8, 0.06);
}

.form-intro {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.form-intro h2 {
  color: var(--red-dark);
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

label span b,
.consent-row b {
  color: var(--red);
}

label span em {
  color: var(--muted);
  font-weight: 400;
}

.project-form input[aria-invalid="true"],
.project-form select[aria-invalid="true"],
.project-form textarea[aria-invalid="true"] {
  border-color: var(--red);
}

.field-error {
  min-height: 0;
  color: var(--red-dark);
  font-size: 0.78rem;
  line-height: 1.35;
}

.field-error:empty {
  display: none;
}

.contact-preference {
  min-height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-preference legend {
  width: 100%;
  margin-bottom: 7px;
  color: #4d5055;
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-preference label,
.consent-row {
  display: flex;
  grid-template-columns: none;
  gap: 9px;
  align-items: center;
}

.contact-preference label {
  min-height: 48px;
  padding: 0 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #3e4147;
  font-size: 0.9rem;
}

.contact-preference input,
.consent-row input {
  width: 24px;
  min-height: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin: 0;
  accent-color: var(--red);
}

.consent-row {
  align-items: flex-start;
  margin-top: 2px;
}

.consent-row span {
  color: #3e4147;
  font-size: 0.86rem;
  line-height: 1.45;
}

.consent-row a,
.legal-content a {
  color: var(--red-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-error {
  margin-top: -12px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  justify-self: start;
}

.form-submit:disabled {
  opacity: 0.74;
}

.form-status {
  min-height: 0;
  padding: 0;
  line-height: 1.5;
}

.form-status:not(:empty) {
  padding: 12px 14px;
  border-left: 3px solid currentColor;
  background: var(--white);
}

.status-notice {
  color: #765818;
}

.social-connect {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.social-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-button {
  min-width: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: left;
}

.social-button:not([aria-disabled="true"]):hover {
  color: var(--red-dark);
  border-color: var(--gold);
}

.social-button[aria-disabled="true"] {
  cursor: default;
}

.social-button svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-button > span {
  display: grid;
  gap: 2px;
  font-weight: 800;
}

.social-button small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.delivery-note {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  background: var(--paper);
  border-left: 3px solid var(--gold);
  font-size: 0.82rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.58);
}

.legal-page {
  padding: clamp(70px, 8vw, 112px) 0;
  background: var(--white);
}

.legal-shell {
  max-width: 980px;
}

.legal-shell h1 {
  max-width: 780px;
}

.legal-updated {
  margin: 20px 0 0;
  color: var(--gold-text);
  font-weight: 800;
}

.legal-content {
  display: grid;
  gap: 28px;
  margin-top: 46px;
}

.legal-content section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.legal-content p {
  max-width: 820px;
  margin: 14px 0 0;
  color: #474a50;
}

.not-found-page {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(74px, 10vw, 126px) 0;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(165, 0, 5, 0.34), transparent 54%),
    radial-gradient(circle at 78% 18%, rgba(183, 137, 45, 0.2), transparent 26%),
    #050505;
}

.not-found-shell h1 {
  color: var(--white);
  max-width: 780px;
  font-size: clamp(3rem, 7vw, 5.2rem);
}

.not-found-shell p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.page-hero {
  padding: clamp(70px, 8vw, 112px) 0;
  background:
    linear-gradient(90deg, rgba(183, 137, 45, 0.08), transparent 38%),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.page-hero-shell p {
  max-width: 760px;
  margin: 24px 0 0;
  color: #474a50;
  font-size: 1.08rem;
}

.process-steps-section,
.support-section {
  padding: clamp(70px, 8vw, 112px) 0;
  background: var(--white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  padding: 1px;
  background: var(--line);
}

.process-steps article,
.support-grid article {
  min-height: 240px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--paper);
}

.process-steps span {
  display: block;
  margin-bottom: 34px;
  color: rgba(165, 0, 5, 0.42);
  font-family: var(--serif);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
}

.process-steps h3,
.support-grid h3 {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.process-steps p,
.support-grid p {
  margin: 14px 0 0;
  color: #4f5258;
}

.assessment-section {
  padding: clamp(76px, 8vw, 112px) 0;
  color: var(--white);
  background:
    radial-gradient(circle at 16% 16%, rgba(183, 137, 45, 0.18), transparent 27%),
    linear-gradient(145deg, #050505 0%, #111214 58%, #060606 100%);
}

.assessment-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: start;
}

.assessment-shell h2 {
  color: var(--white);
}

.assessment-shell p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.assessment-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assessment-list li {
  position: relative;
  padding: 18px 18px 18px 34px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(183, 137, 45, 0.28);
}

.assessment-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 1.65em;
  width: 9px;
  height: 2px;
  background: var(--gold);
}

.support-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.support-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: start;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.support-grid article {
  min-height: 210px;
  background: var(--white);
}

/* Portfolio case study */
.portfolio-index-section {
  padding: clamp(70px, 8vw, 112px) 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.portfolio-index-shell {
  display: grid;
  gap: 42px;
}

.portfolio-index-intro {
  max-width: 880px;
}

.portfolio-index-intro p {
  max-width: 780px;
  margin: 22px 0 0;
  color: #474a50;
  font-size: 1.08rem;
}

.portfolio-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.portfolio-status-card {
  min-height: 420px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--paper);
}

.portfolio-status-card h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}

.portfolio-status-card p {
  margin: 0;
  color: #4f5258;
}

.portfolio-status-card ul {
  display: grid;
  gap: 9px;
  margin: 4px 0 6px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.portfolio-status-card li {
  position: relative;
  padding-left: 20px;
  color: #3f4247;
  font-size: 0.92rem;
}

.portfolio-status-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 2px;
  background: var(--red);
}

.portfolio-status-card .button {
  justify-self: start;
  margin-top: auto;
}

.status-complete {
  color: #124f27;
  border-color: rgba(18, 79, 39, 0.36);
}

.status-active {
  color: var(--red-dark);
  border-color: rgba(165, 0, 5, 0.36);
}

.status-planned {
  color: var(--gold-text);
  border-color: rgba(118, 88, 24, 0.36);
}

.case-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 5vw, 74px) 0 clamp(38px, 4vw, 52px);
  color: var(--white);
  background:
    radial-gradient(circle at 86% 18%, rgba(183, 137, 45, 0.18), transparent 26%),
    linear-gradient(135deg, #050505 0%, #111214 68%, #050505 100%);
}

.case-hero-grid {
  position: absolute;
  inset: 0 0 0 58%;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(219, 193, 137, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(219, 193, 137, 0.34) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: skewX(-8deg);
  transform-origin: top;
}

.case-hero-product {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.case-hero-product::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.82) 42%, rgba(5, 5, 5, 0.2) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.16) 58%);
  z-index: 1;
}

.case-hero-screen {
  position: absolute;
  display: block;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.55);
}

.case-hero-screen-main {
  right: -5vw;
  bottom: clamp(18px, 4vw, 54px);
  width: min(52vw, 760px);
  opacity: 0.5;
  transform: perspective(1200px) rotateY(-12deg) rotateZ(-1deg);
}

.case-hero-screen-secondary {
  right: clamp(18px, 7vw, 112px);
  top: clamp(42px, 7vw, 88px);
  width: min(34vw, 440px);
  opacity: 0.74;
  transform: perspective(1000px) rotateY(-10deg) rotateZ(2deg);
}

.case-hero-shell {
  position: relative;
  z-index: 2;
}

.case-hero .section-line {
  max-width: 620px;
}

.case-hero-title {
  max-width: 860px;
  color: var(--white);
  font-size: clamp(2.8rem, 5.6vw, 5.1rem);
}

.case-hero-title::first-line {
  color: var(--white);
}

.case-hero > .section-shell > p:not(.data-disclosure) {
  max-width: 790px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.case-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 28px;
}

.text-link-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
}

.text-link-light svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.data-disclosure {
  width: fit-content;
  max-width: 100%;
  margin: 20px 0 0;
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.72);
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.84rem;
}

.case-summary,
.product-positioning-section,
.business-problem-section,
.project-scale-section,
.system-source-section,
.case-media-section,
.application-gallery-section,
.walkthrough-section,
.technology-section {
  padding: clamp(70px, 8vw, 112px) 0;
}

.case-summary {
  background: var(--white);
}

.case-facts-section {
  padding: clamp(70px, 8vw, 112px) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-facts-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: start;
}

.case-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: var(--line);
}

.case-facts-grid div {
  min-height: 150px;
  padding: 22px;
  background: var(--white);
}

.case-facts-grid dt {
  margin-bottom: 12px;
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-facts-grid dd {
  margin: 0;
  color: #3f4247;
  font-size: 0.94rem;
  line-height: 1.65;
}

.product-positioning-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7f6f2 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-positioning-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: clamp(48px, 7vw, 108px);
  align-items: start;
}

.product-positioning-copy > p {
  max-width: 760px;
  margin: 0;
  color: #3d4046;
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.75;
}

.product-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  padding: 1px;
  background: rgba(18, 19, 21, 0.12);
}

.product-proof-grid article {
  min-width: 0;
  min-height: 230px;
  padding: clamp(22px, 3vw, 30px);
  background: #ffffff;
}

.product-proof-grid span {
  display: block;
  margin-bottom: 34px;
  color: rgba(165, 0, 5, 0.42);
  font-family: var(--serif);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
}

.product-proof-grid h3 {
  color: var(--ink);
  font-size: 1.12rem;
}

.product-proof-grid p {
  margin: 12px 0 0;
  color: #55585f;
  font-size: 0.92rem;
  line-height: 1.65;
}

.business-problem-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.case-section-heading {
  max-width: 660px;
}

.case-section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
}

.case-section-heading > p,
.gallery-heading > p {
  margin: 22px 0 0;
  color: #484b51;
  font-size: 1.03rem;
}

.compact-heading {
  max-width: 760px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  margin: 42px 0 0;
  padding: 1px;
  background: var(--line);
}

.summary-grid div {
  grid-column: span 3;
  min-height: 150px;
  padding: 24px;
  background: var(--paper);
}

.summary-grid div:nth-child(2),
.summary-grid div:nth-child(5) {
  grid-column: span 6;
}

.summary-grid dt {
  margin-bottom: 14px;
  color: var(--red-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-grid dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.problem-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.problem-card-grid article {
  min-height: 170px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.problem-card-grid h3 {
  color: var(--ink);
  font-size: 1.12rem;
}

.problem-card-grid p {
  margin: 12px 0 0;
  color: #4f5156;
  font-size: 0.94rem;
  line-height: 1.7;
}

.project-scale-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 42px 0 0;
  padding: 1px;
  background: var(--line);
}

.scale-grid div {
  min-height: 150px;
  padding: 24px;
  background: var(--paper);
}

.scale-grid dt {
  margin-bottom: 14px;
  color: var(--red-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scale-grid dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
}

.system-source-section {
  color: var(--white);
  background:
    radial-gradient(circle at 16% 16%, rgba(183, 137, 45, 0.18), transparent 27%),
    radial-gradient(circle at 84% 8%, rgba(165, 0, 5, 0.18), transparent 30%),
    linear-gradient(145deg, #050505 0%, #111214 58%, #060606 100%);
}

.source-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.source-product-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.source-product-card-wide {
  grid-column: 1 / -1;
}

.source-product-media {
  width: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #050505;
  cursor: zoom-in;
}

.source-product-card-wide .source-product-media {
  aspect-ratio: 16 / 9;
}

.source-product-card:not(.source-product-card-wide) .source-product-media {
  aspect-ratio: 16 / 10;
}

.source-product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #f5f4ef;
}

.source-product-card-wide .source-product-media img {
  object-fit: cover;
}

.source-product-copy {
  padding: clamp(22px, 3vw, 34px);
}

.source-product-copy span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.source-product-copy h3 {
  color: var(--white);
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
}

.source-product-copy p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
  line-height: 1.75;
}

.architecture-section {
  padding: clamp(72px, 8vw, 112px) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.architecture-shell > .case-section-heading {
  margin-bottom: 46px;
}

.architecture-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.architecture-flow article {
  position: relative;
  min-height: 260px;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(24px, 3vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(8, 8, 8, 0.06);
}

.architecture-flow article::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.architecture-flow article > svg {
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.architecture-flow article > span {
  position: absolute;
  right: 22px;
  top: 18px;
  color: rgba(183, 137, 45, 0.42);
  font-family: var(--serif);
  font-size: 2.7rem;
  font-weight: 700;
}

.architecture-flow h3 {
  font-size: 1.55rem;
}

.architecture-flow p {
  margin: 12px 0 0;
  color: var(--muted);
}

.flow-arrow {
  color: var(--gold);
  font-size: 2rem;
}

.architecture-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.architecture-notes p {
  margin: 0;
  color: #4a4d53;
}

.architecture-notes p:last-child {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
}

.architecture-notes svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: clamp(48px, 7vw, 108px);
  align-items: center;
}

.case-two-column > *,
.gallery-heading > *,
.technology-shell > *,
.case-cta-shell > * {
  min-width: 0;
}

.case-section-heading h2 {
  overflow-wrap: anywhere;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 22px;
  color: #3f4247;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 2px;
  background: var(--red);
}

.case-media-figure {
  margin: 0;
  filter: drop-shadow(0 24px 70px rgba(8, 8, 8, 0.12));
}

.media-trigger,
.branded-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.media-trigger {
  display: block;
  padding: 0;
  cursor: zoom-in;
}

.media-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.database-section .media-trigger {
  aspect-ratio: 16 / 10;
}

.branded-placeholder {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(165, 0, 5, 0.32), transparent 42%),
    repeating-linear-gradient(135deg, transparent 0 28px, rgba(183, 137, 45, 0.07) 29px 30px),
    #111214;
  text-align: center;
}

.branded-placeholder::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(183, 137, 45, 0.38);
}

.placeholder-mark {
  width: 64px;
  height: 64px;
  background-image: url("./orahood-logo.png");
  background-repeat: no-repeat;
  background-size: 240% auto;
  background-position: center 8%;
}

.branded-placeholder strong {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.branded-placeholder small,
.dashboard-placeholder small {
  max-width: 90%;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
}

.case-media-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.dashboard-section {
  padding: clamp(76px, 8vw, 118px) 0;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 24%, rgba(165, 0, 5, 0.18), transparent 28%),
    #050505;
}

.gallery-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.7fr);
  gap: 60px;
  align-items: end;
}

.gallery-heading h2 {
  color: var(--white);
}

.gallery-heading > p {
  color: rgba(255, 255, 255, 0.68);
}

.dashboard-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.dashboard-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(183, 137, 45, 0.36);
  background: #101112;
}

.dashboard-card:first-child {
  grid-column: 1 / -1;
}

.dashboard-image {
  width: 100%;
  display: block;
  padding: 0;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #050505;
  cursor: zoom-in;
}

.dashboard-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dashboard-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 11px;
  padding: 28px;
  color: var(--white);
  background:
    linear-gradient(160deg, rgba(165, 0, 5, 0.32), transparent 43%),
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(183, 137, 45, 0.08) 60px 61px),
    #181a1c;
  text-align: center;
}

.dashboard-placeholder > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 1;
}

.dashboard-placeholder > strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
}

.dashboard-card-copy {
  padding: 26px;
}

.dashboard-card-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.dashboard-card h3 {
  color: var(--white);
  font-size: 1.65rem;
}

.dashboard-card p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.92rem;
}

.status-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--gold-soft);
  border: 1px solid rgba(183, 137, 45, 0.5);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.desktop-section {
  background: var(--paper);
}

.implementation-note {
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem !important;
}

.application-gallery-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.application-gallery-section .gallery-heading h2 {
  color: var(--ink);
}

.application-gallery-section .gallery-heading > p {
  color: #4f5156;
}

.application-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.app-shot-card {
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.app-shot-card:first-child {
  grid-column: 1 / -1;
}

.app-shot-image {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  aspect-ratio: 16 / 9;
  background: #111;
  cursor: zoom-in;
}

.app-shot-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.app-shot-copy {
  padding: 24px;
}

.app-shot-copy h3 {
  color: var(--ink);
  font-size: 1.2rem;
}

.app-shot-copy p {
  margin: 10px 0 0;
  color: #505359;
  font-size: 0.94rem;
  line-height: 1.7;
}

.walkthrough-section {
  background: var(--white);
}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-container iframe,
.portfolio-video,
.video-placeholder {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
}

.portfolio-video {
  display: block;
  background: #101112;
}

.video-transcript {
  margin-top: 18px;
  padding: 18px;
  color: #3f4247;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}

.video-transcript summary {
  cursor: pointer;
  color: var(--red-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.video-transcript ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 24px;
}

.video-transcript li {
  color: #4f5258;
  font-size: 0.92rem;
  line-height: 1.6;
}

.video-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 13px;
  padding: 28px;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(165, 0, 5, 0.32), transparent 24%),
    #101112;
  text-align: center;
}

.video-play {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.video-play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--gold);
}

.video-placeholder strong {
  font-family: var(--serif);
  font-size: 1.6rem;
}

.video-placeholder small {
  color: rgba(255, 255, 255, 0.6);
}

.technology-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.technology-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) 1fr;
  gap: 70px;
  align-items: end;
}

.technology-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.technology-list li {
  padding: 10px 16px;
  color: #3e4147;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  font-weight: 800;
}

.case-cta {
  padding: clamp(72px, 8vw, 104px) 0;
  color: var(--white);
  background:
    linear-gradient(105deg, rgba(165, 0, 5, 0.34), transparent 52%),
    #050505;
}

.case-cta-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: center;
}

.case-cta h2 {
  max-width: 780px;
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.3rem);
}

.case-cta p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.case-cta-actions {
  display: grid;
  gap: 12px;
  min-width: 230px;
}

.media-lightbox {
  width: min(94vw, 1320px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  overflow: visible;
  color: var(--white);
  background: #080808;
  border: 1px solid rgba(183, 137, 45, 0.6);
}

.media-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox-frame {
  position: relative;
  max-height: 94vh;
  overflow: auto;
}

.lightbox-frame > img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #0c0c0c;
}

.lightbox-close {
  position: sticky;
  float: right;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: -46px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.lightbox-caption {
  padding: 22px 26px 26px;
}

.lightbox-caption h2 {
  color: var(--white);
  font-size: 1.7rem;
}

.lightbox-caption p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1180px) {
  .portfolio-feature {
    grid-template-columns: 1fr;
  }

  .case-hero-screen-main {
    right: -18vw;
    width: 72vw;
  }

  .case-hero-screen-secondary {
    right: -3vw;
    width: 44vw;
  }

  .case-two-column {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 50px;
  }

  .summary-grid div,
  .summary-grid div:nth-child(2),
  .summary-grid div:nth-child(5) {
    grid-column: span 4;
  }

  .summary-grid div:nth-child(5) {
    grid-column: span 8;
  }

  .scale-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .case-hero-product {
    opacity: 0.52;
  }

  .case-hero-screen-main {
    right: -34vw;
    bottom: 28px;
    width: 94vw;
  }

  .case-hero-screen-secondary {
    display: none;
  }

  .project-contact-grid,
  .product-positioning-shell,
  .case-facts-shell,
  .case-two-column,
  .gallery-heading,
  .technology-shell,
  .assessment-callout,
  .case-cta-shell {
    grid-template-columns: 1fr;
  }

  .project-contact-grid .contact-info {
    border-top: 1px solid var(--line);
  }

  .architecture-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .architecture-flow article {
    min-height: 210px;
  }

  .flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
    padding: 10px 0;
  }

  .architecture-notes {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .reverse-media > :first-child {
    order: 2;
  }

  .reverse-media > :last-child {
    order: 1;
  }

  .technology-list {
    justify-content: flex-start;
  }

  .problem-card-grid,
  .product-proof-grid,
  .portfolio-status-grid,
  .case-facts-grid,
  .scale-grid,
  .source-product-grid,
  .application-gallery {
    grid-template-columns: 1fr;
  }

  .source-product-card-wide {
    grid-column: auto;
  }

  .app-shot-card:first-child {
    grid-column: auto;
  }

  .case-cta-actions {
    grid-template-columns: max-content max-content;
    min-width: 0;
  }
}

@media (max-width: 780px) {
  .portfolio-feature {
    padding: 26px;
  }

  .mini-architecture {
    grid-template-columns: 1fr;
  }

  .mini-architecture i {
    justify-self: center;
    transform: rotate(90deg);
  }

  .about-photo-card,
  .about-photo-card img {
    min-height: 0;
  }

  .about-photo-card {
    aspect-ratio: 4 / 5;
  }

  .summary-grid div,
  .summary-grid div:nth-child(2),
  .summary-grid div:nth-child(5) {
    grid-column: span 6;
  }

  .dashboard-gallery {
    grid-template-columns: 1fr;
  }

  .dashboard-card:first-child {
    grid-column: auto;
    display: block;
  }

  .dashboard-card:first-child .dashboard-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .footer-shell {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .case-hero {
    padding: 42px 0 44px;
  }

  .case-hero-product {
    display: none;
  }

  .form-intro,
  .dashboard-card-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-links,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    gap: 1px;
  }

  .summary-grid div,
  .summary-grid div:nth-child(2),
  .summary-grid div:nth-child(5) {
    grid-column: 1;
    min-height: 0;
  }

  .case-hero-actions,
  .case-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .case-hero-actions .button,
  .case-cta-actions .button {
    width: 100%;
  }

  .branded-placeholder,
  .dashboard-placeholder {
    padding: 18px;
  }

  .branded-placeholder small,
  .dashboard-placeholder small {
    display: none;
  }

  .technology-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .lightbox-caption {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .project-form {
    padding: 20px;
  }

  .contact-preference {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-preference legend {
    grid-column: 1 / -1;
  }

  .technology-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .assessment-shell,
  .support-shell,
  .case-facts-shell,
  .assessment-callout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .process-steps,
  .support-grid,
  .home-process-steps,
  .trust-grid,
  .portfolio-status-grid,
  .case-facts-grid,
  .positioning-grid {
    grid-template-columns: 1fr;
  }
}
