/* ============================================================
   Page & component styles - Home, Stack, Blogs, Article, Contact
   ============================================================ */

/* ---------- Domain / focus blocks ---------- */
.focus-row { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(24px,4vw,56px); align-items: center; }
/* ---------- Stack console (technologies page) ---------- */
.console {
  border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.console-top {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.search-field { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.search-field svg { position: absolute; left: 15px; width: 17px; height: 17px; color: var(--text-mute); pointer-events: none; }
.search-field input {
  width: 100%; padding: 12px 84px 12px 44px; border-radius: var(--r-pill);
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: .93rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.search-field input::placeholder { color: var(--text-mute); }
.search-field input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.kbd {
  position: absolute; right: 12px; display: flex; gap: 4px; pointer-events: none;
}
.kbd b {
  font-family: var(--ff-mono); font-size: .66rem; font-weight: 500; color: var(--text-mute);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; background: var(--surface);
}
.console-count { font-family: var(--ff-mono); font-size: .76rem; color: var(--text-mute); white-space: nowrap; }

.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 14px 20px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.filter-bar::-webkit-scrollbar { height: 4px } .filter-bar::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px }
.f-chip {
  flex: none; padding: 8px 15px; border-radius: var(--r-pill); font-family: var(--ff-mono); font-size: .75rem;
  border: 1px solid var(--line); background: var(--bg); color: var(--text-dim);
  transition: all .28s var(--ease); display: inline-flex; align-items: center; gap: 8px;
}
.f-chip em { font-style: normal; opacity: .55; font-size: .9em; }
.f-chip:hover { border-color: var(--line-2); color: var(--text); }
.f-chip[aria-pressed="true"] { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.f-chip[aria-pressed="true"] em { opacity: .7 }

.stack-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 1px; background: var(--line); padding: 1px;
}
.tech {
  background: var(--surface); padding: 18px; position: relative; overflow: hidden;
  transition: background .3s var(--ease), transform .3s var(--ease-out);
  animation: techIn .45s var(--ease-out) both;
}
@keyframes techIn { from { opacity: 0; transform: scale(.96) } }
.tech:hover { background: var(--surface-2); z-index: 2; }
.tech b { font-family: var(--ff-display); font-size: .98rem; font-weight: 600; letter-spacing: -.015em; display: block; }
.tech p { font-size: .8rem; color: var(--text-mute); margin-top: 8px; line-height: 1.6; }
.tech .cat { font-family: var(--ff-mono); font-size: .62rem; color: var(--text-mute); letter-spacing: .1em; text-transform: uppercase; margin-top: 12px; display: block; opacity: .7; }
.tech::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.tech:hover::before { transform: scaleX(1); }

.console-empty { padding: 60px 24px; text-align: center; color: var(--text-mute); font-family: var(--ff-mono); font-size: .9rem; background: var(--surface); }
.console-empty b { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 8px; font-family: var(--ff-display); }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(18px, 2.4vw, 26px); }
.post {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; height: 100%;
  transition: transform .45s var(--ease-out), border-color .35s var(--ease), box-shadow .45s var(--ease);
  animation: techIn .5s var(--ease-out) both;
}
.post:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.post-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
/* The artwork carries text, so it is never cropped: the image is contained and a
   blurred copy of itself fills the frame behind it instead of a dead grey band. */
.post-thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--thumb); background-size: cover; background-position: center;
  filter: blur(30px) saturate(1.35); transform: scale(1.25); opacity: .5;
}
.post-thumb::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 34%, transparent), transparent 34%, color-mix(in srgb, var(--bg) 24%, transparent));
}
.post-thumb img {
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: contain;
  transition: opacity .5s var(--ease), filter .5s var(--ease);
}
.post:hover .post-thumb img { filter: brightness(1.06) saturate(1.05); }
.post-thumb .cat-tag {
  position: absolute; left: 12px; top: 12px; z-index: 3;
  padding: 5px 12px; border-radius: var(--r-pill); font-family: var(--ff-mono); font-size: .66rem;
  letter-spacing: .06em; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px); border: 1px solid var(--line-2); color: var(--text);
}
.post-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 11px; }
.post-meta { display: flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: .7rem; color: var(--text-mute); letter-spacing: .04em; }
.post-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-mute); display: block; }
.post h3 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -.02em; transition: color .3s var(--ease); }
.post:hover h3 { color: var(--accent-text); }
.post p { font-size: .875rem; color: var(--text-dim); line-height: 1.65; flex: 1; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags span { font-family: var(--ff-mono); font-size: .64rem; color: var(--text-mute); padding: 3px 9px; border-radius: var(--r-pill); border: 1px solid var(--line); }
.post-more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-mono); font-size: .74rem; color: var(--accent-text); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.post-more svg { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.post:hover .post-more svg { transform: translateX(4px); }

/* Featured post (wide) */
.post-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); }
.post-feature .post-thumb { aspect-ratio: 16/9; height: auto; align-self: center; border-bottom: 0; border-right: 1px solid var(--line); }
.post-feature .post-body { padding: clamp(22px, 3vw, 36px); justify-content: center; }
.post-feature h3 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.post-feature p { font-size: .96rem; flex: none; }
@media (max-width: 780px) {
  .post-feature { grid-template-columns: 1fr; }
  .post-feature .post-thumb { aspect-ratio: 16/9; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Blog toolbar */
.blog-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.blog-toolbar .search-field { max-width: 380px; }
.blog-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }

/* ---------- Newsletter ---------- */
.subscribe {
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(700px circle at 12% 0%, var(--accent-soft), transparent 55%),
    radial-gradient(600px circle at 92% 100%, var(--violet-soft), transparent 55%),
    var(--surface);
  text-align: center;
}
.sub-form { display: flex; gap: 10px; max-width: 480px; margin: 26px auto 0; flex-wrap: wrap; }
.sub-form input {
  flex: 1 1 220px; padding: 14px 20px; border-radius: var(--r-pill);
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
}
.sub-form input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.contact-card {
  display: flex; gap: 16px; padding: 20px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); transition: all .35s var(--ease);
}
.contact-card:hover { border-color: var(--accent-line); transform: translateX(4px); }
.contact-card .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.contact-card .ci svg { width: 19px; height: 19px; }
.contact-card b { display: block; font-family: var(--ff-display); font-size: .98rem; margin-bottom: 3px; }
.contact-card span { font-size: .87rem; color: var(--text-dim); word-break: break-word; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3.4vw, 40px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 9px; }
.field label .req { color: var(--accent-text); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: var(--r-md);
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: .95rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field.err input, .field.err textarea { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255,122,144,.12); }
.field .msg { display: none; margin-top: 7px; font-size: .78rem; color: var(--rose); font-family: var(--ff-mono); }
.field.err .msg { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr } .contact-grid { grid-template-columns: 1fr } }

