/* Observatory — an architectural identity for Omar Rezk.
   Glass is reserved for navigation and controls. Content rests on solid surfaces. */
:root {
  color-scheme: dark;
  --bg: #08121c; --panel: #101f2c; --panel-2: #172b3b;
  --text: #f2f6f8; --muted: #aebfcb; --accent: #b6e4f2;
  --line: #354958; --soft-line: #213442; --glass: rgba(17,34,47,.84);
  --glass-shine: rgba(226,246,255,.25); --shadow: 0 14px 50px #0003;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-cond: var(--font); --page-width: 1320px; --gutter: clamp(24px, 5.5vw, 92px);
}
:root[data-theme="light"] {
  color-scheme: light; --bg: #eff4f6; --panel: #fff; --panel-2: #e0eaf0;
  --text: #122b3d; --muted: #476071; --accent: #145770;
  --line: #a5bac7; --soft-line: #cedde5; --glass: rgba(244,250,253,.88);
  --glass-shine: #fff; --shadow: 0 14px 50px #163d5112;
}
html { scroll-padding-top: 120px; }
body { font-size: 1rem; line-height: 1.65; overflow-wrap: break-word; }
button,input,textarea,select { font: inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, .btn { touch-action: manipulation; }
button, input:not([type="radio"]):not([type="checkbox"]), select { min-height: 44px; }
input,textarea,select { min-width: 0; }
[hidden] { display: none !important; }
:focus-visible, .form input:focus-visible, .form textarea:focus-visible, .form select:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
main:focus { outline: none; }
::selection { background: #b6e4f2; color: #102533; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 500; padding: 12px 24px; border-radius: 14px; background: var(--text); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.nav { top: 22px; left: 30px; right: 30px; max-width: 1500px; margin: auto; padding: 10px 12px 10px 18px; border: 1px solid var(--glass-shine); border-radius: 22px; background: var(--glass); box-shadow: inset 0 1px 0 var(--glass-shine), var(--shadow); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); gap: 24px; }
.nav.scrolled { padding: 10px 12px 10px 18px; background: var(--glass); backdrop-filter: blur(32px) saturate(1.4); }
.nav .brand { display: flex; align-items: center; gap: 13px; font-family: var(--font); font-size: 1rem; letter-spacing: -.04em; text-transform: none; flex-shrink: 0; }
.nav .brand-mark { display: flex; align-items: center; gap: 2px; font-size: 1.85rem; font-weight: 650; color: var(--text); letter-spacing: -.1em; }
.nav .brand-mark span { font-size: 1rem; align-self: flex-start; margin: 4px 0 0 4px; }
.nav .brand-name { font-weight: 600; color: var(--text); letter-spacing: -.02em; line-height: 1.25; }
.nav .brand-name > span { display: block; color: var(--muted); font-size: .69rem; letter-spacing: .045em; margin-top: 4px; font-weight: 400; }
.nav ul { display: flex; gap: 4px; align-items: center; }
.nav ul a { display: flex; align-items: center; gap: 6px; font-size: .875rem; letter-spacing: 0; text-transform: none; font-weight: 450; padding: 10px 17px; min-height: 44px; border: 1px solid transparent; border-radius: 13px; color: var(--muted); transition: background .2s, color .2s; }
.nav ul a:hover, .nav ul a.active { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.appearance-btn { width: 44px; height: 44px; border-radius: 50%; background: transparent; border: 1px solid transparent; color: var(--muted); display: grid; place-items: center; }
.appearance-btn:hover { border-color: var(--line); background: var(--panel-2); color: var(--text); }
.appearance-btn svg { width: 22px; height: 22px; }
.nav-cta { display: flex; align-items: center; gap: 20px; min-height: 44px; padding: 10px 20px; background: var(--text); color: var(--bg); border-radius: 13px; font-size: .875rem; font-weight: 550; }
.nav .burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 13px; padding: 12px; }
.burger span { display: block; width: 18px; height: 1px; background: currentColor; margin: 5px 0; transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.observatory { color-scheme: dark; color: #f2f6f8; position: relative; min-height: 800px; height: min(960px, 100svh); isolation: isolate; background: #08121c; overflow: hidden; padding: 190px var(--gutter) 130px; display: flex; align-items: center; }
.hero-grid { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(#8abbce07 1px,transparent 1px),linear-gradient(90deg,#8abbce07 1px,transparent 1px); background-size: 112px 112px; mask-image: linear-gradient(90deg,transparent,#000); }
.hero-content { max-width: 740px; width: 65%; position: relative; z-index: 3; }
.eyebrow { display: block; font-size: .75rem; letter-spacing: .13em; font-weight: 500; color: var(--muted); margin-bottom: 28px; }
.observatory .eyebrow { color: #b7c9d5; display: flex; gap: 12px; align-items: center; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: none; background: #b6e4f2; border-radius: 50%; box-shadow: 0 0 0 5px #b6e4f210; }
.hero-title { font-size: clamp(4rem, 6.9vw, 7.3rem); line-height: 1.055; letter-spacing: -.07em; font-weight: 450; max-width: 820px; }
.hero-title em, .contact-section h2 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.075em; color: #b9dfec; }
.hero-description { color: #b7c9d5; margin-top: 28px; font-size: 1.05rem; line-height: 1.75; max-width: 380px; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; margin-top: 32px; }
.btn, .btn.small { display: inline-flex; justify-content: center; align-items: center; gap: 28px; min-height: 48px; padding: 12px 24px; border-radius: 14px; font: 550 .875rem/1.5 var(--font); letter-spacing: 0; text-transform: none; background: var(--glass); color: var(--text); box-shadow: inset 0 1px 0 var(--glass-shine); }
.btn.solid { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn.solid:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.observatory .btn.solid { --accent: #b6e4f2; --bg: #08121c; --text: #f2f6f8; }
.btn svg, .text-link svg, .card-bottom svg { width: 20px; height: 20px; flex: none; }
.btn:hover svg, .text-link:hover svg, .practice-card:hover .card-bottom svg { transform: translateX(3px); }
.btn svg, .text-link svg, .card-bottom svg { transition: transform .2s; }
.text-link { display: inline-flex; align-items: center; gap: 20px; font-size: .875rem; font-weight: 500; min-height: 44px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 7px; }
.text-link:hover { text-decoration-color: currentColor; }
.hero-signature { margin-top: 42px; display: flex; gap: 12px; align-items: center; font-size: .8rem; color: #c2d0d9; }
.signature-line { display: block; width: 30px; height: 1px; background: #829dae; }
.signature-location { margin-left: 12px; color: #9caebb; }
.hero-art { position: absolute; right: -2%; top: 115px; bottom: 56px; width: 54%; pointer-events: none; z-index: 1; }
.orbital-glow { position: absolute; width: 115%; height: 95%; left: -4%; bottom: -6%; background: radial-gradient(ellipse,#26668370 0%,#1a516b22 40%,transparent 66%); }
.portal { position: absolute; width: 64%; height: 78%; border: 1px solid #b4eaff7a; border-radius: 220px 220px 12px 12px; transform: rotate(12deg); box-shadow: inset 1px 0 1px #fff5, -5px 0 28px #83d5f318; background: linear-gradient(100deg,#71bbd511,transparent 45%,#6ac4e30b); }
.portal-one { left: 26%; top: 6%; }
.portal-two { left: 18%; top: 13%; height: 73%; border-color: #b4eaff3d; }
.portal-three { left: 10%; top: 21%; height: 67%; border-color: #b4eaff24; }
.integrated-portrait { position: absolute; height: 99%; width: auto; max-width: none; right: 4%; bottom: -1%; object-fit: contain; object-position: bottom; filter: saturate(.67); mask-image: linear-gradient(to bottom,#000 65%,transparent 100%); }
.integrated-portrait:not(.cutout) { width: 95%; object-fit: cover; object-position: center 40%; mask-image: radial-gradient(ellipse 46% 49% at 52% 55%,#000 45%,transparent 100%); }
.portrait-fade { position: absolute; inset: 0; background: linear-gradient(90deg,#08121c 0%,#08121c88 8%,transparent 34%),linear-gradient(0deg,#08121c,transparent 25%); }
.art-coordinate { position: absolute; right: 12%; top: 9%; font: .65rem/1.5 ui-monospace,monospace; color: #a3bfce; letter-spacing: .1em; writing-mode: vertical-rl; }
.hero-bottom { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid #294050; padding-top: 18px; color: #a9bdca; font-size: .69rem; letter-spacing: .045em; z-index: 4; }
.hero-bottom a { display: inline-flex; align-items: center; min-height: 44px; gap: 20px; }
.expertise-strip { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px var(--gutter); border-bottom: 1px solid var(--soft-line); font-size: .8rem; background: var(--panel); }
.expertise-strip > span { color: var(--muted); font-size: .7rem; flex: none; }
.expertise-strip > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: clamp(18px,3vw,44px); }
.expertise-strip i { font-size: 1rem; color: var(--muted); font-style: normal; }
.section { padding: 86px var(--gutter); max-width: var(--page-width); }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; padding-top: 100px; padding-bottom: 100px; }
h2, h2.title { font-family: var(--font); font-weight: 450; font-size: clamp(2rem,3.1vw,3rem); line-height: 1.2; text-transform: none; letter-spacing: -.045em; }
.muted { color: var(--muted); }
.about-copy { padding-top: 44px; color: var(--muted); font-size: .98rem; }
.about-copy p { margin-bottom: 20px; }
.about-copy .text-link { margin-top: 14px; color: var(--text); }
.section-topline { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.section-topline .eyebrow { margin-bottom: 18px; }
.practice-section { border-top: 1px solid var(--soft-line); }
.practice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.practice-card { display: flex; flex-direction: column; justify-content: space-between; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 23px; min-height: 340px; transition: background .25s,border-color .25s,transform .25s; }
.practice-card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--panel-2); }
.practice-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 38px; }
.practice-icon { font-size: 2rem; color: var(--accent); line-height: 1; }
.card-index { color: var(--muted); font: .7rem ui-monospace,monospace; }
.practice-card h3 { font-size: 1.45rem; font-weight: 500; letter-spacing: -.04em; margin-bottom: 12px; }
.practice-card p { color: var(--muted); font-size: .9rem; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--soft-line); padding-top: 24px; margin-top: 26px; font-size: .8rem; }
.ai-practice { background: linear-gradient(140deg,var(--panel),var(--panel-2)); }
.contact-section { position: relative; margin: 25px auto 80px; padding-top: 68px; padding-bottom: 70px; overflow: hidden; border-block: 1px solid var(--line); }
.contact-section h2 { font-size: clamp(4rem,8vw,8rem); position: relative; z-index: 1; letter-spacing: -.065em; }
.contact-section h2 em { color: var(--accent); }
.contact-section > div { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 32px; position: relative; z-index: 1; }
.contact-section p { color: var(--muted); font-size: .95rem; }
.contact-orbit { position: absolute; width: 420px; height: 420px; border: 1px solid var(--line); border-radius: 50%; right: 8%; top: -160px; box-shadow: 0 0 0 36px var(--bg),0 0 0 37px var(--soft-line),0 0 0 74px var(--bg),0 0 0 75px var(--soft-line); opacity: .5; }
.site-footer { display: grid; grid-template-columns: 1fr auto; max-width: 1500px; margin: auto; border: 0; padding: 30px var(--gutter); gap: 40px; }
.footer-brand { font-weight: 600; font-size: 1.1rem; letter-spacing: -.035em; }
.footer-brand span { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.site-footer .links { display: flex; gap: 28px; align-items: center; }
.site-footer .links a { font-size: .8rem; letter-spacing: 0; text-transform: none; min-height: 44px; display: inline-flex; align-items: center; gap: 5px; }
.footer-meta { grid-column: 1/-1; display: flex; align-items: center; flex-wrap: wrap; gap: 22px; color: var(--muted); border-top: 1px solid var(--soft-line); padding-top: 18px; font-size: .7rem; }
.footer-meta > span { margin-right: auto; }
.footer-meta > a { min-height: 44px; display: inline-flex; align-items: center; }
.effects-btn { border: 1px solid transparent; border-radius: 10px; padding: 8px 12px; background: transparent; color: var(--muted); font-size: .75rem; }
.effects-btn:hover, .effects-btn[aria-pressed="true"] { background: var(--panel-2); border-color: var(--line); color: var(--text); }
/* Interior pages use the same architectural linework, with compact introductions. */
.page-hero { min-height: 0; height: auto; padding-top: 178px; background: var(--bg); overflow: hidden; }
.page-hero::after { display: none; }
.page-hero .inner { padding: 0 var(--gutter) 45px; max-width: var(--page-width); }
.page-hero .kicker { font-size: .75rem; text-transform: none; letter-spacing: .09em; color: var(--muted); margin-bottom: 24px; }
h1.display { font-family: var(--font); font-weight: 450; font-size: clamp(3.4rem,7vw,6rem); line-height: 1.06; letter-spacing: -.065em; text-transform: none; }
.page-orbit { position: absolute; width: 560px; height: 560px; border: 1px solid var(--soft-line); border-radius: 50%; right: -80px; top: -150px; box-shadow: 0 0 0 38px var(--bg),0 0 0 39px var(--soft-line),0 0 0 76px var(--bg),0 0 0 77px var(--soft-line); pointer-events: none; }
.page-hero + .section { padding-top: 0; }
.lead { font-size: 1.05rem; line-height: 1.7; max-width: 730px; margin-bottom: 38px; }
.reveal { opacity: 1; transform: none; }
.reveal.visible { animation: enter .5s ease both; }
@keyframes enter { from { opacity: .35; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.timeline { margin-top: 52px; }
.timeline::before { left: 5px; background: var(--line); }
.t-item { padding: 0 0 50px 44px; }
.t-item::before { width: 11px; height: 11px; top: 9px; background: var(--bg); border-color: var(--accent); }
.t-item .dates { font-size: .75rem; text-transform: none; letter-spacing: .03em; }
.t-item h3 { font-size: 1.8rem; font-weight: 500; letter-spacing: -.04em; text-transform: none; margin: 8px 0; }
.t-item .org { font-size: .95rem; }
.t-item p, .t-item ul { color: var(--muted) !important; max-width: 840px; }
.tags { gap: 6px; }
.tag { font-size: .7rem; padding: 5px 10px; text-transform: none; letter-spacing: 0; border-radius: 7px; font-weight: 450; color: var(--muted); }
.tag.field { color: var(--accent); border-color: var(--line); }
:root[data-theme="light"] .tag.label-open-source { color: #18623f; }
:root[data-theme="light"] .tag.label-proprietary { color: #9b3049; }
:root[data-theme="light"] .tag.label-saas-beta { color: #745507; }
.filters { gap: 8px; margin-bottom: 30px; }
.filters .filter { min-height: 44px; font-size: .875rem; font-weight: 450; text-transform: none; letter-spacing: 0; padding: 10px 18px; border-radius: 12px; }
.filters .filter.active { border-color: var(--accent); background: var(--panel-2); color: var(--text); }
.disclaimer { font-size: .875rem; border-radius: 0 12px 12px 0; margin-bottom: 28px; }
.card { border-radius: 22px; padding: 28px; }
.project-card { display: flex; flex-direction: column; position: relative; cursor: default; }
.project-card h3 { font-size: 1.5rem; font-weight: 500; text-transform: none; letter-spacing: -.04em; }
.project-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.project-symbol { display: flex; justify-content: space-between; font-size: 1.7rem; color: var(--accent); margin-bottom: 24px; }
.project-symbol span:last-child { font: .7rem ui-monospace,monospace; color: var(--muted); }
.project-open { margin-top: 25px; border: 0; border-top: 1px solid var(--soft-line); padding: 16px 0 0; width: 100%; text-align: left; background: transparent; color: var(--text); font-size: .875rem; display: flex; align-items: center; justify-content: space-between; }
.project-open::after { content: '↗'; }
.project-open::before { content: ''; position: absolute; inset: 0; border-radius: 22px; }
.project-card:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.project-open:focus-visible { outline: none; }
.project-card .md a { position: relative; z-index: 1; }
.results-status { color: var(--muted); font-size: .8rem; margin: 0 0 20px; }
dialog.modal-backdrop { border: 0; background: transparent; color: var(--text); width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: auto; }
dialog.modal-backdrop[open] { display: flex; }
dialog.modal-backdrop::backdrop { background: #020a12b8; backdrop-filter: blur(8px); }
.modal { max-width: 800px; border-radius: 26px; padding: 38px; max-height: 88svh; box-shadow: var(--shadow); }
.modal h3 { font-size: 2rem; font-weight: 500; letter-spacing: -.04em; text-transform: none; padding-right: 35px; }
.modal .close { width: 44px; height: 44px; border-radius: 50%; background: var(--panel-2); color: var(--text); top: 18px; right: 18px; }
.modal .desc, .feat-list li, .stack-tags span, .arch-intro { color: var(--muted); }
.p-tabs { overflow-x: auto; gap: 0; }
.p-tabs button { font-size: .875rem; letter-spacing: 0; text-transform: none; font-weight: 500; padding: 10px 18px; }
.md h1,.md h2,.md h3,.md h4 { font-family: var(--font); text-transform: none; letter-spacing: -.02em; line-height: 1.3; }
.md h1 { font-size: 1.75rem; } .md h2 { font-size: 1.5rem; } .md h3 { font-size: 1.25rem; } .md h4 { font-size: 1.1rem; }
.md a { text-decoration: underline; text-underline-offset: 3px; }
.md code,.md pre { border-radius: 6px; }
.arch-svg g.an:focus-visible rect { stroke: var(--accent); stroke-width: 3; }
.arch-details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.arch-details summary { min-height: 44px; cursor: pointer; font-size: .875rem; }
.arch-details dt { font-weight: 600; margin-top: 15px; }
.arch-details dd { color: var(--muted); font-size: .875rem; margin-top: 5px; }
/* Booking: an agenda offers generous hit areas without a horizontally scrolling timetable. */
.booking-progress { list-style: none; display: flex; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid var(--soft-line); padding-bottom: 22px; margin-bottom: 30px; color: var(--muted); font-size: .8rem; }
.booking-progress li { display: flex; gap: 10px; align-items: center; }
.booking-progress span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; }
.booking-progress [aria-current="step"] { color: var(--text); font-weight: 550; }
.booking-progress [aria-current="step"] span { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.ctrl-label { font-size: .875rem; letter-spacing: 0; text-transform: none; font-weight: 500; }
.ctrl-row { justify-content: space-between; gap: 24px; }
.seg { padding: 4px; border-radius: 15px; overflow: visible; }
.seg button { font-size: .875rem; font-weight: 500; letter-spacing: 0; border: 0; border-radius: 10px; padding: 8px 18px; }
.seg button.active { background: var(--text); color: var(--bg); box-shadow: var(--shadow); }
.tz-btn { min-width: 275px; border-radius: 14px; background: var(--panel); font-size: .875rem; }
.tz-menu { background: var(--panel); border-radius: 16px; max-width: calc(100vw - 48px); visibility: hidden; }
.tz-picker.open .tz-menu { visibility: visible; }
.tz-item { width: 100%; background: transparent; border: 0; border-radius: 0; text-align: left; color: var(--text); font-size: .875rem; }
.tz-item.sel { background: var(--panel-2); color: var(--text); }
.tz-search { font-size: 1rem; }
.wk { border-radius: 22px; overflow: clip; }
.wk-top { padding: 22px; }
.wk-title { font-size: 1.35rem; letter-spacing: -.03em; text-transform: none; }
.wk-nav { gap: 6px; }
.wk-nav button,.wk-nav button:first-child,.wk-nav button:last-child { border-radius: 10px; border: 1px solid var(--line); font-size: .875rem; letter-spacing: 0; min-width: 44px; }
.wk-head,.wk-scroll { display: none; }
.agenda { padding: 0 22px 22px; }
.agenda-day { display: grid; grid-template-columns: 170px minmax(0,1fr); padding: 22px 0; border-top: 1px solid var(--soft-line); gap: 24px; }
.agenda-day h3 { font-size: .875rem; font-weight: 550; padding-top: 10px; }
.agenda-slots { display: flex; flex-wrap: wrap; gap: 9px; }
.agenda-slot { border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; background: var(--panel-2); color: var(--text); font-size: .875rem; min-width: 100px; }
.agenda-slot:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.agenda-empty { color: var(--muted); font-size: .875rem; padding: 18px 0; }
.form { max-width: 650px; gap: 22px; }
.form label { font-size: .875rem; text-transform: none; letter-spacing: 0; color: var(--text); margin-bottom: 8px; }
.form input,.form textarea,.form select { border-radius: 12px; font-size: 1rem; padding: 13px 16px; }
.form input[type="radio"] { accent-color: var(--accent); min-width: 20px; height: 20px; flex: none; }
.notice { border-radius: 12px; font-size: .95rem; }
:root[data-theme="light"] .notice.err { color: #a2223e; border-color: #b9324f; }
:root[data-theme="light"] .notice.ok { color: #175d40; border-color: #317550; }
/* AI conversation */
.ai-page .page-hero .inner,.ai-page .section { max-width: 1080px; }
.chat-wrap { max-width: none; }
.chat-box { min-height: 260px; max-height: 56svh; border-radius: 23px; padding: 30px; }
.msg { font-size: 1rem; }
.msg.user { background: var(--panel-2); }
.msg.bot::before { font-family: var(--font); font-size: .7rem; background: var(--panel-2); letter-spacing: 0; }
.msg.bot.typing::after { display: none; }
.chat-input { border-radius: 18px; padding: 10px 10px 10px 20px; }
.chat-input input { width: 100%; min-width: 0; font-size: 1rem; }
.send-btn { width: 46px; height: 46px; border-radius: 13px; }
.suggestions button { font-size: .8rem; padding: 10px 15px; color: var(--muted); }
.ai-disclosure { font-size: .75rem; color: var(--muted); margin-top: 16px; }
.ai-disclosure a { text-decoration: underline; text-underline-offset: 3px; }
.chat-label { display: block; font-size: .875rem; margin-top: 26px; margin-bottom: 8px; }
/* Control panel inherits typography, hit areas and clearer input labels. */
.admin-wrap { padding-top: 150px; max-width: 1300px; }
.admin-nav button { font-size: .875rem; letter-spacing: 0; text-transform: none; border-radius: 12px; }
.admin-table { font-size: .875rem; }
.admin-nav { position: relative; }
.admin-panel { overflow-x: auto; }
.error-page { min-height: 75svh; padding: 200px var(--gutter) 80px; max-width: 1200px; margin: auto; }
.error-page h1 { font-size: clamp(5rem,12vw,10rem); line-height: 1; letter-spacing: -.08em; font-weight: 400; }
.error-page p { margin: 30px 0; color: var(--muted); }
@media (min-width: 1600px) { .hero-content { margin-left: calc((100vw - 1420px)/2); } .hero-art { right: calc((100vw - 1600px)/3); width: 780px; } }
@media (max-width: 1100px) {
  .nav { gap: 10px; } .nav ul a { padding-inline: 12px; } .nav .brand-name > span { display: none; }
  .hero-title { font-size: clamp(3.9rem,7vw,5.5rem); } .hero-art { right: -10%; width: 60%; opacity: .85; }
  .hero-content { width: 70%; } .practice-card { padding: 22px; }
  .grid.cols-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 110px; }
  .nav,.nav.scrolled { top: 14px; left: 16px; right: 16px; padding: 8px 10px 8px 14px; border-radius: 19px; }
  .nav .brand-name { display: none; }
  .nav ul { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); gap: 4px; flex-direction: column; align-items: stretch; }
  .nav ul.open { display: flex; }
  .nav ul a { font-size: 1rem; padding: 12px 18px; }
  .nav .burger { display: block; }
  .nav-actions { gap: 6px; }
  .nav-cta { padding: 10px 14px; gap: 16px; }
  .observatory { height: auto; min-height: 840px; padding: 150px var(--gutter) 400px; align-items: flex-start; }
  .hero-content { width: 100%; }
  .hero-title { font-size: clamp(3.5rem,9vw,5.5rem); max-width: 650px; }
  .hero-description { font-size: 1rem; max-width: 330px; margin-top: 20px; }
  .hero-art { top: auto; bottom: 55px; height: 440px; width: 420px; right: -70px; opacity: .85; }
  .hero-signature { margin-top: 28px; }
  .hero-bottom { font-size: .65rem; bottom: 18px; }
  .hero-bottom-right { display: none; }
  .hero-bottom a { gap: 10px; }
  .eyebrow { font-size: .69rem; margin-bottom: 22px; }
  .observatory .eyebrow { letter-spacing: .035em; }
  .expertise-strip { align-items: flex-start; flex-direction: column; gap: 12px; }
  .expertise-strip > div { justify-content: flex-start; gap: 12px 16px; font-size: .75rem; }
  .expertise-strip i { font-size: .75rem; }
  .section { padding-top: 65px; padding-bottom: 65px; }
  .about-section { grid-template-columns: 1fr; gap: 26px; }
  .about-copy { padding-top: 0; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { min-height: 290px; padding: 26px; }
  .section-topline { align-items: flex-start; flex-direction: column; gap: 16px; }
  .practice-top { margin-bottom: 26px; }
  .contact-section { margin-bottom: 35px; }
  .contact-section > div { flex-direction: column; align-items: flex-start; }
  .contact-orbit { right: -150px; opacity: .25; }
  .site-footer { grid-template-columns: 1fr; gap: 24px; }
  .site-footer .links { gap: 26px; }
  .footer-meta { gap: 8px 20px; }
  .footer-meta > span { width: 100%; }
  .page-hero { padding-top: 145px; }
  .page-hero .inner { padding-bottom: 32px; }
  .page-orbit { right: -370px; }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .modal { padding: 28px 22px; border-radius: 20px; }
  .modal-backdrop { padding: 14px; }
  .modal h3 { font-size: 1.65rem; }
  .chat-box { padding: 22px 18px; min-height: 260px; }
  .msg.bot { padding-left: 36px; }
  .suggestions { gap: 8px; }
  .ctrl-row { flex-direction: column; align-items: stretch; }
  .tz-btn { width: 100%; }
  .tz-menu { width: 100%; }
  .wk-top { align-items: flex-start; }
  .wk-title { width: 100%; }
  .wk-outer { overflow: visible; }
  .agenda-day { grid-template-columns: 1fr; gap: 12px; }
  .agenda-day h3 { padding-top: 0; }
  .agenda-slots { gap: 8px; }
  .agenda-slot { flex: 1 0 95px; }
  .booking-progress { gap: 12px 18px; }
  .admin-wrap { padding: 120px 22px 60px; }
}
@media (max-width: 390px) {
  .hero-title { font-size: 3.2rem; }
  .observatory .cta-row { gap: 14px; }
  .btn { gap: 18px; padding: 12px 18px; }
  .hero-bottom > span { max-width: 110px; }
  .nav .appearance-btn { width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html[data-effects="reduced"] *,html[data-effects="reduced"] *::before,html[data-effects="reduced"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-effects="reduced"] .nav,html[data-effects="reduced"] .btn { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--panel); }
html[data-effects="reduced"] .btn.solid { background: var(--accent); }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root { --glass: var(--panel); --line: var(--muted); }
  .nav,.nav.scrolled,dialog.modal-backdrop::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero-art { opacity: .5; }
}
@supports not (backdrop-filter: blur(1px)) { .nav { background: var(--panel); } }
@media (forced-colors: active) {
  .hero-art,.hero-grid,.page-orbit,.contact-orbit { display: none; }
  .observatory,.hero-title em,.hero-description,.hero-signature,.hero-bottom,.signature-location,.observatory .eyebrow { color: CanvasText; background: Canvas; }
  .nav,.btn,.nav-cta,.practice-card,.card,.filter,.agenda-slot,.seg button,.p-tabs button { border: 1px solid ButtonText; }
  :focus-visible { outline-color: Highlight; }
}
@media print {
  .nav,.site-footer,.hero-art,.hero-grid,.page-orbit,.contact-orbit,.cta-row,.hero-bottom { display: none; }
  :root { --bg: white; --panel: white; --text: black; --muted: #333; --accent: #222; }
  .observatory { min-height: 0; height: auto; padding: 30px; color: black; background: white; }
  .hero-content { width: 100%; } .hero-title em,.hero-description,.observatory .eyebrow { color: black; }
  .section,.page-hero { padding: 30px; } .card,.practice-card { break-inside: avoid; }
}
.t-item .role-title { font-size: 1.8rem; font-weight: 500; letter-spacing: -.04em; margin: 8px 0; }
.control-page .nav { position: absolute; }
.control-page .nav ul.control-links { position: static; flex-direction: row; background: transparent; border: 0; box-shadow: none; padding: 0; width: auto; }
.control-page h1.title { font-size: 2.4rem; letter-spacing: -.05em; font-weight: 500; }
.control-page .nav .brand { letter-spacing: -.03em; }
.control-page input::placeholder,.chat-input input::placeholder,.tz-search::placeholder { color: var(--muted); opacity: 1; }
:root[data-theme="light"] .arch-svg .ae { stroke: var(--muted); }
:root[data-theme="light"] .arch-svg .ael { stroke: var(--panel); }
.arch-svg g.an { cursor: default; }
/* Preserve the editorial portrait's warm skin tones and keep the face within the fade. */
.integrated-portrait.cutout { height: 108%; bottom: -5%; right: 1%; filter: none; mask-image: radial-gradient(ellipse 54% 65% at 50% 45%, #000 57%, transparent 100%); }
@media (max-width: 800px) { .integrated-portrait.cutout { right: 6%; height: 110%; } }
/* A slight response to the pointer gives the architectural layers depth. */
.portal { transform: translate(var(--shift-x,0px),var(--shift-y,0px)) rotate(12deg); transition: transform .5s ease-out; }
.nav { background-image: linear-gradient(125deg, #e0f6ff07, transparent 35%, #e0f6ff04); }
.form > div:has(> .btn) { flex-wrap: wrap; }
.control-page .rule-row { flex-wrap: wrap; }
.control-page .content-field label { font-size: .875rem !important; letter-spacing: 0 !important; text-transform: none !important; }
.control-page .content-field input,.control-page .content-field textarea { border-radius: 12px; }
@media (max-width: 800px) { .hero-art { height: 360px; } .nav-actions { min-width: 0; } .nav-cta { min-width: 0; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .portal { transform: rotate(12deg); } }
html[data-effects="reduced"] .portal { transform: rotate(12deg); }
/* Keep text readable throughout transitions and at 200% text enlargement. */
@keyframes stepIn { from { transform: translateY(8px); } to { transform: none; } }
.site-footer > *, .grid > *, .ctrl-row > * { min-width: 0; }
.site-footer .links { flex-wrap: wrap; }
/* Resume downloads share the site's surfaces and remain usable without scripts. */
.resume-download { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px; margin: 36px 0 64px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; }
.resume-download-copy { max-width: 540px; }
.resume-download .eyebrow { margin-bottom: 12px; }
.resume-download h2 { font-size: clamp(1.65rem, 3vw, 2.1rem); font-weight: 500; line-height: 1.25; letter-spacing: -.04em; margin-bottom: 12px; }
.resume-download p { color: var(--muted); font-size: .9rem; }
.resume-download-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.resume-download-actions .btn { justify-content: space-between; min-width: 200px; }
.resume-picker { position: relative; }
.resume-picker summary { display: flex; align-items: center; gap: 5px; min-height: 44px; cursor: pointer; list-style: none; font-size: .8rem; color: var(--muted); }
.resume-picker summary::-webkit-details-marker { display: none; }
.resume-picker summary:hover, .resume-picker[open] summary { color: var(--text); }
.resume-picker[open] summary svg { transform: rotate(180deg); }
.resume-formats { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 20; width: 220px; max-width: calc(100vw - 48px); padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }
.resume-formats p { color: var(--muted); font-size: .75rem; padding: 4px 10px 8px; }
.site-footer .resume-formats a { display: flex; justify-content: space-between; gap: 12px; padding: 10px; border-radius: 9px; color: var(--text); text-decoration: none; }
.resume-formats a span { color: var(--muted); font-size: .7rem; }
.resume-formats a:hover, .resume-formats a:focus-visible { background: var(--panel-2); }
@media (max-width: 650px) {
  .resume-download { align-items: stretch; flex-direction: column; gap: 24px; padding: 24px; margin-bottom: 44px; }
  .resume-download-actions .btn { min-width: 0; }
  .site-footer .links { gap: 10px 22px; position: relative; }
  .resume-picker { position: static; }
  .resume-formats { right: 0; left: auto; }
}
@media print { .resume-download { display: none; } }
.tag { max-width: 100%; overflow-wrap: anywhere; }
.seg { flex-wrap: wrap; }
.seg button { flex: 1; }
.tz-btn { min-width: 0; }
.cal-grid .day { color: var(--muted); }
.cal-grid .day.selected { color: var(--bg); background: var(--text); }
.hero-bottom,.footer-meta,.tag,.card-index,.card-bottom,.art-coordinate,.nav .brand-name > span { font-size: .75rem; }
@media (max-width: 800px) { .grid.cols-3 { grid-template-columns: minmax(0,1fr); } .ctrl-row > * { width: 100%; } }
.control-page .cal-grid button.day { background: transparent; border-radius: 10px; min-height: 44px; }
.control-page .cal-grid button.day.selected { background: var(--text); }
.control-page .cal-grid .day.blocked { text-decoration: line-through; color: var(--muted); }
.control-page .cal-grid sup { font-size: .75rem; margin-left: 3px; }
.tz-menu { left: auto; right: 0; }
.observatory { --bg: #08121c; --text: #f2f6f8; --muted: #aebfcb; --accent: #b6e4f2; --line: #354958; }
.tz-item:focus-visible { outline-offset: -4px; }
.cal-head button { width: 44px; height: 44px; }
