/* ==========================================================
   Afshin Eskandari — cluster administration
   Palette borrows Icinga's state colours: OK green, WARNING
   orange, CRITICAL red, UNKNOWN purple, on black.
   ========================================================== */
:root {
  --black: #0a090b;
  --panel: #131115;
  --panel-2: #1a171c;
  --line: rgba(237, 231, 224, .1);
  --line-2: rgba(237, 231, 224, .18);
  --bone: #ede7e0;
  --mute: #a69f98;
  --orange: #ffa95e;
  --orange-soft: #ffc995;
  --orange-deep: #ff7f32;
  --green: #4ad688;
  --purple: #a68cff;
  --red: #ff5a4f;

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;

  --r-lg: 28px;
  --r-md: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* black abstract art, fixed behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: url("../assets/img/bg-black-art.jpg") center / cover no-repeat, var(--black);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }
code { font-family: var(--f-mono); font-size: .82em; }
.mono { font-family: var(--f-mono); }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 99; background: var(--orange); color: var(--black); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 10px;
  font: 600 15px/1 var(--f-body); text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-green { background: var(--green); color: #06180d; }
.btn-green:hover { background: #6be3a0; }
.btn-orange { background: var(--orange); color: #1e0d02; }
.btn-orange:hover { background: var(--orange-soft); }
.btn-line { border-color: var(--line-2); color: var(--bone); }
.btn-line:hover { border-color: var(--bone); }
.btn-text { padding-inline: 6px; color: var(--bone); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.btn-text:hover { color: var(--orange); }

.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(74, 214, 136, .18); animation: blink 2.4s ease-in-out infinite; }
.led-purple { background: var(--purple); box-shadow: 0 0 0 3px rgba(166, 140, 255, .18); }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(10, 9, 11, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { position: relative; width: 40px; height: 30px; isolation: isolate; }
.brand-mark i { position: absolute; width: 20px; height: 20px; border-radius: 50%; top: 5px; mix-blend-mode: screen; }
.brand-mark i:nth-child(1) { left: 0; background: var(--green); }
.brand-mark i:nth-child(2) { left: 10px; background: var(--orange); }
.brand-mark i:nth-child(3) { left: 20px; background: var(--purple); }
.brand-name { font: 800 22px/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a, .nav-soon { padding: 8px 12px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--mute); border-radius: 8px; position: relative; }
.nav-links a:hover, .nav-links a.is-on { color: var(--bone); }
.nav-links a.is-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--green); border-radius: 2px; }
.nav-soon { color: rgba(166, 159, 152, .55); cursor: default; }
.nav-soon em { font: 400 9px/1 var(--f-mono); font-style: normal; text-transform: uppercase; letter-spacing: .06em; color: var(--purple); border: 1px solid rgba(166, 140, 255, .4); padding: 3px 5px; border-radius: 4px; margin-left: 4px; vertical-align: 2px; }
.nav-cta { padding: 11px 18px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .nav-toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--bone); transition: transform .25s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links { position: absolute; top: 76px; left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: rgba(19, 17, 21, .97); border: 1px solid var(--line-2); border-radius: var(--r-md); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a, .nav-soon { padding: 14px; font-size: 17px; }
  .nav-links a.is-on::after { display: none; }
}

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center;
  padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 110px);
}
.kicker { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .04em; color: var(--mute); margin-bottom: 26px; }
.hero h1 {
  font: 900 clamp(46px, 6vw, 92px)/.88 var(--f-display);
  text-transform: uppercase; letter-spacing: -.005em;
  margin-bottom: 28px;
}
.h1-line { display: block; }
.h1-alt { color: var(--orange); margin-top: .14em; }
.hero-lead { max-width: 33em; font-size: 18px; color: #cfc8c1; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 40px; }
.hero-foot { font-weight: 600; font-size: 15px; color: var(--bone); margin: 0; padding-top: 18px; border-top: 1px solid var(--line); max-width: 33em; }

/* load-in */
.h1-line, .hero-lead, .hero-actions, .hero-foot, .kicker { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.kicker { animation-delay: .05s; }
.h1-line:first-child { animation-delay: .12s; }
.h1-alt { animation-delay: .24s; }
.hero-lead { animation-delay: .36s; }
.hero-actions { animation-delay: .46s; }
.hero-foot { animation-delay: .56s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* collage, after the reference: a 2 x 2 of tiles with the shards at its centre */
.collage { --frame: 6px; position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: end; }
.collage > * { position: absolute; margin: 0; animation: pop .9s cubic-bezier(.2, .8, .2, 1) both; }
.tile { border-radius: var(--r-lg); overflow: hidden; z-index: 1; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
/* top row: both tiles start and end at the same height */
.tile-office-a { left: 0; top: 0; height: 41%; aspect-ratio: 4 / 3; background: var(--orange); padding: var(--frame); animation-delay: .2s; }
.tile-office-a img { border-radius: calc(var(--r-lg) - var(--frame)); }
.tile-matrix {
  right: 3%; top: 0; height: 41%; aspect-ratio: 600 / 840; border-radius: 999px;
  background: var(--orange); box-shadow: 0 24px 40px -12px rgba(0, 0, 0, .6);
  animation-delay: .35s;
}
/* the characters fall: a strip of four tiles slides down by one tile */
.matrix-rain { position: absolute; inset: var(--frame); border-radius: 999px; overflow: hidden; background: #000; }
.matrix-rain::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  aspect-ratio: 400 / 1296;
  background: url("../assets/img/matrix-tile.jpg") center top / 100% 25% repeat-y;
  animation: rain 9s linear infinite;
}
@keyframes rain { from { transform: translateY(-25%); } to { transform: none; } }
.shards { left: 43%; top: 37.5%; width: 25%; z-index: 2; overflow: visible; animation-delay: .6s; }
.sh { transform-box: fill-box; transform-origin: center; animation: drift 9s ease-in-out infinite alternate; }
.sh2 { animation-duration: 11s; animation-delay: -3s; }
.sh3 { animation-duration: 7s; animation-delay: -5s; }
@keyframes drift { to { transform: translate(4px, -6px) rotate(8deg); } }
/* bottom row */
.tile-sphere {
  left: 2%; top: 53%; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #1d1410 0%, #0d0b0c 62%);
  box-shadow: 0 0 0 1px rgba(255, 169, 94, .25), 0 30px 80px -30px rgba(255, 127, 50, .45);
  overflow: visible; animation-delay: .45s;
}
.tile-sphere::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(166, 140, 255, .45); clip-path: polygon(0 40%, 100% 40%, 100% 100%, 0 100%); }
.tile-sphere canvas { width: 100%; height: 100%; display: block; border-radius: 50%; }
.tile-office-b { right: 0; top: 62%; width: 40%; aspect-ratio: 3 / 2; border-radius: var(--r-md); outline: 1.5px solid rgba(74, 214, 136, .55); outline-offset: 6px; animation-delay: .8s; }
/* round stamp, used on the About page */
.ring-badge {
  position: absolute; aspect-ratio: 1; border-radius: 50%; z-index: 3;
  background: var(--purple); color: #120a2a;
  display: grid; place-items: center;
  box-shadow: 0 0 0 7px var(--black);
}
.ring-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.ring-badge text { font: 500 12.5px var(--f-mono); letter-spacing: .04em; fill: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(26px) scale(.94); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .collage { justify-self: center; max-width: 520px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head.center .chip { margin-inline: auto; }
h2 { font: 800 clamp(36px, 4.6vw, 62px)/.98 var(--f-display); text-transform: uppercase; letter-spacing: .002em; margin-bottom: 20px; text-wrap: balance; }
.sec-sub { color: #cbc4bd; font-size: 18px; max-width: 40em; margin-inline: inherit; }
.sec-head.center .sec-sub { margin-inline: auto; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12px/1.2 var(--f-mono); color: var(--bone); background: rgba(19, 17, 21, .6); margin-bottom: 22px; width: fit-content; display: flex; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* ---------- life cycle: orange silk band ---------- */
.silk {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px);
}
.silk::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/orange-abstract.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
}
.silk > .wrap { position: relative; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); counter-reset: none; }
.card {
  display: flex; flex-direction: column;
  background: rgba(13, 11, 14, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 201, 149, .18); border-radius: var(--r-md);
  padding: 22px 22px 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.card-tag { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .05em; color: var(--orange); text-transform: uppercase; margin-bottom: 12px; }
.card-tag span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: var(--black); font-size: 11px; }
.card h3 { font: 800 30px/1 var(--f-display); text-transform: uppercase; margin-bottom: 12px; }
.card > p:not(.card-tag) { font-size: 15.5px; color: #cdc6bf; flex: 1; }
.term { margin-top: 8px; border-radius: 12px; background: #060507; border: 1px solid var(--line); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.term-bar span { margin-left: 8px; font: 400 10px/1 var(--f-mono); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term pre, .script { margin: 0; overflow-x: auto; }
.term pre { padding: 12px 14px 14px; font-size: 11.5px; line-height: 1.75; color: #d8d1ca; }
.term code { font-size: 1em; }
.c-mute { color: var(--mute); }
.c-green { color: var(--green); }
.c-orange { color: var(--orange); }
.c-red { color: var(--red); }
.c-purple { color: var(--purple); }

.mon { margin-top: 8px; border-radius: 12px; background: #060507; border: 1px solid var(--line); padding: 12px 14px 10px; }
.mon-states { list-style: none; margin: 0 0 10px; padding: 0; font-size: 11px; }
.mon-states li { display: grid; grid-template-columns: 10px 76px 1fr; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.mon-states li:last-child { border-bottom: 0; }
.mon-states i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.mon-states b { font-weight: 400; color: var(--mute); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spark { width: 100%; height: 48px; display: block; }
.spark-line { fill: none; stroke: var(--orange); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; }
.spark-fill { fill: rgba(255, 169, 94, .14); }
.card.is-in .spark-line { animation: draw 2.2s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.silk-foot { text-align: center; margin: clamp(28px, 4vw, 44px) auto 18px; font-weight: 600; color: var(--bone); text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }
/* tool marquee, after the 21st.dev LogoScroller */
.marquee {
  overflow: hidden; padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-shrink: 0; font-size: clamp(16px, 1.6vw, 20px); color: rgba(255, 238, 222, .9); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.marquee-set li { display: flex; align-items: center; padding-right: 30px; white-space: nowrap; }
.marquee-set li::after { content: ""; width: 6px; height: 6px; margin-left: 30px; border-radius: 50%; background: var(--orange); }
.marquee-set li:nth-child(4n+2)::after { background: var(--green); }
.marquee-set li:nth-child(4n+3)::after { background: var(--purple); }
.marquee-set li:nth-child(4n+4)::after { background: var(--red); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 940px) { .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- workload ---------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split-copy > p { color: #cdc6bf; }
.hw { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 4px; }
.hw li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.hw i { width: 12px; height: 12px; margin-top: 6px; border-radius: 3px; background: var(--c); }
.hw b { display: block; font: 800 22px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.hw span { color: var(--mute); font-size: 15.5px; }

.builder { position: sticky; top: 100px; background: rgba(19, 17, 21, .88); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 28px); }
.builder-label { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #0a090b; border: 1px solid var(--line); margin-bottom: 18px; }
.seg button { font: 600 14px/1.2 var(--f-body); color: var(--mute); background: transparent; border: 0; border-radius: 9px; padding: 11px 8px; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.seg button:hover { color: var(--bone); }
.seg button[aria-selected="true"] { background: var(--c); color: var(--black); }
.script { background: #060507; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px; font-size: 12.5px; line-height: 1.85; color: #ddd6cf; min-height: 268px; }
.script code { font-size: 1em; }
.script .k { color: var(--c, var(--orange)); }
.script .cm { color: var(--mute); }
.builder-note { font-size: 13.5px; color: var(--mute); margin: 12px 2px 20px; }
.builder-note code { color: var(--bone); }
.states { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--mute); }
.states li { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 8px; border: 1px solid var(--line); }
.states b { font-weight: 500; color: var(--black); background: var(--c); border-radius: 5px; padding: 3px 6px; }
.states li + li::before { content: "→"; margin: 0 4px 0 -2px; color: var(--line-2); display: none; }

@media (max-width: 940px) { .split { grid-template-columns: 1fr; } .builder { position: static; } }

/* ---------- support tickets ---------- */
.tickets { display: grid; gap: 10px; }
.ticket { background: rgba(19, 17, 21, .78); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .2s ease, background-color .2s ease; }
.ticket[open] { border-color: rgba(255, 90, 79, .35); background: rgba(22, 17, 19, .92); }
.ticket summary { list-style: none; display: grid; grid-template-columns: 112px 1fr 28px; align-items: center; gap: 18px; padding: 20px 22px; cursor: pointer; }
.ticket summary::-webkit-details-marker { display: none; }
.t-tag { justify-self: start; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--c); border: 1px solid var(--c); border-radius: 6px; padding: 5px 8px; }
.ticket q { font: 800 clamp(22px, 2.6vw, 32px)/1.05 var(--f-display); text-transform: uppercase; quotes: "“" "”"; }
.t-plus { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); }
.t-plus::before, .t-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--bone); transform: translate(-50%, -50%); transition: transform .25s ease; }
.t-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.ticket[open] .t-plus::after { transform: translate(-50%, -50%) rotate(0); }
.t-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 0 22px 24px calc(22px + 112px + 18px); }
.t-body h4 { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-bottom: 10px; }
.t-body p { font-size: 15.5px; color: #d0c9c2; margin: 0; }
.t-body pre { margin: 0 0 12px; padding: 10px 12px; background: #060507; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; font-size: 12px; color: var(--green); }
.t-body code { font-size: .86em; }
.t-body p code { color: var(--orange); }
.also { margin-top: 28px; color: var(--mute); max-width: 52em; }
.also b { color: var(--bone); }

@media (max-width: 760px) {
  .ticket summary { grid-template-columns: 1fr 28px; gap: 10px 14px; padding: 18px; }
  .t-tag { grid-column: 1 / -1; }
  .ticket q { grid-column: 1; }
  .t-body { grid-template-columns: 1fr; gap: 18px; padding: 0 18px 20px; }
}

/* ---------- research teaser ---------- */
.teaser {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--r-lg);
  border: 1px dashed rgba(166, 140, 255, .45);
  background: radial-gradient(120% 140% at 100% 0%, rgba(166, 140, 255, .14), transparent 55%), rgba(19, 17, 21, .7);
}
.teaser > div { max-width: 640px; }
.teaser p:last-child { color: #cdc6bf; margin: 0; }
.teaser-label { display: flex; align-items: center; gap: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--purple); margin-bottom: 16px; }

/* ---------- contact + glowing map ---------- */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.contact-copy p { color: #cdc6bf; }
.contact-copy .btn { margin: 8px 0 28px; }
address { font-style: normal; color: var(--mute); font-size: 15px; line-height: 1.7; }

/* Glowing border, after the 21st.dev "glowing shadow": an animated
   conic light that orbits the frame, held to the site's palette. */
@property --orbit { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --glow { syntax: "<number>"; inherits: true; initial-value: .55; }
.glow-frame {
  --orbit: 0deg; --glow: .55;
  position: relative; border-radius: var(--r-lg); padding: 3px;
  isolation: isolate;
  animation: orbit 6s linear infinite;
  transition: --glow .5s ease;
}
.glow-frame:hover, .glow-frame:focus-within { --glow: 1; }
.glow-frame::before, .glow-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--orbit), var(--orange), var(--red), var(--purple), var(--green), var(--orange-soft), var(--orange));
}
.glow-frame::after { filter: blur(26px); opacity: var(--glow); inset: 6px; }
.glow-inner { border-radius: calc(var(--r-lg) - 3px); overflow: hidden; background: #0c0b0d; }
#map { height: clamp(340px, 42vw, 480px); width: 100%; background: #0c0b0d; }
@keyframes orbit { to { --orbit: 360deg; } }

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

/* leaflet theming */
.leaflet-container { font-family: var(--f-body); }
.leaflet-bar a, .leaflet-bar a:hover { background: #18151a; color: var(--bone); border-bottom-color: var(--line); }
.leaflet-bar { border: 1px solid var(--line-2) !important; border-radius: 10px !important; overflow: hidden; }
.leaflet-control-attribution { background: rgba(10, 9, 11, .75) !important; color: var(--mute) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--bone) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #18151a; color: var(--bone); border: 1px solid var(--line-2); box-shadow: 0 12px 30px rgba(0, 0, 0, .6); }
.leaflet-popup-content { margin: 14px 16px; font-size: 14px; line-height: 1.5; }
.leaflet-popup-content b { font-family: var(--f-display); font-size: 18px; text-transform: uppercase; display: block; }
.leaflet-container a.leaflet-popup-close-button { color: var(--mute); }
.map-ctl { display: flex; gap: 4px; padding: 4px; background: rgba(19, 17, 21, .92); border: 1px solid var(--line-2); border-radius: 10px; }
.map-ctl button { font: 500 11px/1 var(--f-mono); color: var(--mute); background: transparent; border: 0; border-radius: 7px; padding: 8px 10px; cursor: pointer; }
.map-ctl button[aria-pressed="true"] { background: var(--orange); color: var(--black); }
.map-ctl button:hover:not([aria-pressed="true"]) { color: var(--bone); }
.pin { width: 22px; height: 22px; border-radius: 50%; background: var(--orange); border: 3px solid #1e0d02; box-shadow: 0 0 0 2px var(--orange), 0 0 24px 6px rgba(255, 169, 94, .6); }
.pin-small { width: 14px; height: 14px; background: var(--purple); border-width: 2px; box-shadow: 0 0 0 2px var(--purple); }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.foot .mono { font-size: 11px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.cards .card:nth-child(2) { --d: .1s; }
.cards .card:nth-child(3) { --d: .2s; }

/* life cycle cards glow only while hovered: an orbiting palette border
   (as on the map) plus a soft outer light */
.card.reveal {
  position: relative;
  transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), box-shadow .35s ease, border-color .35s ease;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--orbit), var(--orange), var(--red), var(--purple), var(--green), var(--orange-soft), var(--orange));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s ease;
}
.card:hover { border-color: transparent; box-shadow: 0 0 34px -6px rgba(255, 169, 94, .55), 0 0 80px -20px rgba(166, 140, 255, .45), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.card:hover::before { opacity: 1; animation: orbit 4s linear infinite; }

/* ==========================================================
   About page
   ========================================================== */
.about-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(32px, 6vw, 72px) clamp(56px, 7vw, 96px); }
.portrait { position: relative; margin: 0; max-width: 450px; width: 100%; justify-self: center; }
.portrait-frame { background: var(--orange); padding: 10px; border-radius: 34px; transform: rotate(-2deg); }
.portrait-frame img { border-radius: 26px; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 30%; width: 100%; height: auto; }
.portrait .ring-badge { position: absolute; left: auto; right: -6%; top: auto; bottom: -6%; width: 34%; animation: none; }
.portrait .ring-badge b { font-family: var(--f-display); font-weight: 900; font-size: clamp(28px, 4vw, 44px); line-height: .8; text-align: center; }
.portrait .ring-badge b small { display: block; font: 500 9px/1 var(--f-mono); letter-spacing: .06em; margin-top: 6px; }
.portrait .shards { position: absolute; left: -12%; top: -8%; width: 36%; right: auto; animation: none; }
.about-copy h1 { font: 900 clamp(48px, 6.4vw, 96px)/.88 var(--f-display); text-transform: uppercase; margin-bottom: 14px; }
.about-copy h1 span { color: var(--orange); }
.about-role { font: 500 12px/1.6 var(--f-mono); color: var(--mute); margin-bottom: 28px; }
.about-copy > p:not(.about-role):not(.kicker) { color: #d0c9c2; font-size: 18px; max-width: 34em; }
.about-copy .hero-actions { margin: 30px 0 0; }

.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.path li { position: relative; padding: 26px 18px 6px 0; }
.path li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--black); border: 2px solid var(--c); }
.path time { display: block; font: 500 11px/1 var(--f-mono); color: var(--c); margin-bottom: 10px; }
.path b { display: block; font: 800 22px/1.05 var(--f-display); text-transform: uppercase; margin-bottom: 6px; }
.path span { display: block; font-size: 14.5px; color: var(--mute); }
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-2); padding-left: 22px; }
  .path li { padding: 0 0 26px; }
  .path li::before { top: 2px; left: -29px; }
}

.codes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.codes li { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(19, 17, 21, .78); }
.codes b { display: block; font: 800 24px/1 var(--f-display); text-transform: uppercase; margin-bottom: 6px; }
.codes small { font: 500 10px/1 var(--f-mono); color: var(--purple); text-transform: uppercase; letter-spacing: .06em; margin-left: 8px; vertical-align: 3px; }
.codes span { color: var(--mute); font-size: 14.5px; }
@media (max-width: 860px) { .codes { grid-template-columns: 1fr; } }

.offhours { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.offhours li { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; }
.offhours li:nth-child(4n+1) { border-color: rgba(255, 169, 94, .5); }
.offhours li:nth-child(4n+2) { border-color: rgba(166, 140, 255, .5); }
.offhours li:nth-child(4n+3) { border-color: rgba(74, 214, 136, .5); }
.offhours li:nth-child(4n+4) { border-color: rgba(255, 90, 79, .5); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .spark-line { stroke-dashoffset: 0; }
}

/* the silk band already carries its own bottom spacing */
#lifecycle { padding-bottom: 0; }
.tiles-dark { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.35); }

/* let grid children shrink below their code blocks' width */
.hero > *, .split > *, .contact > *, .two-col > *, .cards > *, .t-body > * { min-width: 0; }
.chip { max-width: 100%; }

@media (max-width: 480px) { .seg button { font-size: 13px; padding: 10px 4px; } }

@media (max-width: 480px) { .brand-name { font-size: 18px; } .brand { gap: 9px; } }