.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

.form-status { display: none; align-items: flex-start; gap: 12px; padding: 15px 18px; border-radius: var(--r-md); margin-bottom: 20px; font-size: .9rem; }
.form-status.show { display: flex; animation: techIn .4s var(--ease-out); }
.form-status.ok { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-text); }
.form-status.bad { background: rgba(255,122,144,.1); border: 1px solid rgba(255,122,144,.35); color: var(--rose); }
.form-status svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; text-align: left; font-family: var(--ff-display); font-size: 1.03rem; font-weight: 600;
  letter-spacing: -.015em; transition: color .3s var(--ease);
}
.faq-q:hover { color: var(--accent-text); }
.faq-q .ic { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: all .35s var(--ease); position: relative; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.faq-q .ic::before { width: 11px; height: 1.5px; }
.faq-q .ic::after { width: 1.5px; height: 11px; }
.faq-item.open .faq-q { color: var(--accent-text); }
.faq-item.open .ic { border-color: var(--accent-line); background: var(--accent-soft); }
.faq-item.open .ic::after { transform: scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 4px 24px; color: var(--text-dim); font-size: .93rem; max-width: 72ch; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line);
  background: radial-gradient(900px circle at 20% 0%, var(--accent-soft), transparent 55%), var(--surface);
  padding: clamp(32px, 5vw, 68px); text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .8; pointer-events: none;
}
.cta-band > * { position: relative; }

