/* Base + Landing Header (merged) */ /* Base */ *, *:after, *:before { -webkit-box-sizing: border-box; box-sizing: border-box; } /* Theme tokens */ :root { --midnight: #0b132b; --midnight-soft: #1a2340; --sand: #f5ede1; --sand-light: #fbf3e6; --crimson: #dc143c; --red: #d32f2f; --silver: #dfe3e6; --ink: #23272a; --textLight: #eef2f6; --offwhite: #f6f8fb; --pale-blue: #eaf2ff; --heading-color: var(--red); /* Nav UI tokens */ --nav-color: #ffffff; --nav-bg: rgba(15, 18, 27, 0.5); --nav-border: rgba(255, 255, 255, 0.2); /* CTA buttons */ --cta-color: #2b6cb0; /* accessible blue */ --cta-hover: #245a94; /* slightly darker on hover */ /* Overlay tokens */ --overlay-bg: rgba(15,18,27,0.45); --overlay-panel-bg: linear-gradient(180deg, var(--offwhite) 0%, var(--sand-light) 100%); } body { background: #fff; color: #383a3c; font-weight: 400; font-size: 1em; line-height: 1.25; font-family: 'Raleway', Calibri, Arial, sans-serif; } html { scroll-behavior: smooth; } a, button { outline: none; } a { color: #566473; text-decoration: none; } a:hover, a:focus { color: #34495e; } section { padding: 1em; text-align: center; } /* Content sections: shared layout */ .section-block { padding: clamp(2.5rem, 4vw, 4rem) 1rem; position: relative; /* allow absolute-positioned scroll indicator */ } .section-block .section-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; text-align: left; } .section-block .section-media { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; } .section-block .section-media > * { margin: 0; } .section-block .section-media img { display: block; max-width: clamp(120px, 30vw, 260px); max-height: clamp(60px, 12vw, 120px); width: auto; height: auto; margin: 0.25rem 0 0.5rem; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25)); object-fit: contain; } .section-block .section-media picture { display: block; } /* Larger portrait in About section; keep proportions */ .section-about .section-media img { max-width: clamp(180px, 32vw, 340px); max-height: clamp(140px, 24vw, 260px); } /* R&D image: scale similar to About portrait */ .section-rnd .section-media img { max-width: clamp(180px, 32vw, 340px); max-height: clamp(140px, 24vw, 260px); } /* Hide placeholder when About section has a real photo */ .section-about .logo-placeholder { display: none; } .section-block .logo-placeholder { width: clamp(120px, 30vw, 260px); aspect-ratio: 1 / 1; border: 2px solid currentColor; opacity: 0.25; border-radius: 12px; margin: 0.25rem 0 0.5rem; } /* Credential + social buttons under portrait */ .section-about .cred-row { margin-top: 0.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; } .btn-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.5rem; border-radius: 999px; border: 1px solid rgba(0,0,0,0.15); color: inherit; text-decoration: none; background: rgba(255,255,255,0.6); transition: background-color .2s ease, border-color .2s ease, transform .15s ease; font-size: 0.85rem; } .btn-chip:hover, .btn-chip:focus { background: rgba(255,255,255,0.85); border-color: rgba(0,0,0,0.25); transform: translateY(1px); } .btn-chip img { height: 18px; width: auto; display: block; } /* Even smaller padding for icon-only chip (WES) */ .btn-chip.icon-only { padding: 0.2rem 0.35rem; } /* Social icons under portrait */ .section-block .social-row { margin-top: 0.5rem; display: flex; gap: 0.5rem; justify-content: center; } .social-btn { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--nav-color); background-color: var(--nav-bg); border: 1px solid var(--nav-border); box-shadow: 0 6px 18px rgba(0,0,0,0.18); backdrop-filter: saturate(120%) blur(6px); -webkit-backdrop-filter: saturate(120%) blur(6px); text-decoration: none; transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease; } .social-btn:hover, .social-btn:focus { transform: translateY(1px); } .social-btn i { font-size: 18px; line-height: 1; } .section-block h2 { margin: 0 0 0.6rem; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--heading-color); } .section-block .tagline { font-weight: 700; letter-spacing: 0.01em; margin: 0.1rem 0 0.1rem; } .section-block .lead { font-size: 1.05rem; line-height: 1.6; opacity: 0.95; margin-top: 0.1rem; } .section-block .section-content { font-size: 1rem; line-height: 1.7; } @media (max-width: 900px) { .section-block .section-inner { grid-template-columns: 1fr; text-align: center; } .section-block .section-media { align-items: center; } .section-block .section-content { text-align: left; } } /* Section themes */ .section-about { background: var(--sand); color: #2a2f33; } .section-rnd { background: #ffffff; color: var(--ink); } .section-rnd .section-inner { grid-template-columns: 1fr; align-items: stretch; } .project-layout { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); } .project-intro { grid-column: 1 / -1; text-align: center; max-width: 840px; margin: 0 auto; } .project-subtitle { margin: 0.35rem 0 0; font-size: 1.05rem; line-height: 1.6; } .project-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); } .project-grid .project-card:nth-child(odd) { justify-self: stretch; } .project-grid .project-card:nth-child(even) { justify-self: stretch; } @media (max-width: 760px) { .project-grid { grid-template-columns: 1fr; } } .project-card { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); padding: clamp(1rem, 2vw, 1.25rem); } .project-card h3 { margin: 0 0 0.35rem; } .project-card__lede { margin: 0 0 0.75rem; line-height: 1.5; } .project-card ul { margin: 0; padding-left: 1.1rem; line-height: 1.5; } .section-consulting { background: linear-gradient(180deg, var(--offwhite) 0%, var(--sand-light) 100%); color: var(--ink); } .section-consulting .section-inner { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: flex-start; } .section-consulting__intro { grid-column: 1 / -1; } .section-consulting__how { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: left; gap: 0.35rem; max-width: 720px; margin: 0 auto; padding: clamp(0.9rem, 2vw, 1.25rem); border: 1px solid rgba(0,0,0,0.07); border-radius: 12px; background: rgba(255,255,255,0.65); box-shadow: 0 8px 24px rgba(0,0,0,0.05); } .section-consulting__how h3 { text-align: center; margin: 0; } .section-consulting__how ul { margin: 0.35rem 0 0.75rem; padding-left: 1.2rem; } .section-consulting__cta { grid-column: 1 / -1; text-align: center; } .section-consulting .section-content h4 { margin: 0.75rem 0 0.25rem; } .section-consulting .section-content ul { margin: 0.35rem 0 0.9rem; padding-left: 1.1rem; } .section-consulting__cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(1rem, 2vw, 1.5rem); padding: clamp(1rem, 2vw, 1.4rem); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(245,247,250,0.62) 100%); border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 10px 28px rgba(0,0,0,0.06); } @media (max-width: 900px) { .section-consulting__cols { grid-template-columns: 1fr; } } .section-consulting__col-title { background: rgba(255,255,255,0.92); border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; padding: 0.55rem 0.75rem; margin-bottom: 0.6rem; box-shadow: 0 6px 18px rgba(0,0,0,0.07); } .section-consulting__col h3 { margin: 0; color: #44505f; } .section-consulting__item { padding: 0.75rem 0.9rem; border-radius: 12px; border: 1px solid rgba(0,0,0,0.035); box-shadow: 0 6px 18px rgba(0,0,0,0.03); margin-bottom: 0.6rem; background: rgba(248, 244, 237, 0.9); /* soft sand */ } .section-consulting__item:nth-of-type(even) { background: rgba(235, 243, 238, 0.9); /* soft sage */ } .section-opensci { background: linear-gradient(90deg, var(--offwhite) 0%, var(--pale-blue) 100%); color: var(--ink); } .opensci-layout { display: block; } .section-opensci .section-inner { grid-template-columns: 1fr; } .opensci-closing { font-style: italic; opacity: 0.9; margin-top: 0.8rem; } /* Header */ .large-header { position: relative; width: 100%; background: #333; overflow: hidden; background-size: cover; background-position: center center; z-index: 1; /* Fallback first for older browsers */ background-image: url('../img/om-header.png'); /* Prefer modern WebP with PNG fallback, include 2x for high-DPI */ background-image: -webkit-image-set( url('../img/om-header.webp') type('image/webp') 1x, url('../img/om-header4K.webp') type('image/webp') 2x, url('../img/om-header.png') type('image/png') 1x, url('../img/om-header4K.png') type('image/png') 2x ); background-image: image-set( url('../img/om-header.webp') type('image/webp') 1x, url('../img/om-header4K.webp') type('image/webp') 2x, url('../img/om-header.png') type('image/png') 1x, url('../img/om-header4K.png') type('image/png') 2x ); } .page-header { position: relative; width: 100%; height: clamp(200px, 32vh, 320px); background-position: center; background-size: cover; background-repeat: no-repeat; /* Fallback */ background-image: url('../img/om-header.png'); background-image: -webkit-image-set( url('../img/om-header.webp') type('image/webp') 1x, url('../img/om-header4K.webp') type('image/webp') 2x, url('../img/om-header.png') type('image/png') 1x, url('../img/om-header4K.png') type('image/png') 2x ); background-image: image-set( url('../img/om-header.webp') type('image/webp') 1x, url('../img/om-header4K.webp') type('image/webp') 2x, url('../img/om-header.png') type('image/png') 1x, url('../img/om-header4K.png') type('image/png') 2x ); display: flex; align-items: center; justify-content: center; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.4); } .page-header .page-title { margin: 0; padding: 0 1rem; font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; } /* Generic page content layout */ .page-content { max-width: 900px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem) 1rem; } .page-content h1, .page-content h2, .page-content h3 { color: var(--heading-color); } .page-content img { max-width: 100%; height: auto; } /* Progressive blur-up placeholder over the header background */ .large-header::before { content: ""; position: absolute; inset: 0; background-image: url('../img/om-header.webp'); background-size: cover; background-position: center; filter: blur(16px); transform: scale(1.06); /* avoid edge transparency from blur */ opacity: 1; transition: opacity 600ms ease; z-index: 0; } /* Once the page is ready, fade out the blurred overlay */ .large-header.bg-loaded::before { opacity: 0; } .main-title { position: absolute; margin: 0; padding: 0 1rem; color: #f9f1e9; text-align: center; top: 50%; left: 50%; -webkit-transform: translate3d(-50%,-50%,0); transform: translate3d(-50%,-50%,0); font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 800; line-height: 1.1; letter-spacing: 0.01em; font-size: clamp(2rem, 5.2vw, 3.8rem); text-shadow: 0 4px 16px rgba(0,0,0,0.45); max-width: min(90vw, 28ch); white-space: nowrap; overflow-wrap: normal; } .main-title .thin { display: block; margin-top: 0.75rem; font-weight: 400; font-size: clamp(1.05rem, 2.4vw, 1.35rem); line-height: 1.55; letter-spacing: 0; text-shadow: 0 2px 10px rgba(0,0,0,0.45); white-space: normal; } /* Scroll indicator (arrow) */ .scroll-indicator { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); color: #f9f1e9; opacity: 0.9; text-decoration: none; z-index: 2; } .scroll-indicator svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; animation: floatY 2.4s ease-in-out infinite; } .scroll-indicator:hover, .scroll-indicator:focus { opacity: 1; transform: translateX(-50%) translateY(1px); } @keyframes floatY { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } } /* Mobile nav (hamburger) */ .nav-toggle { position: fixed; top: 0.75rem; left: 0.75rem; width: 42px; height: 42px; display: inline-flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; color: var(--nav-color); background-color: var(--nav-bg); border: 1px solid var(--nav-border); cursor: pointer; z-index: 3; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.28); backdrop-filter: saturate(120%) blur(6px); -webkit-backdrop-filter: saturate(120%) blur(6px); transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease; } .cred-toggle { position: fixed; top: 0.75rem; right: 0.75rem; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; min-height: 42px; padding: 0.55rem 0.8rem; max-width: min(72vw, 460px); color: var(--nav-color); background-color: var(--nav-bg); border: 1px solid var(--nav-border); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,0.28); backdrop-filter: saturate(120%) blur(6px); -webkit-backdrop-filter: saturate(120%) blur(6px); font-weight: 800; font-size: 0.82rem; letter-spacing: .01em; text-align: center; cursor: pointer; z-index: 3; transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .3s ease; } .cred-toggle:hover, .cred-toggle:focus { transform: translateY(1px); box-shadow: 0 8px 20px rgba(0,0,0,0.32); } .cred-label { display: flex; flex-direction: column; gap: 0.1rem; line-height: 1.25; text-align: center; } .cred-line { margin: 0; padding: 0.15rem 0.4rem; border-radius: 8px; background: rgba(255, 255, 255, 0.08); } .cred-line--accent { letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.8rem; background: rgba(255, 255, 255, 0.16); } html.cred-open .cred-toggle { background-color: var(--cta-color); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(0,0,0,0.32), 0 0 0 2px rgba(255,255,255,0.18) inset; } html.cred-fade:not(.cred-open) .cred-toggle { opacity: 0; transform: translateY(-6px); pointer-events: none; } /* Skip link (a11y) */ .skip-link { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 0.5rem 0.75rem; border-radius: 6px; z-index: 1000; } .skip-link:focus { left: auto; right: 0.75rem; top: 0.75rem; } /* Closing band CTA */ .closing-band { padding: clamp(2rem, 5vw, 4rem) 1rem; text-align: center; background: #ffffff; color: var(--ink); } .closing-band h2 { margin: 0 0 0.5rem; color: var(--heading-color); } .closing-band .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 0.75rem; } .closing-band .btn { background: var(--cta-color); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.12); transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease; } .closing-band .btn:hover, .closing-band .btn:focus { /* Subtle change on hover for feedback */ background-color: var(--cta-hover); box-shadow: 0 6px 16px rgba(0,0,0,0.18); transform: translateY(1px); } /* Read more buttons inside media column */ .readmore-btn { display: inline-block; margin-top: 0.5rem; background: var(--cta-color); color: #fff; padding: 0.5rem 0.9rem; border-radius: 8px; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.12); transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease; } .readmore-btn:hover, .readmore-btn:focus { background: var(--cta-hover); color: #e6e6e6; box-shadow: 0 6px 16px rgba(0,0,0,0.18); transform: translateY(1px); } .closing-band .link { color: inherit; text-decoration: underline; } /* Footer */ .site-footer { background: var(--offwhite); color: var(--ink); padding: clamp(2rem, 5vw, 4rem) 1rem; } /* Fullscreen overlay (site-wide panels) */ .overlay[hidden] { display: none !important; } .overlay { position: fixed; inset: 0; z-index: 1000; display: grid; background: var(--overlay-bg); backdrop-filter: saturate(120%) blur(6px); -webkit-backdrop-filter: saturate(120%) blur(6px); } .overlay__panel { align-self: stretch; justify-self: stretch; max-width: min(1100px, 94vw); height: 92vh; margin: 4vh auto; background: var(--overlay-panel-bg); color: var(--ink); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); display: grid; grid-template-rows: auto 1fr; overflow: hidden; } .overlay__header { position: relative; padding: 1rem 3.25rem 1rem 1.25rem; border-bottom: 1px solid rgba(0,0,0,0.08); } .overlay__title { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 800; color: var(--heading-color); } .overlay__close { position: absolute; right: 0.75rem; top: 0.5rem; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--nav-color); background-color: var(--nav-bg); border: 1px solid var(--nav-border); border-radius: 999px; } .overlay__body { overflow: auto; padding: clamp(1rem, 3vw, 2rem); } .overlay__body p { line-height: 1.7; } html.overlay-open, body.overlay-open { overflow: hidden; } /* Newsletter overlay form */ .nl-form { max-width: 640px; margin: 0 auto; } .nl-form label { display: block; font-weight: 800; letter-spacing: .03em; margin-bottom: .35rem; color: var(--heading-color); text-transform: uppercase; font-size: .9rem; } .nl-form input[type="email"] { width: 100%; padding: .8rem .9rem; border-radius: 8px; border: 1px solid rgba(0,0,0,0.08); background: #f1f2f4; outline: none; } .nl-form input[type="email"]:focus { border-color: rgba(0,0,0,0.18); box-shadow: 0 0 0 3px rgba(43,108,176,.12); } .nl-form .note { margin: .35rem 0 1rem; opacity: .7; font-size: .95rem; } .nl-form .nl-btn { display: block; width: 100%; background: var(--cta-color); color: #fff; border: none; border-radius: 8px; padding: .9rem 1rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; box-shadow: 0 6px 16px rgba(0,0,0,.18); transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease; } .nl-form .nl-btn:hover, .nl-form .nl-btn:focus { background: var(--cta-hover); transform: translateY(1px); box-shadow: 0 8px 20px rgba(0,0,0,.22); } /* Contact page form */ .contact-form { max-width: 720px; margin: 0 auto; } .contact-form .field { margin: 0 0 1rem; } .contact-form label { display:block; font-weight:800; letter-spacing:.03em; margin-bottom:.35rem; color: var(--heading-color); text-transform: uppercase; font-size:.9rem; } .contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { width:100%; padding:.8rem .9rem; border-radius:8px; border:1px solid rgba(0,0,0,0.08); background:#f1f2f4; outline:none; } .contact-form select { appearance:auto; -webkit-appearance: none; -moz-appearance: none; background-image: none; } .contact-form textarea { resize: vertical; min-height: 140px; } .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: rgba(0,0,0,0.18); box-shadow: 0 0 0 3px rgba(43,108,176,.12); } .contact-form .hp { position:absolute; left:-9999px; } .contact-form .contact-btn { display:inline-block; background: var(--cta-color); color:#fff; padding:.6rem 1rem; border:none; border-radius:8px; font-weight:800; letter-spacing:.03em; cursor:pointer; box-shadow:0 6px 16px rgba(0,0,0,.18); transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease; } .contact-form .contact-btn:hover,.contact-form .contact-btn:focus { background: var(--cta-hover); transform: translateY(1px); box-shadow:0 8px 20px rgba(0,0,0,.22); } .contact-form .contact-note { margin-top:.5rem; opacity:.7; font-size:.95rem; } /* Inline link tooltips (omlinks) */ .omtip { position: absolute; inset: auto auto auto auto; z-index: 1200; pointer-events: none; } .omtip__panel { background: var(--overlay-panel-bg); color: var(--ink); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.35); max-width: min(420px, 80vw); padding: .75rem .9rem; } .omtip__arrow { position: absolute; width: 14px; height: 14px; transform: rotate(45deg); background: var(--overlay-panel-bg); box-shadow: -4px 4px 10px rgba(0,0,0,.15); } .omtip h3 { margin: 0 0 .25rem; font-weight: 800; color: var(--heading-color); font-size: 1.05rem; } .omtip p { margin: .25rem 0; line-height: 1.5; } .omtip img { max-width: 80px; height: auto; float: left; margin: .15rem .6rem .3rem 0; border-radius: 6px; } .omtip a { color: #2b6cb0; text-decoration: underline; pointer-events: auto; } a[data-omlink] { position: relative; } a[data-omlink]:hover, a[data-omlink]:focus { outline: none; } .site-footer .cols { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } .site-footer h3 { margin: 0 0 0.5rem; color: var(--heading-color); font-size: 1.05rem; } .site-footer p { margin: 0; line-height: 1.6; } .site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin: 0.25rem 0; } .site-footer a { color: inherit; text-decoration: none; } .site-footer a:hover, .site-footer a:focus { text-decoration: underline; } .site-footer .fineprint { max-width: 1100px; margin: 1rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(0,0,0,0.08); text-align: center; font-size: 0.95rem; opacity: 0.8; } @media (max-width: 900px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0,1fr)); } } @media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } } /* Full-screen sections in landscape: match hero height */ @media (orientation: landscape) { .section-about.section-block, .section-consulting.section-block, .section-rnd.section-block, .section-opensci.section-block { min-height: 100vh; /* fallback */ min-height: 100svh; /* modern stable viewport unit */ display: grid; align-items: center; /* vertically center inner grid */ } } /* Show scroll indicator in content sections only in landscape */ /* Section-level scroll indicators removed; keep only hero indicator */ .nav-toggle:focus-visible { outline: 2px solid rgba(249,241,233,0.85); outline-offset: 2px; } .cred-toggle:focus-visible { outline: 2px solid rgba(249,241,233,0.85); outline-offset: 2px; } .nav-toggle .bar { display: block; width: 22px; height: 2px; background-color: currentColor; border-radius: 1px; transition: transform .25s ease, opacity .2s ease; } /* spacing handled by gap above */ html.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); } html.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; } html.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); } .site-menu[hidden] { display: none !important; } .site-menu { position: fixed; top: 3.25rem; left: 0.75rem; min-width: 220px; padding: 0.5rem; background: rgba(0,0,0,0.45); color: #f9f1e9; border-radius: 12px; backdrop-filter: saturate(120%) blur(6px); box-shadow: 0 10px 30px rgba(0,0,0,0.35); z-index: 3; } /* Nav color scheme when over light backgrounds */ html.nav-scheme-light { --nav-color: #1f2a44; --nav-bg: rgba(255, 255, 255, 0.84); --nav-border: rgba(0,0,0,0.12); } .site-menu ul { list-style: none; margin: 0; padding: 0; } .site-menu li { margin: 0; } .site-menu a { display: block; padding: 0.6rem 0.75rem; color: #f9f1e9; text-decoration: none; border-radius: 8px; } .site-menu a:hover, .site-menu a:focus { background-color: rgba(255,255,255,0.08); } .site-menu a.is-active { background-color: rgba(255,255,255,0.16); } .cred-panel { position: fixed; top: 3.5rem; right: 0.75rem; max-width: min(360px, 90vw); background: var(--nav-bg); color: var(--nav-color); border: 1px solid var(--nav-border); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,0.28); backdrop-filter: saturate(120%) blur(6px); -webkit-backdrop-filter: saturate(120%) blur(6px); z-index: 4; animation: cred-drop 220ms ease; transform-origin: top right; } .cred-panel__inner { position: relative; padding: 1rem 1.1rem; } .cred-panel h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--heading-color); } .cred-panel p { margin: 0 0 0.45rem; line-height: 1.5; } .cred-panel__close { position: absolute; top: 0.35rem; right: 0.35rem; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--nav-border); background: var(--nav-bg); color: var(--nav-color); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .15s ease; } .cred-panel__close:hover, .cred-panel__close:focus { transform: translateY(1px); background: rgba(255,255,255,0.16); } @keyframes cred-drop { from { opacity: 0; transform: translateY(-6px) scale(0.99); } to { opacity: 1; transform: translateY(0) scale(1); } } /* Back to top */ /* Optional dark scheme variant for CTAs */ .closing-band[data-scheme="dark"] { background: var(--midnight-soft); color: var(--textLight); } .closing-band[data-scheme="dark"] .btn { background: #f6f8fb; color: #1f2a44; } .closing-band[data-scheme="dark"] .btn:hover, .closing-band[data-scheme="dark"] .btn:focus { background: #e8eef9; }