@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght,ital@6..72,400,0;6..72,500,0;6..72,600,0;6..72,400,1&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --ink: #16151a;
  --muted: #6d7075;
  --line: #d8d0c3;
  --paper: #f4f0e8;
  --white: #fbf8f1;
  --navy: #0a0d12;
  --navy-2: #111826;
  --accent: #d9a441;
  --orange: #e7bc67;
  --blue: #d9a441;
  --shadow: 0 18px 38px rgba(10,13,18,.10);
  --display: "Newsreader", Georgia, serif;
  --body: "Inter", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1,h2,h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; }
h1 { font-size: clamp(2.8rem,5vw,5.1rem); line-height: .99; }
h2 { font-size: clamp(2rem,3vw,3.2rem); line-height: 1.07; }
h3 { font-size: 1.55rem; line-height: 1.16; }
h1 span,.client-hero h1 span { color: var(--accent); }
em { font-style: italic; }
.eyebrow,.banner-kicker { font: 500 .69rem/1.5 var(--mono); letter-spacing: .18em; color: #90713f; }
.eyebrow.light,.banner-kicker { color: var(--orange); }

/* The official image supplies the architectural mark; the crop only adapts its framing. */
.brand,.client-brand { display: flex; align-items: center; gap: 12px; width: max-content; color: #e7e0d2; }
.brand-icon { width: 47px; height: 48px; overflow: hidden; display: block; position: relative; flex: none; background: #080808; }
.brand-icon img { position: absolute; width: 82px; max-width: none; height: auto; top: -2px; left: -17px; }
.brand-type strong { display: block; font: 500 1.45rem/.9 var(--display); letter-spacing: .01em; }
.brand-type em { display: block; color: var(--accent); font: 500 .55rem/1 var(--mono); letter-spacing: .28em; margin-top: 6px; font-style: normal; }
.sidebar .brand { width: 100%; flex-direction: column; align-items: center; gap: 0; }
.sidebar .brand-icon { width: 204px; height: 184px; }
.sidebar .brand-icon img { width: 204px; top: 0; left: 0; }
.sidebar .brand-type strong { display: none; }
.sidebar .brand-type em { text-align: center; margin-top: 3px; font-size: .64rem; letter-spacing: .36em; }
.app-shell { grid-template-columns: 248px minmax(0,1fr); }
.sidebar { background: var(--navy); color: #e7e0d2; padding: 28px 22px 24px; border-right: 1px solid #3a3226; }
.sidebar:before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg,transparent,var(--accent),transparent); opacity: .6; }
.sidebar-label { color: #817866; font: 500 .62rem var(--mono); letter-spacing: .14em; margin: 45px 10px 17px; }
.side-nav { gap: 2px; }
.side-nav a { border-radius: 0; color: #aaa69e; border-left: 1px solid transparent; font-size: .84rem; font-weight: 500; padding: 12px 13px; }
.side-nav a:hover,.side-nav a.active { background: #171b20; border-left-color: var(--accent); color: #f3ead8; }
.nav-icon { color: var(--accent); font-size: 1.08rem; }
.sidebar-bottom { border-top-color: #3d362e; }
.private-badge { color: var(--orange); font-size: .72rem; font-weight: 500; }
.private-badge span,.status-dot,.topbar-dot { background: var(--accent); box-shadow: none; }
.sidebar-bottom p { color: #918e88; }
.logout { color: #d1c9ba; font-weight: 500; }
.logout:hover { color: var(--accent); }
.main-content { max-width: 1510px; padding: 0 clamp(24px,5vw,82px); }
.topbar { border-color: var(--line); color: #77756e; font: 500 .64rem var(--mono); letter-spacing: .12em; }
.topbar-label b { color: var(--accent); }
.topbar-right { color: #8a8479; font: 400 .67rem var(--mono); }
.app-footer { border-color: var(--line); color: #8d897f; font: 400 .7rem var(--mono); }
.page-heading { margin-top: 61px; margin-bottom: 36px; align-items: end; }
.page-heading h1 { margin: 13px 0 13px; }
.page-heading h1 em { color: #a87823; }
.page-heading p { color: #696a66; max-width: 57ch; font-size: .96rem; line-height: 1.7; }
.button { border-radius: 2px; font-size: .78rem; font-weight: 600; letter-spacing: .01em; min-height: 46px; padding: 12px 18px; transition: background .28s,border-color .28s,color .28s; }
.button:hover { transform: none; }
.button-primary { background: #14171b; color: #f0e7d8; border-color: #14171b; }
.button-primary:hover { background: #2a2e35; border-color: var(--accent); }
.button-secondary { background: transparent; color: #292b2c; border-color: #aca18e; }
.button-secondary:hover { background: #e9e0d1; }
.button-ghost { color: #605c54; background: transparent; }
.button-light { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.button-light:hover { background: var(--orange); }
.button-outline-light { background: transparent; color: #f3eadb; border-color: #9b8153; }
.button-outline-light:hover { border-color: var(--accent); color: var(--orange); }
.text-button { color: #956e2b; font-size: .78rem; font-weight: 600; }

/* Dashboard: architecture, route and editorial rhythm. */
.welcome-banner { min-height: 338px; grid-template-columns: 1fr 39%; background: #111826; border: 1px solid #3b3021; border-radius: 2px; box-shadow: none; }
.welcome-banner>div:first-child { padding: 47px 52px; }
.welcome-banner h2 { font-size: clamp(2.7rem,4vw,4.7rem); letter-spacing: -.03em; line-height: 1.02; max-width: 660px; }
.welcome-banner p { color: #b9b4aa; font-size: .87rem; }
.banner-link { color: var(--orange); font-size: .78rem; font-weight: 600; border-bottom: 1px solid #7f663c; padding-bottom: 4px; }
.banner-visual { min-height: 338px; overflow: hidden; background: #080808; position: relative; border-left: 1px solid #66502d; }
.banner-visual:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(17,24,38,.23),transparent 45%); pointer-events: none; }
.banner-visual img { display: block; width: 100%; height: 145%; max-width: none; object-fit: cover; object-position: center top; }
.section-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.section-head h2 { margin-top: 8px; }
.count-pill { border: 1px solid #c3b598; border-radius: 0; background: transparent; color: #806334; font: 500 .66rem var(--mono); padding: 6px 8px; }
.project-grid,.demo-grid { gap: 14px; }
.project-card,.demo-card,.demo-placeholder,.info-panel,.form-panel,.summary-note,.revisions-box { border-radius: 2px; background: #fbf8f1; border-color: #d8d0c3; box-shadow: none; }
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #bca16e; }
.project-card-art { background: #1a2433 !important; height: 147px; }
.project-card-art:after { content: ""; position: absolute; left: 18%; top: 0; width: 45%; height: 100%; border-left: 1px solid rgba(217,164,65,.45); border-right: 1px solid rgba(217,164,65,.24); transform: skew(-28deg); }
.art-letter { font-family: var(--display); font-weight: 400; color: rgba(231,224,210,.23); font-size: 9rem; right: 20px; }
.art-lines { left: 22px; bottom: 23px; }
.art-lines i { height: 1px; background: var(--accent); border-radius: 0; }
.project-card-body { padding: 23px 24px 22px; }
.card-meta,.artifact-meta { color: #776e60; font: 500 .61rem var(--mono); letter-spacing: .11em; }
.card-arrow { color: #a77929; }
.project-card h3 { font-size: 1.8rem; }
.project-card p,.empty-state p { color: #73736f; }
.card-footer { border-color: var(--line); color: #827e76; font-size: .71rem; }
.empty-state { border-radius: 2px; border-color: #baaa8f; background: #fbf8f1; }
.empty-icon { color: #a47a34; }
.back-row a { color: #826a46; font-weight: 500; }
.back-row a:hover { color: #332819; }

/* Meeting dossier. */
.project-hero { background: #111826; border: 1px solid #3a3127; border-radius: 2px; min-height: 281px; }
.project-hero-copy { padding: 44px 49px; }
.project-hero h1 { font-size: clamp(3.2rem,5vw,5.5rem); }
.project-hero h1 span { color: var(--accent); }
.project-hero p { color: #b7b6b1; }
.hero-decoration { background: #080808 url('nehora-logo-sombre.png') center top/145% auto no-repeat; opacity: .55; }
.hero-path { position: absolute; left: -18%; right: 15%; bottom: 20%; border-top: 1px solid var(--accent); transform: rotate(-18deg); box-shadow: 0 0 18px rgba(217,164,65,.24); }
.quick-stats { border-radius: 2px; border-color: var(--line); background: #fbf8f1; box-shadow: none; }
.quick-stats>div { border-color: var(--line); }
.quick-stats span { color: #857c6c; font: 500 .59rem var(--mono); letter-spacing: .1em; }
.quick-stats strong { font-family: var(--display); font-size: 2rem; font-weight: 500; }
.artifact-card { border-radius: 2px; border-color: var(--line); background: #fbf8f1; }
.artifact-number { color: #9c773b; font: 500 .85rem var(--mono); }
.artifact-icon,.demo-emblem { border-radius: 0; background: #252a2b; color: var(--orange); font-size: 1.2rem; }
.artifact-main h3 { font-size: 1.48rem; }
.artifact-main p,.demo-card p,.demo-placeholder p { color: #777773; }
.published-badge,.draft-badge { border-radius: 0; background: transparent; border: 1px solid #a58b55; color: #715222; font: 500 .59rem var(--mono); padding: 4px 7px; }
.draft-badge { color: #737373; border-color: #a4a4a4; }
.version-details,.version-row { border-color: var(--line); }
.version-details summary,.version-row-actions a { color: #825e2b; }
.version-list { border-radius: 0; border-color: var(--line); }
.version-row { background: #f6f1e7; }
.version-row small { color: #8b867e; }
.upload-inline input[type=url] { border-radius: 0; border-color: var(--line); }
.demo-placeholder { background: #f7f3e9; }
.info-panel { padding: 34px; }
.info-panel h2 { font-size: 2.05rem; }
.info-panel p { color: #75736c; }
.big-number { font: 500 3rem var(--display); letter-spacing: -.03em; }
.big-number small { color: #827d74; font-family: var(--body); }
.share-panel { background: #eae3d6; }
.share-form label,.share-history-title { color: #665c4c; }
.share-form select { border-radius: 0; border-color: #b6a68c; background: #fbf8f1; }
.share-history { border-color: #c7b99f; }
.share-history-row { border-color: #d4c7b2; }
.share-history-row small,.share-status { color: #7f786d; }

/* Forms and pricing. */
.flash { border-radius: 0; }
.flash.success { background: #e9eadb; color: #4f5b35; }
.flash.error { background: #f6e2d9; color: #8f4035; }
.modal { border: 1px solid #9e8b67; border-radius: 2px; background: #f9f5ed; }
.modal::backdrop { background: rgba(10,13,18,.72); backdrop-filter: blur(3px); }
.icon-button { border-radius: 0; background: #e8e0d3; color: #322a22; }
.modal-form>label { color: #615b51; font-weight: 600; }
.modal-form input,.modal-form select,.modal-form textarea,.field-grid input:not([type=number]) { border-radius: 0; border-color: #cfc4b3; background: #fffdf8; color: var(--ink); }
.modal-form input:focus,.modal-form textarea:focus,.modal-form select:focus,.field-grid input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(217,164,65,.13); }
.or-divider,.form-help { color: #827c71; }
.revision-tag { border: 1px solid #c5ad7a; background: transparent; border-radius: 0; color: #896424; font: 500 .64rem var(--mono); }
.form-panel { padding: 29px; }
.panel-step { background: #1a2433; color: var(--orange); border-radius: 0; font: 500 .8rem var(--mono); }
.panel-head h2 { font-size: 2.05rem; }
.panel-description { color: #77736d; }
.cost-inputs,.cost-input { border-color: var(--line); }
.cost-input b { font-weight: 600; }
.cost-input small { color: #817e79; }
.currency-input { border-radius: 0; border-color: #cfc4b3; background: #fffdf8; }
.currency-input input { color: #292823; }
.currency-input em { color: #776d5f; }
.currency-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(217,164,65,.13); }
.cost-total { border-radius: 0; background: #eae2d3; }
.cost-total strong { font-family: var(--display); font-size: 2rem; font-weight: 500; }
.cost-total small { color: #777064; }
.field-grid label { color: #59554f; }
.save-bar p { color: #716c63; }
.summary-card { border-radius: 2px; background: #111826; border: 1px solid #4b3b26; box-shadow: none; }
.summary-card h2 { font-size: 2.7rem; }
.summary-main { border-color: #615238; }
.summary-main span,.summary-main small,.summary-row { color: #b4aea1; }
.summary-main strong { color: var(--orange); font: 500 3.55rem var(--display); }
.summary-row b { color: #f3ead8; }
.summary-divider { border-color: #615238; }
.summary-note p,.revisions-box p { color: #79766e; }
.revision-row { border-color: var(--line); }
.revision-row small { color: #8a8275; }
.share-created { border-radius: 2px; border-color: var(--line); background: #fbf8f1; }
.success-symbol { border: 1px solid #b99856; color: #9b772f; border-radius: 0; background: transparent; }
.share-created p,.share-caution { color: #77736e; }
.copy-field { border-radius: 0; background: #eee7da; }
.copy-field input { color: #514839; }

/* Login uses the official logo in full, without a substitute monogram. */
.login-body { background: var(--paper); }
.login-layout { grid-template-columns: minmax(0,53%) minmax(0,47%); }
.login-story { display: flex; flex-direction: column; align-items: center; justify-content: space-between; background: #080808; padding: 32px 36px 27px; color: #e7e0d2; }
.login-story-top { align-self: flex-start; color: #c9b48d; font: 500 .65rem var(--mono); letter-spacing: .16em; display: flex; align-items: center; gap: 12px; }
.gold-rule { width: 32px; height: 1px; background: var(--accent); display: inline-block; }
.login-logo { display: block; width: min(100%,740px); max-height: min(76vh,760px); object-fit: contain; margin: auto 0; }
.story-foot { width: 100%; display: flex; justify-content: space-between; gap: 20px; color: #ae9c80; font: 400 .61rem var(--mono); letter-spacing: .1em; }
.login-panel { background: #f4f0e8; padding: 50px; }
.login-form-wrap { width: min(430px,100%); }
.login-form-wrap h1 { font-size: clamp(3.4rem,4.8vw,5.2rem); margin: 18px 0 17px; }
.login-form-wrap h1 em { color: #a77824; }
.login-form-wrap>p { color: #6f6b62; font-size: .91rem; line-height: 1.65; margin-bottom: 34px; max-width: 41ch; }
.login-form label { color: #524e47; font-size: .77rem; font-weight: 600; }
.login-form input { border: 0; border-bottom: 1px solid #9e9483; border-radius: 0; background: transparent; padding: 13px 2px; color: var(--ink); }
.login-form input:focus { border-bottom-color: var(--accent); box-shadow: 0 2px 0 var(--accent); }
.login-form .button { margin-top: 23px; }
.login-note { color: #756e63; font-size: .69rem; }
.lock-icon { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* Presentation and client rooms. */
.room-body { background: #0a0d12; }
.room-toolbar { background: #111826; border-bottom: 1px solid #5d4927; color: #e7e0d2; }
.room-exit { color: #ded4c2; }
.room-title span,.room-version { color: #b4ac9e; }
.room-title b { color: var(--accent); }
.room-version { border-radius: 0; border-color: #786440; }
.room-fullscreen { background: var(--accent); color: #111826; border-radius: 0; }
.presentation-frame { background: #0a0d12; }
.room-next a { border-radius: 0; background: rgba(10,13,18,.92); border-color: #6b5736; color: #e7e0d2; }
.room-next span { color: var(--orange); }
.external-demo p { color: #b6aea0; }
.client-body { background: #efe7e0; }
.client-shell { max-width: 1030px; }
.client-brand { color: #1c1a18; }
.client-brand .brand-type em { color: #9b722a; }
.client-official-logo { width: 194px; height: auto; display: block; }
.client-overload { color: #8a6b35; font: 500 .61rem var(--mono); letter-spacing: .17em; }
.client-hero { background: #111826; border: 1px solid #594628; border-radius: 2px; }
.client-hero:after { background: url('nehora-logo-sombre.png') center top/135% auto no-repeat; border: 0; border-radius: 0; box-shadow: none; width: 38%; height: 100%; top: 0; right: 0; opacity: .47; }
.client-hero h1 { font-size: clamp(3.3rem,6vw,5.5rem); }
.client-hero h1 span { color: var(--accent); }
.client-hero p { color: #bbb2a4; }
.client-list { margin-top: 55px; }
.client-item { border-radius: 0; border-color: var(--line); background: #fbf8f1; }
.client-item:hover { transform: translateX(2px); border-color: #bda367; box-shadow: none; }
.client-number { font: 500 1.65rem var(--display); color: #9a7636; }
.client-item small { color: #8e7d61; font: 500 .59rem var(--mono); }
.client-item strong { font: 500 1.42rem var(--display); }
.client-item>b { color: #876329; }
.client-shell footer { color: #8f897d; }

@media(max-width:1160px) {
  .project-grid,.demo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pricing-layout { grid-template-columns: 1fr; }
}
@media(max-width:820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { height: auto; position: relative; padding: 15px 23px; }
  .sidebar .brand { flex-direction: row; width: max-content; gap: 12px; }
  .sidebar .brand-icon { width: 47px; height: 48px; }
  .sidebar .brand-icon img { width: 82px; top: -2px; left: -17px; }
  .sidebar .brand-type strong { display: block; }
  .sidebar .brand-type em { text-align: left; font-size: .55rem; letter-spacing: .28em; }
  .main-content { padding: 0 22px; }
  .welcome-banner { grid-template-columns: 1fr; }
  .banner-visual { display: none; }
  .project-hero { grid-template-columns: 1fr; }
  .hero-decoration { display: none; }
  .login-layout { grid-template-columns: 1fr; }
  .login-story { min-height: 42vh; padding: 22px 26px; }
  .login-logo { max-height: 33vh; }
  .login-panel { padding: 60px 30px; }
}
@media(max-width:600px) {
  .sidebar .brand-icon { width: 38px; height: 40px; }
  .sidebar .brand-icon img { width: 69px; left: -15px; }
  .brand-type strong { font-size: 1.18rem; }
  .brand-type em { font-size: .45rem; }
  .page-heading h1 { font-size: 2.85rem; }
  .welcome-banner h2 { font-size: 2.65rem; }
  .project-grid,.demo-grid { grid-template-columns: 1fr; }
  .project-hero-copy { padding: 32px 25px; }
  .pricing-summary { display: block; }
  .login-story { min-height: 38vh; }
  .login-logo { max-height: 29vh; }
  .story-foot { font-size: .54rem; }
  .client-hero:after { opacity: .18; width: 60%; }
}
@media(prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