/* ---------- Hero panel: delivery loop ---------- */
.panel-steps { display: flex; flex-direction: column; }
.panel-step {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 13px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.panel-step:last-child { border-bottom: 0; }
.panel-step i { font-style: normal; color: var(--accent-text); font-size: .72rem; flex: none; width: 20px; }
.panel-step b { font-weight: 500; color: var(--text); font-size: .84rem; flex: none; min-width: 84px; }
.panel-step span { color: var(--text-mute); font-size: .78rem; flex: 1 1 160px; }

/* ---------- Pipeline visual ---------- */
.pipeline { position: relative; padding-left: 38px; }
.pipeline::before {
  content: ""; position: absolute; left: 14px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--violet), var(--aqua));
  opacity: .4; border-radius: 2px;
}
.pipeline::after {
  content: ""; position: absolute; left: 11px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: flow 5.5s var(--ease) infinite;
}
@keyframes flow {
  0% { top: 8px; opacity: 0 }
  8% { opacity: 1 }
  88% { opacity: 1 }
  100% { top: calc(100% - 16px); opacity: 0 }
}
.pl-step { position: relative; padding-bottom: 26px; }
.pl-step:last-child { padding-bottom: 0; }
.pl-step::before {
  content: ""; position: absolute; left: -31px; top: 5px; width: 14px; height: 14px;
  border-radius: 4px; transform: rotate(45deg);
  background: var(--surface); border: 2px solid var(--accent-line);
}
.pl-step b { display: block; font-family: var(--ff-display); font-size: 1.02rem; letter-spacing: -.02em; margin-bottom: 4px; }
.pl-step span { display: block; font-size: .89rem; color: var(--text-dim); line-height: 1.65; }
@media (prefers-reduced-motion: reduce) { .pipeline::after { display: none } }

/* ---------- Split feature block ---------- */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.split > div { background: var(--surface); padding: clamp(22px, 3vw, 32px); transition: background .35s var(--ease); }
.split > div:hover { background: var(--surface-2); }
.split .tag {
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text); display: block; margin-bottom: 14px;
}
.split h3 { font-size: 1.1rem; margin-bottom: 10px; }
.split p { font-size: .91rem; color: var(--text-dim); line-height: 1.7; }

