@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #0c100f;
  --surface: #161d19;
  --surface-soft: #1b241e;
  --text: #edf0e8;
  --muted: #a5b1a6;
  --line: #303b32;
  --accent: #c5d4ae;
  --grid: #324938;
  --quote-bg: #c4d3af;
  --quote-text: #263820;
  --radius: 24px;
}
[data-theme="light"] {
  color-scheme: light;
  --background: #edf0e9;
  --surface: #f9fbf5;
  --surface-soft: #e3e9db;
  --text: #28382b;
  --muted: #58674f;
  --line: #ccd5c6;
  --accent: #4d673b;
  --grid: #b6c5ac;
  --quote-bg: #cedcbf;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; min-width: 280px; min-height: 100dvh; position: relative; isolation: isolate; background: var(--background); color: var(--text); font-family: Manrope, "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
button, input { font: inherit; }
::selection { background: var(--accent); color: var(--background); }
[hidden] { display: none !important; }
.shell { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
a:focus-visible, input:focus-visible, [tabindex="-1"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 18px; border-radius: 8px; background: var(--text); color: var(--background); transform: translateY(-150%); z-index: 3; }
.skip-link:focus { transform: none; }
.icon { display: inline-block; width: 22px; height: 22px; background: currentColor; mask-position: center; mask-size: contain; mask-repeat: no-repeat; flex-shrink: 0; }
.moon-icon { mask-image: url("assets/icons/moon.svg"); }

/* Uiverse / csemszepp, serious-cobra-89: two-scale conic-gradient pattern. */
.page-grid, .card-grid {
  --s: 120px;
  --_g: #0000 90deg, var(--grid) 0;
  background: conic-gradient(from 90deg at 1px 1px, var(--_g)), conic-gradient(from 90deg at .5px .5px, var(--_g));
  background-size: var(--s) var(--s), calc(var(--s) / 5) calc(var(--s) / 5);
  pointer-events: none;
}
.page-grid { position: absolute; inset: 0; z-index: -1; opacity: .19; mask-image: linear-gradient(#000, transparent 85%); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 130px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; letter-spacing: -.4px; }
.brand-domain { margin-left: 7px; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .2px; }
.header-controls { display: flex; align-items: center; gap: 22px; }
.pill-nav { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; }
.pill-nav a { display: grid; place-items: center; min-height: 36px; padding: 0 20px; border-radius: 99px; font-size: 11px; letter-spacing: .5px; color: var(--muted); }
.pill-nav a:hover, .pill-nav a:focus-visible { background: var(--surface-soft); color: var(--text); }

/* Uiverse / Charly-T, wise-bobcat-72. Native input retained; focus and touch target added. */
.theme-control { display: grid; place-items: center; min-width: 64px; min-height: 44px; cursor: pointer; border-radius: 99px; }
.theme-control:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.switch { --switch-width: 52px; --switch-height: calc(var(--switch-width) / 2); --left-ball-color: #243027; --right-ball-color: #d9e5cb; display: block; width: var(--switch-width); height: var(--switch-height); border-radius: calc(var(--switch-height) / 2); background: var(--left-ball-color); position: relative; overflow: hidden; outline: 1px solid #758570; }
.switch input { position: absolute; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 3; }
.switch .left, .switch .right { position: absolute; width: calc(var(--switch-width) / 3); height: calc(var(--switch-height) / 1.5); top: calc((var(--switch-height) - (var(--switch-height) / 1.5)) / 2); border-radius: 50%; z-index: 2; pointer-events: none; }
.switch .left { left: calc(var(--switch-height) / 6); background: var(--left-ball-color); }
.switch .right { right: calc(var(--switch-height) / 6); background: var(--right-ball-color); }
.switch .switcher { position: absolute; width: calc(100% + var(--switch-width) / 3); height: 100%; background: var(--right-ball-color); z-index: 1; left: calc(-50% + var(--switch-width) / 6); pointer-events: none; transition: transform .45s ease; border-radius: calc(var(--switch-width) / 3) 0 0 calc(var(--switch-width) / 3); }
.switch .switcher::before, .switch .switcher::after { position: absolute; content: ""; width: calc(var(--switch-width) / 3); height: 100%; }
.switch .switcher::before { background: var(--left-ball-color); border-radius: 0 50% 50% 0; z-index: 2; }
.switch .switcher::after { background: var(--right-ball-color); border-radius: 50% 0 0 50%; }
.switch input:checked ~ .switcher { transform: translateX(calc(var(--switch-width) * 4 / 3)); }
.switch input:checked ~ .switcher::before { visibility: hidden; }

/* NameThatUI Bento Grid: shared tracks, gap, radius, and a spanning photo tile. */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; padding-block: 13px 0; }
.tile { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.home-card { grid-column: span 8; min-height: 444px; padding: 35px 41px 33px; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; }
.card-grid { position: absolute; inset: 0; z-index: -1; opacity: .34; mask-image: linear-gradient(110deg, transparent 30%, #000 100%); }
.home-card::after { content: ""; position: absolute; width: 360px; height: 360px; right: -180px; top: -220px; border-radius: 50%; box-shadow: 0 0 140px 55px #7199541c; z-index: -1; pointer-events: none; }
.home-topline { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.personal-label { font-size: 11px; letter-spacing: 1px; }
.home-spark { color: var(--accent); font-size: 26px; }
.home-copy { padding-top: 25px; }
h1 { margin: 0 0 12px -5px; font-size: clamp(80px, 8vw, 114px); line-height: 1.12; font-weight: 500; letter-spacing: -.075em; }
h1 span { color: var(--accent); }
.tagline { margin: 0; font-size: clamp(18px, 1.65vw, 24px); letter-spacing: -.65px; }
.welcome { margin: 20px 0 30px; font-size: 12px; line-height: 1.95; letter-spacing: .6px; color: var(--muted); }
.home-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.home-footer-note { color: var(--muted); font-size: 8px; letter-spacing: 1.6px; }

/* Uiverse / alexmaracinaru, brown-bobcat-65: expanding circle and sliding arrow. */
.cta { position: relative; display: inline-flex; align-items: center; padding: 12px 18px; min-height: 45px; white-space: nowrap; }
.cta::before { content: ""; position: absolute; inset: 0 auto 0 0; display: block; border-radius: 50px; background: var(--surface-soft); width: 45px; transition: width .3s ease; }
.cta span { position: relative; font-size: 12px; font-weight: 600; letter-spacing: .7px; color: var(--text); }
.cta svg { position: relative; margin-left: 13px; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: var(--accent); stroke-width: 1.5; transform: translateX(-5px); transition: transform .3s ease; }
.cta:hover::before, .cta:focus-visible::before { width: 100%; }
.cta:hover svg, .cta:focus-visible svg { transform: translateX(0); }
.cta:active { transform: scale(.97); }

/* Uiverse / alexmaracinaru, purple-zebra-61: image, category, caption slots. */
.scene-card { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; margin: 0; padding: 8px; }
.card-image { min-height: 0; flex: 1; position: relative; border-radius: 17px; overflow: hidden; background: #29392c; transition: transform .5s ease; }
.card-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% center; opacity: .83; }
.card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0b1a112b, transparent 50%, #09100b70); pointer-events: none; }
.scene-moon { position: absolute; top: 14%; right: 24%; width: 39px; height: 39px; border-radius: 50%; background: #eaf0d6; box-shadow: 0 0 32px #eaf0d620; }
/* NameThatUI Glassmorphism: photograph behind blur, light edge, opaque fallback. */
.glass-panel { background: #172019bb; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid #e2eddb40; box-shadow: 0 12px 24px #07120b33; }
.scene-caption { position: absolute; bottom: 18px; inset-inline: 15px; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 19px 15px; border-radius: 15px; color: #eef2e7; }
.scene-caption > .icon { width: 23px; height: 23px; color: #dce9c6; }
.scene-caption p { margin: 0 0 6px; font-size: 13px; letter-spacing: 1px; }
.scene-caption span:not(.icon) { font-size: 10px; letter-spacing: .3px; color: #ccd7c6; }
.scene-card figcaption { display: flex; justify-content: space-between; gap: 9px; align-items: center; padding: 16px 12px 10px; }
.category { font-size: 10px; letter-spacing: .7px; color: var(--muted); }
.scene-caption-end { font-size: 9px; color: var(--muted); }

.about-card { grid-column: span 5; padding: 28px 33px 30px; scroll-margin-top: 28px; }
.about-heading { font-size: 11px; color: var(--muted); letter-spacing: .6px; }
h2 { margin: 18px 0 15px; font-size: 25px; line-height: 1.5; font-weight: 400; letter-spacing: .4px; }
.about-card > p { font-size: 11px; line-height: 2; color: var(--muted); margin: 0; }

/* Uiverse / alexmaracinaru, tender-fly-40: monochrome quote, large quotation, visible author. */
.quote-card { grid-column: span 3; background: var(--quote-bg); color: var(--quote-text); padding: 24px 26px; display: flex; flex-direction: column; border-color: transparent; }
.quote { font-family: Georgia, serif; font-size: 82px; height: 57px; line-height: 1.2; color: #5b7243; }
.body-text { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.7px; line-height: 1.4; margin: 0 0 19px; }
.author { margin: auto 0 0; font-size: 10px; color: #405534; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 104px; color: var(--muted); font-size: 10px; }
.site-footer p { margin: 0; }
.footer-separator { margin-inline: 17px; color: var(--line); }
.back-top { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; }
.back-top:hover { color: var(--text); }

@supports not (backdrop-filter: blur(1px)) { .glass-panel { background: #172019; } }
@media (prefers-reduced-transparency: reduce) { .glass-panel { background: #172019; backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-reduced-motion: no-preference) {
  .tile { animation: arrive .65s both; }
  .scene-card { animation-delay: .08s; }
  .about-card, .quote-card { animation-delay: .14s; }
  @keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @media (hover: hover) {
    .scene-card:hover .card-image { transform: scale(.98); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 1099px) {
  .shell { width: calc(100% - 56px); }
  .home-card { padding-inline: 30px; }
  .home-footer-note { display: none; }
  .quote-card { padding-inline: 20px; }
  .scene-caption { gap: 9px; padding: 16px 12px; inset-inline: 10px; }
  .scene-caption > .icon { display: none; }
  .scene-caption-end { display: none; }
  .about-card { padding-inline: 26px; }
}
@media (max-width: 899px) {
  .site-header { min-height: 112px; }
  .brand-domain { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .home-card { grid-column: span 2; min-height: 424px; }
  h1 { font-size: 96px; }
  .tagline { font-size: 24px; }
  .scene-card { grid-column: span 2; grid-row: auto; }
  .card-image { flex: none; height: 320px; }
  .card-image > img { object-position: 50% 46%; }
  .scene-caption { inset-inline: auto 20px; min-width: 250px; }
  .scene-caption > .icon { display: block; }
  .scene-moon { width: 34px; height: 34px; top: 15%; right: 29%; }
  .about-card, .quote-card { grid-column: span 1; }
  .scene-caption-end { display: inline; }
  .quote-card { padding: 28px; }
  .body-text { font-size: 28px; }
}
@media (max-width: 599px) {
  :root { --radius: 20px; }
  .shell { width: calc(100% - 32px); }
  .site-header { min-height: 98px; gap: 10px; }
  .brand { font-size: 13px; }
  .header-controls { gap: 6px; }
  .pill-nav { border: 0; padding: 0; background: transparent; }
  .pill-nav .home-link { display: none; }
  .pill-nav a { padding-inline: 6px; min-height: 44px; font-size: 10px; }
  .theme-control { min-width: 56px; }
  .switch { --switch-width: 44px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 0; }
  .home-card, .scene-card, .about-card, .quote-card { grid-column: auto; }
  .home-card { min-height: 399px; padding: 26px 25px; }
  .personal-label { font-size: 9px; letter-spacing: .2px; }
  .home-spark { font-size: 22px; }
  .home-copy { padding-top: 30px; }
  h1 { font-size: clamp(56px, 18vw, 93px); margin-left: -3px; margin-bottom: 14px; }
  .tagline { max-width: 220px; font-size: 22px; line-height: 1.4; letter-spacing: -.5px; }
  .welcome { margin-top: 19px; margin-bottom: 27px; font-size: 11px; }
  .cta { margin-left: -3px; }
  .card-image { height: 365px; border-radius: 13px; }
  .card-image > img { object-position: 50% center; }
  .scene-caption { inset-inline: 14px; min-width: 0; bottom: 14px; padding: 17px; }
  .scene-moon { right: 25%; }
  .about-card { padding: 28px; }
  .about-card > p { font-size: 11px; line-height: 2; }
  .quote-card { min-height: 234px; padding: 24px 28px; }
  .quote { height: 50px; font-size: 76px; }
  .body-text { font-size: 27px; margin-bottom: 21px; }
  .author { font-size: 11px; }
  .site-footer { min-height: 97px; font-size: 9px; gap: 10px; }
  .footer-separator { display: none; }
  .site-footer p > span:last-child { display: none; }
}
