/* Arhitecți Asociați — one stylesheet.
   Breakpoints (same as the old site): phone < 810, tablet 810–1199, desktop 1200–1799, large ≥ 1800.
   1rem = 18px (24px on large screens); spacing between columns is always 20px. */

@font-face { font-family: "NHG"; src: url(/assets/fonts/NHGText-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "NHG"; src: url(/assets/fonts/NHGText-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "NHG"; src: url(/assets/fonts/NHGText-Medium.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "NHG"; src: url(/assets/fonts/NHGText-Bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #fff; --fg: #000; --mut: rgb(153, 166, 158); --line: #000; --hover: rgb(232, 232, 232);
  --news: rgb(76, 99, 85); --dot: rgb(51, 77, 61); --orange: rgb(255, 79, 0);
  --pad: 20px; --gap: 20px;
  color-scheme: light;
}
html[data-theme="dark"] { --bg: rgb(23, 23, 23); --fg: #fff; --mut: rgb(127, 144, 134); --line: #fff; --hover: rgb(77, 77, 77); --news: rgb(102, 121, 109); --dot: rgb(153, 166, 158); color-scheme: dark; }
@media (prefers-color-scheme: dark) { html:not([data-theme]) { --bg: rgb(23, 23, 23); --fg: #fff; --mut: rgb(127, 144, 134); --line: #fff; --hover: rgb(77, 77, 77); --news: rgb(102, 121, 109); --dot: rgb(153, 166, 158); color-scheme: dark; } }
body.green { --bg: rgb(0, 33, 13); --fg: #fff; --line: #fff; --mut: rgb(153, 166, 158); --hover: rgb(25, 55, 37); --dot: #fff; }
html[data-theme="dark"] body.green { --bg: rgb(23, 23, 23); }
@media (prefers-color-scheme: dark) { html:not([data-theme]) body.green { --bg: rgb(23, 23, 23); } }

html { font-size: 18px; -webkit-text-size-adjust: 100%; }
@media (min-width: 1800px) { html { font-size: 24px; } }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "NHG", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.2; letter-spacing: -0.02em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: background-color .2s, color .2s; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; padding: 0; font-weight: 400; font-size: inherit; }
ul { list-style: none; }
sup { font-size: 0.667em; font-weight: 500; line-height: 0; vertical-align: 0.55em; letter-spacing: -0.02em; margin-left: .02em; }
.mut { color: var(--mut); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); padding: 0 var(--pad); }
.span2 { grid-column: span 2; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }

/* ---------- news bar ---------- */
.news { background: var(--news); color: #fff; font-size: .8rem; line-height: 20px; letter-spacing: 0; }
.news-bar { position: relative; display: flex; align-items: center; height: 27px; padding: 0 44px 0 var(--pad); overflow: hidden; transition: height .35s cubic-bezier(.22,1,.36,1), opacity .35s; }
.news-bar.gone { height: 0; opacity: 0; }
.news-track { display: flex; white-space: nowrap; min-width: 0; }
.news-bar.run .news-track { animation: tick var(--dur, 40s) linear infinite; padding-left: 0; }
.news-bar.run:hover .news-track { animation-play-state: paused; }
.news-bar.run .news-item { padding-right: 2.2em; }
.news-bar.run { padding-left: 0; }
.news .sep { padding: 0 .25em; }
.news a:hover { text-decoration: underline; }
.news-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; color: #fff; background: var(--news); }
.news-x::before { content: ""; position: absolute; right: 100%; top: 0; bottom: 0; width: 24px; background: linear-gradient(90deg, transparent, var(--news)); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (min-width: 1800px) { .news-bar { height: 28px; } }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); padding: 16px 0 16px; transition: background-color .2s; }
.nav-row { align-items: center; height: 40px; }
@media (min-width: 1800px) { .nav-row { height: 2.22rem; } }
.nav-title a, .nav-links a { line-height: 1.2; }
.nav-links { display: flex; justify-content: space-between; align-items: center; }
.logo { position: relative; display: block; width: 2.28rem; height: 2.22rem; color: var(--fg); }
.logo-sym { position: absolute; inset: 0; transition: opacity .3s, transform .4s cubic-bezier(.22,1,.36,1); }
.logo-sym svg { width: 100%; height: 100%; }
.logo-dot { position: absolute; left: 0; top: 50%; width: 1rem; height: 1rem; margin-top: -.5rem; border-radius: 50%; background: var(--dot); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s cubic-bezier(.22,1,.36,1); }
.scrolled .logo-sym { opacity: 0; transform: scale(.4) rotate(-45deg); }
.scrolled .logo-dot { opacity: 1; transform: none; }
.theme { position: relative; width: 36px; height: 20px; border-radius: 10px; background: var(--mut); box-shadow: rgba(0,0,0,.06) 0 1px 3px; transition: background .2s; flex: none; }
.theme .knob { position: absolute; top: 2px; left: 18px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: rgba(0,0,0,.1) 0 1px 4px; display: grid; place-items: center; color: #000; transition: left .2s cubic-bezier(.4,1.2,.6,1); }
.theme .moon { display: none; }
html[data-theme="dark"] .theme .knob { left: 2px; }
html[data-theme="dark"] .theme .sun { display: none; }
html[data-theme="dark"] .theme .moon { display: inline; }
@media (prefers-color-scheme: dark) { html:not([data-theme]) .theme .knob { left: 2px; } html:not([data-theme]) .theme .sun { display: none; } html:not([data-theme]) .theme .moon { display: inline; } }
.nav-title a:hover, .nav-links a:hover, .foot a:hover, .tbl a:hover { color: var(--mut); }

/* ---------- bilingual paragraphs ---------- */
.bi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
.bi-tabs { display: none; }
.lbl { display: block; font-size: .8rem; line-height: 1; letter-spacing: 0; margin-bottom: 9.6px; }
.txt { line-height: 1.1; }
.txt p.ind { text-indent: 2.65em; }
.txt p.gap { margin-top: 1.1em; }
.txt a { color: var(--mut); }
.txt a:hover { color: var(--fg); }
.big .txt { font-size: 1.3rem; }
.small .txt { font-size: .889rem; line-height: 1.2; }
.bi.stack { grid-template-columns: 1fr; row-gap: 19px; }

/* ---------- home ---------- */
.intro { padding-top: 10px; }
.stats { margin-top: 42px; }
.stat-v { font-size: 1.3rem; line-height: 1.1; }
.stat-ro, .stat-en { line-height: 1.1; }
.stat-en { color: var(--mut); }
.cards { margin-top: 21px; row-gap: 20px; }
.card { display: block; }
.card-img { width: 100%; aspect-ratio: 453 / 550; object-fit: cover; background: var(--hover); }
.card-t { display: block; margin-top: 5px; line-height: 1.1; }
.card-p { display: block; line-height: 1.1; color: var(--mut); }
.card:hover .card-t { color: var(--mut); }

/* reveal on scroll (same as the old fade-in) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .news-bar.run .news-track { animation: none; } * { scroll-behavior: auto !important; } }

/* ---------- index ---------- */
.index { position: relative; margin: 40px var(--pad) 0; border-top: 1px solid var(--line); padding-top: 4px; }
.index .grid3 { padding: 0; }
.idx-h { font-size: 1.3rem; line-height: 1.1; }
.chips { margin-top: 11px; }
.chip { display: flex; align-items: center; gap: 7px; line-height: 1.1; padding: 3px 0; cursor: pointer; width: max-content; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip .ring { width: 13px; height: 13px; border: 1.5px solid var(--fg); border-radius: 50%; flex: none; transition: background .15s; }
.chip input:checked + .ring { background: var(--fg); }
.chip:hover .ring { background: var(--mut); border-color: var(--mut); }
.chip input:focus-visible + .ring { outline: 1px solid var(--fg); outline-offset: 2px; }
.filters { margin-top: 21px; }
.fld .lbl { margin-bottom: 6px; }
.inp { position: relative; display: flex; align-items: center; height: 40px; border: 1px solid var(--mut); border-radius: 8px; padding: 0 12px; color: var(--mut); }
.inp svg { flex: none; }
.inp input, .inp select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 14px; letter-spacing: 0; outline: none; padding: 0 0 0 12px; -webkit-appearance: none; appearance: none; }
.inp select { padding: 0; cursor: pointer; color: var(--mut); }
.inp select.set { color: var(--fg); }
.inp input::placeholder { color: var(--mut); }
.inp:focus-within { border-color: var(--fg); }
.inp input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sel svg { position: absolute; right: 12px; pointer-events: none; }
.thead, .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.thead { margin-top: 25px; border-bottom: 1px solid var(--line); line-height: 1.2; }
.thead .c-y, .row .c-y { justify-self: end; }
.thead .c-f, .row .c-f { grid-column: 3; grid-row: 1; }
.thead .c-y, .row .c-y { grid-column: 3; grid-row: 1; }
.row { padding: 4px 0 3px; border-bottom: 1px solid var(--line); line-height: 1.2; transition: background .12s; }
.row .c-p { color: var(--mut); }
.row:hover { background: var(--hover); }
.c-y .dash { padding: 0 .15em; }
.rows li.hide { display: none; }
.empty { padding: 8px 0; color: var(--mut); }
.peek { position: absolute; z-index: 5; right: 130px; width: 200px; aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; opacity: 0; transition: opacity .15s; }
.peek.on { opacity: 1; }
@media (min-width: 1800px) { .peek { width: 266px; right: 172px; } }

/* ---------- footer ---------- */
.foot { padding-top: 9px; padding-bottom: 30px; line-height: 1.2; }
.foot .grid3 { align-items: start; }
.foot-3 { display: flex; justify-content: space-between; }
.foot-sig { text-align: left; }
.odot { display: inline-block; width: .42rem; height: .42rem; border-radius: 50%; background: var(--orange); margin-right: .15rem; vertical-align: .08em; }
.admin-link { padding-left: .57rem; }
.foot-logo { margin-top: 18px; align-items: end; }
.foot-sym { display: block; width: 4.45rem; color: var(--fg); margin-bottom: 4px; }
.foot-sym svg { width: 100%; height: auto; display: block; }
.foot-word { grid-column: span 2; }
.foot-word { font-size: calc((100vw - 2 * var(--pad) - 2 * var(--gap)) / 3 * 2 * .1319 + var(--gap) * .1319); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; margin-left: -.05em; line-height: 1.18; }

/* ---------- project page ---------- */
.proj { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); padding: 19px var(--pad) 0; align-items: start; }
.proj-side { position: relative; }
.proj-h { font-size: 1.8rem; line-height: 1.1; letter-spacing: -0.03em; }
.proj-h span { display: block; }
.tbl { margin-top: 28px; border-bottom: 1px solid var(--line); }
.tbl > div { display: grid; grid-template-columns: 115px minmax(0, 1fr); border-top: 1px solid var(--line); padding: 2px 0 3px; }
.tbl dt { font-size: .8rem; line-height: 1; padding-top: 3px; letter-spacing: 0; }
.tbl dd { line-height: 1.2; }
.tbl dd a { color: var(--mut); }
.proj .bi { margin-top: 30px; }
.proj-gal { grid-column: span 2; }
.gal { display: flex; flex-direction: column; gap: 20px; }
.g-row { display: flex; gap: 20px; align-items: flex-start; }
.g-row > * { flex: 1 1 0; min-width: 0; }
.g-col { display: flex; flex-direction: column; gap: 20px; }
.g-it { margin: 0; }
.g-btn { display: block; width: 100%; cursor: zoom-in; }
.g-btn img { width: 100%; height: 100%; object-fit: cover; }
.g-row.pair .g-btn { height: 100%; }
.gal.lone .g-it { width: calc(50% - 10px); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: var(--bg); color: var(--fg); display: grid; grid-template-rows: auto 1fr; opacity: 0; transition: opacity .25s; }
.lb.on { opacity: 1; }
.lb-bar { display: flex; justify-content: space-between; padding: 16px var(--pad); line-height: 1.2; }
.lb-bar .nav2 { display: flex; gap: 20px; }
.lb-bar button:hover { color: var(--mut); }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 var(--pad) 20px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-hit { position: absolute; top: 0; bottom: 0; width: 50%; cursor: w-resize; }
.lb-hit.r { right: 0; cursor: e-resize; }
.lb-hit.l { left: 0; }
.no-scroll { overflow: hidden; }

/* ---------- lab / cer_ce_tare ---------- */
.pg-head { padding-top: 19px; }
.big-t { font-size: 1.8rem; line-height: 1.1; letter-spacing: -0.03em; }
.p-lab .pg-head .bi { padding-top: 0; }
.tiles { margin-top: 46px; row-gap: 20px; align-items: start; }
.tile { margin: 0; }
.tile img, .tile .vid { width: 100%; }
.vid { position: relative; background: #000; overflow: hidden; }
.vid iframe, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.tile figcaption { margin-top: 5px; font-size: 1.3rem; line-height: 1.1; }
.tile a:hover figcaption { color: var(--mut); }
.p-cct .tile figcaption { font-size: .8rem; line-height: 1; letter-spacing: 0; margin-top: 8px; }
.p-cct .cct-head { padding-bottom: 0; }
.p-cct .sec { margin-top: 46px; }
.p-cct .cct-head + .sec { margin-top: 41px; }
.p-cct .tiles { margin-top: 23px; }
.sec-h { font-size: 1.8rem; line-height: 1.1; letter-spacing: -0.03em; }
.sec-h span { display: block; }
.p-cct .sec .tbl { margin-top: 0; }
.p-cct .sec .tbl dd { white-space: normal; }

/* ---------- info ---------- */
.p-info .sec-h { font-size: 1rem; line-height: 1.1; letter-spacing: -0.02em; }
.row-sec { padding-top: 28px; line-height: 1.1; }
.row-sec.ruled { margin-top: 30px; padding-top: 10px; position: relative; }
.row-sec.ruled::before { content: ""; position: absolute; left: var(--pad); right: var(--pad); top: 0; border-top: 1px solid var(--line); }
.p-info .stats { margin-top: 42px; }
.charts { padding: 0 var(--pad); margin-top: 10px; }
.ch-t { line-height: 1.1; margin-top: 10px; }
.ch-t span { display: block; }
.chart { display: flex; margin-top: 10px; height: 14.6rem; }
.bar { display: flex; flex-direction: column; min-width: 0; }
.bar .fill { position: relative; flex: 1; background: var(--c); color: #000; overflow: hidden; }
.vlab { position: absolute; left: 3px; bottom: 2px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.4rem; line-height: 1; white-space: nowrap; }
.pct { display: block; height: 22px; margin-top: 5px; line-height: 1.2; white-space: nowrap; }
.chart:not(.mix) { height: calc(14.6rem + 27px); }
.chart.mix { height: 10rem; margin-top: 15px; }
.bigpct { position: absolute; right: 8px; bottom: -.12em; font-size: 4rem; line-height: 1.1; letter-spacing: -0.03em; }

/* team */
.team { margin-top: 40px; padding-top: 10px; position: relative; }
.team::before { content: ""; position: absolute; left: var(--pad); right: var(--pad); top: 0; border-top: 1px solid var(--line); }
.members { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.member .ph { aspect-ratio: 453 / 550; background: var(--hover); overflow: hidden; }
.member img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.member figcaption { margin-top: 5px; line-height: 1.1; }
.member figcaption span { display: block; }
.former { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 10px; }
.former h3 { font-size: 1.3rem; line-height: 1.1; }
.former ul { margin-top: 12px; columns: 2; column-gap: 20px; line-height: 1.2; }

/* 404 */
.nf { padding-top: 60px; min-height: 40vh; }
.nf .big { font-size: 1.3rem; line-height: 1.1; margin-top: 20px; }
.nf p + p { margin-top: 20px; }

/* ---------- tablet ---------- */
@media (max-width: 1199.98px) {
  .members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .peek { display: none; }
  .bi.big .txt { font-size: 1.3rem; }
  .intro .bi { grid-column: 2 / span 2; }
}

/* ---------- phone ---------- */
@media (max-width: 809.98px) {
  :root { --pad: 16px; }
  .news-bar { padding-right: 40px; }
  .grid3, .proj { grid-template-columns: minmax(0, 1fr); }
  .span2, .proj-gal, .foot-word, .intro .bi { grid-column: auto; }
  .nav { padding: 16px 0 16px; }
  .nav-row { display: flex; gap: 12px; }
  .nav-title { flex: 1; }
  .nav-links { gap: 15px; justify-content: flex-end; }
  .intro-sp { display: none; }
  .intro { padding-top: 14px; }
  .bi { grid-template-columns: 1fr; }
  .bi-tabs { display: flex; gap: 10px; font-size: .8rem; line-height: 1; letter-spacing: 0; margin-bottom: 10.6px; }
  .bi-tabs button { color: var(--mut); }
  .bi-tabs button.on { color: var(--fg); }
  .bi .lbl { display: none; }
  .bi .bi-en { display: none; }
  .bi.en .bi-en { display: block; }
  .bi.en .bi-ro { display: none; }
  .bi.stack .lbl { display: none; }
  .stats { margin-top: 22px; row-gap: 13px; }
  .cards { margin-top: 22px; row-gap: 25px; }
  .index { margin-top: 30px; }
  .chips > div + div { margin-top: 0; }
  .filters { row-gap: 14px; }
  .chips { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(8, auto); grid-auto-flow: column; column-gap: 12px; }
  .chips > div { display: contents; }
  .filters .fld:nth-child(3) { display: none; }
  .thead { grid-template-columns: 1fr 1fr; column-gap: 12px; font-size: .8rem; letter-spacing: 0; margin-top: 22px; }
  .thead .c-f, .thead .c-y { display: none; }
  .row { grid-template-columns: 1fr 1fr; column-gap: 12px; padding: 4px 0 3px; }
  .row .c-f, .row .c-y { display: none; }
  .foot-3 { margin-top: 16px; }
  .foot .foot-row > div + div { margin-top: 16px; }
  .foot-logo { margin-top: 40px; row-gap: 16px; }
  .foot-word { font-size: calc((100vw - 2 * var(--pad)) * .1319); }
  .proj { padding-top: 14px; row-gap: 30px; }
  .bi.stack { row-gap: 0; }
  .gal.lone .g-it { width: 100%; }
  .tiles { margin-top: 30px; row-gap: 25px; }
  .p-cct .sec { margin-top: 36px; row-gap: 16px; }
  .p-info .sec-h { font-size: 1rem; }
  .row-sec { row-gap: 12px; }
  .chart { height: 11rem; }
  .chart:not(.mix) { height: calc(11rem + 27px); }
  .pct { font-size: .7rem; }
  .vlab { font-size: .8rem; line-height: 18px; left: 1px; }
  .bigpct { font-size: 1.8rem; }
  .members { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .former ul { columns: 1; }
  .team { row-gap: 16px; }
}