/* ---------- Spotlight band ---------- */
.spotlight {
  position: relative; overflow: hidden;
  border: 1px solid var(--accent-line); border-radius: var(--r-xl);
  background: radial-gradient(760px circle at 8% 0%, var(--accent-soft), transparent 58%),
              radial-gradient(560px circle at 96% 110%, var(--violet-soft), transparent 58%),
              var(--surface);
  padding: clamp(26px, 3.6vw, 44px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 40px); align-items: center;
}
@media (max-width: 760px) { .spotlight { grid-template-columns: 1fr } }
.spotlight h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: 14px 0 10px; }
.spotlight p { color: var(--text-dim); font-size: .95rem; max-width: 62ch; }
.spotlight .models { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ---------- Reading list ---------- */
.readlist { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.readlist a {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px;
  background: var(--surface); padding: 18px 22px; transition: background .3s var(--ease);
}
.readlist a:hover { background: var(--surface-2); }
.readlist .n { font-family: var(--ff-mono); font-size: .72rem; color: var(--text-mute); }
.readlist b { font-family: var(--ff-display); font-size: 1rem; font-weight: 600; letter-spacing: -.02em; display: block; }
.readlist small { font-family: var(--ff-mono); font-size: .7rem; color: var(--text-mute); display: block; margin-top: 4px; }
.readlist svg { width: 16px; height: 16px; color: var(--text-mute); transition: transform .35s var(--ease-out), color .3s var(--ease); }
.readlist a:hover svg { transform: translateX(4px); color: var(--accent-text); }
.readlist a:hover b { color: var(--accent-text); }
@media (max-width: 560px) { .readlist a { grid-template-columns: auto minmax(0,1fr); } .readlist svg { display: none } }

/* ---------- Selector: list + detail, replaces a grid of tool cards ---------- */
.selector {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 76px); align-items: start;
}
@media (max-width: 940px) { .selector { grid-template-columns: 1fr; gap: 30px; } }

.sel-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sel-item {
  position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: baseline; gap: 14px; width: 100%; text-align: left;
  padding: 17px 6px 17px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .45s var(--ease-out), background .3s var(--ease);
}
.sel-item::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 2px;
  background: var(--accent); transform: scaleY(0); transform-origin: center;
  transition: transform .45s var(--ease-out);
}
.sel-item .n { font-family: var(--ff-mono); font-size: .7rem; color: var(--text-mute); transition: color .35s var(--ease); }
.sel-item b {
  font-family: var(--ff-display); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(1.05rem, 2.1vw, 1.4rem); color: var(--text-dim);
  transition: color .35s var(--ease);
}
.sel-item em {
  font-style: normal; font-family: var(--ff-mono); font-size: .63rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--text-mute);
  opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--ease), transform .4s var(--ease-out);
}
.sel-item:hover b { color: var(--text); }
@media (min-width: 941px) {
  .sel-item:hover { background: linear-gradient(90deg, var(--accent-soft), transparent 55%); }
  .sel-item:hover em { opacity: 1; transform: none; }
}
.sel-item[aria-selected="true"] { padding-left: 18px; }
.sel-item[aria-selected="true"]::before { transform: scaleY(1); }
.sel-item[aria-selected="true"] b { color: var(--accent-text); }
.sel-item[aria-selected="true"] .n { color: var(--accent-text); }
.sel-item[aria-selected="true"] em { opacity: 1; transform: none; }

.sel-detail { position: relative; min-height: 300px; }
.sel-pane { display: none; }
.sel-pane.on { display: block; animation: paneIn .34s var(--ease-out) both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } }
.sel-pane .p-role {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 18px;
}
.sel-pane .p-role::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.sel-pane h3 { font-size: clamp(1.6rem, 3.8vw, 2.4rem); letter-spacing: -.04em; margin-bottom: 16px; }
.sel-pane p { color: var(--text-dim); font-size: 1rem; line-height: 1.8; max-width: 58ch; }
.sel-pane ul { display: flex; flex-direction: column; gap: 11px; margin-top: 26px; }
.sel-pane li { position: relative; padding-left: 24px; font-size: .93rem; color: var(--text-dim); }
.sel-pane li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px;
  border-radius: 2px; background: var(--accent); transform: rotate(45deg);
}
.sel-pane .p-foot {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--ff-mono); font-size: .76rem; color: var(--text-mute);
}
.sel-pane.rule .p-role { color: var(--rose); }
.sel-pane.rule .p-role::before { background: var(--rose); }
.sel-pane.rule li::before { background: var(--rose); }

/* ============================================================
   Domain experience — tiles + dossiers
   ============================================================ */

/* ---------- Tiles: compact domain summary ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.tiles > * {
  position: relative; padding: clamp(22px, 2.4vw, 30px) clamp(18px, 2vw, 26px);
  border-left: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease);
}
.tiles > *:first-child { border-left: 0; padding-left: 0; }
.tiles > *::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--accent-soft), transparent 70%);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease-out);
}
a.tile:hover::before { transform: scaleY(1); }
.tile-n {
  font-family: var(--ff-mono); font-size: .72rem; color: var(--text-mute);
  letter-spacing: .12em; display: block;
}
.tile-domain {
  display: block; margin-top: 14px; font-family: var(--ff-mono); font-size: .63rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--accent-text);
}
.tiles h3 { font-size: 1.04rem; margin: 9px 0 8px; letter-spacing: -.02em; }
.tiles p { font-size: .85rem; color: var(--text-dim); line-height: 1.65; }
.tile-meta {
  display: block; margin-top: 14px; font-family: var(--ff-mono);
  font-size: .68rem; color: var(--text-mute); letter-spacing: .06em;
}
.tile-meta em { font-style: normal; color: var(--accent-text); }
a.tile { display: block; }
a.tile:hover h3 { color: var(--accent-text); }

/* ---------- Dossier: one project ---------- */
.dossier {
  display: grid; grid-template-columns: clamp(90px, 11vw, 150px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 46px);
  padding-block: clamp(44px, 6vw, 76px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 28px);
}
.dossier:first-of-type { border-top: 0; padding-top: clamp(20px, 3vw, 34px); }

/* The numeral fills from the bottom as the block scrolls into view */
.dsr-rail { position: relative; }
.dsr-index {
  position: sticky; top: calc(var(--nav-h) + 36px); display: block;
  font-family: var(--ff-display); font-weight: 700; line-height: .9;
  font-size: clamp(3rem, 7.5vw, 5.6rem); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-2);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 0%;
  -webkit-background-clip: text; background-clip: text;
  transition: background-size 1.2s var(--ease-out) .15s;
}
.dossier.in .dsr-index { background-size: 100% 100%; }

.dsr-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-family: var(--ff-mono); font-size: .72rem; color: var(--text-mute);
  letter-spacing: .06em;
}
.dsr-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-mute); display: block; }
.dsr-domain {
  color: var(--accent-text); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem;
}
.dsr-live {
  display: inline-flex; align-items: center; gap: 7px; margin-left: auto;
  padding: 4px 11px; border-radius: var(--r-pill);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-text); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
}
.dossier h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem); letter-spacing: -.035em;
  margin: 16px 0 14px;
}
.dsr-lead {
  font-family: var(--ff-display); font-size: clamp(1rem, 1.9vw, 1.2rem);
  line-height: 1.55; letter-spacing: -.015em; color: var(--text); max-width: 60ch;
}

.dsr-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(24px, 3.5vw, 52px); margin-top: clamp(24px, 3vw, 36px);
}
.dsr-narrative p { color: var(--text-dim); font-size: .96rem; line-height: 1.78; }
.dsr-narrative p + p { margin-top: 1.05em; }

.dsr-signals {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px; margin-top: 28px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.dsr-signals > div { background: var(--surface); padding: 14px 16px; }
.dsr-signals span {
  display: block; font-family: var(--ff-mono); font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute);
}
.dsr-signals b {
  display: block; margin-top: 6px; font-family: var(--ff-display);
  font-size: .95rem; font-weight: 600; letter-spacing: -.02em; color: var(--text);
}

.dsr-scope h4 {
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-mute); font-weight: 500;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.dsr-scope ul { display: flex; flex-direction: column; }
.dsr-scope li {
  position: relative; padding: 11px 0 11px 20px; font-size: .89rem;
  color: var(--text-dim); line-height: 1.55; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateX(-8px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms + .2s);
}
.dossier.in .dsr-scope li { opacity: 1; transform: none; }
.dsr-scope li::before {
  content: ""; position: absolute; left: 0; top: 1.15em;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent); transform: rotate(45deg);
}

.dsr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(22px, 3vw, 32px); }
.dsr-tags span {
  padding: 7px 14px; border-radius: var(--r-pill);
  font-family: var(--ff-mono); font-size: .71rem; letter-spacing: .04em;
  border: 1px solid var(--line); color: var(--text-dim); background: var(--surface);
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), border-color .3s var(--ease), color .3s var(--ease);
  transition-delay: calc(var(--i) * 55ms + .35s);
}
.dossier.in .dsr-tags span { opacity: 1; transform: none; }
.dsr-tags span:hover { border-color: var(--accent-line); color: var(--accent-text); }

@media (prefers-reduced-motion: reduce) {
  .dsr-index { background-size: 100% 100%; transition: none; }
  .dsr-scope li, .dsr-tags span { opacity: 1; transform: none; transition: none; }
}
