/* Core Development Group — site styles
   Palette taken from Isahakyan 42's own specification:
   RAL 7016 anthracite window frames, weathered corten, poured concrete, glass/white. */

:root {
  --anthracite: #383e42;      /* RAL 7016: text, dark bands */
  --anthracite-deep: #2b3033; /* contact band, footer */
  --slate: #5e6569;           /* secondary text on light */
  --concrete: #f2f0eb;        /* alternate surface */
  --rule: #d5d9da;            /* hairlines on light */
  --white: #ffffff;
  --corten: #8e4a2a;          /* accent on light: links, fins */
  --corten-light: #d9976c;    /* accent on dark */
  --corten-a: #7b3d22;        /* fin shading */
  --corten-b: #9c5331;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Type scale (classic 6–72 scale): 14 · 16 · 18 · 21 · 24 · 36 · 48 · 60 · 72+ */
  --t-xs: 0.875rem;
  --t-s: 1rem;
  --t-body: 1.125rem;
  --t-m: 1.3125rem;
  --t-l: 1.5rem;
  --t-xl: clamp(1.75rem, 1.2rem + 2vw, 2.25rem);
  --t-2xl: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  --t-hero: clamp(2.5rem, 1.3rem + 4.6vw, 5.25rem);

  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --max: 1320px;
  --section: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--anthracite);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--corten); }

:focus-visible { outline: 2px solid var(--corten); outline-offset: 3px; }
.band--dark :focus-visible, .site-header--over :focus-visible, .hero :focus-visible { outline-color: var(--corten-light); }

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--white); color: var(--anthracite); padding: 0.75rem 1rem;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Display type: Archivo pulled narrow, echoing the vertical fins */
.display {
  font-variation-settings: "wdth" 72;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1.display { font-size: var(--t-hero); }
h2.display { font-size: var(--t-2xl); }
h3 { font-size: var(--t-l); line-height: 1.25; font-weight: 600; margin: 0; }

.lede { font-size: var(--t-m); line-height: 1.55; max-width: 38ch; margin: 0; }
.muted { color: var(--slate); }
p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  font: inherit; font-size: var(--t-s); font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid currentColor; border-radius: 0;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--corten); border-color: var(--corten); color: var(--white); }
.btn--solid:hover { background: var(--corten-a); border-color: var(--corten-a); color: var(--white); }
.btn--line { color: var(--anthracite); }
.btn--line:hover { background: var(--anthracite); color: var(--white); border-color: var(--anthracite); }
.hero .btn--line, .band--dark .btn--line { color: var(--white); }
.hero .btn--line:hover, .band--dark .btn--line:hover { background: var(--white); color: var(--anthracite); border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.brand__name { font-weight: 600; font-size: var(--t-s); line-height: 1.1; font-variation-settings: "wdth" 88; letter-spacing: 0.01em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--white);
  color: var(--anthracite);
  border-bottom: 1px solid var(--rule);
  transition: background-color .25s, color .25s, border-color .25s;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header--over { position: fixed; inset: 0 0 auto 0; background: transparent; color: var(--white); border-bottom-color: transparent; }
.site-header--over.is-solid, .site-header--over:has(.nav.is-open) { background: var(--white); color: var(--anthracite); border-bottom-color: var(--rule); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav a { text-decoration: none; font-size: var(--t-s); font-weight: 500; padding-block: 0.5rem; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .25s; }
.nav a:hover, .nav a[aria-current="page"] { color: inherit; background-size: 100% 1px; }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: none; border: 1px solid currentColor; color: inherit;
    font: inherit; font-size: var(--t-s); font-weight: 600; padding: 0.5rem 0.875rem; min-height: 2.75rem;
  }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); color: var(--anthracite);
    border-bottom: 1px solid var(--rule);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1rem; }
  .nav a { display: block; padding-block: 0.875rem; font-size: var(--t-m); border-bottom: 1px solid var(--rule); background: none; }
  .nav li:last-child a { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end;
  color: var(--white); background: var(--anthracite-deep);
  overflow: hidden; isolation: isolate;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(43,48,51,.94) 0%, rgba(43,48,51,.78) 26%, rgba(43,48,51,.35) 44%, rgba(43,48,51,0) 58%),
    linear-gradient(to bottom, rgba(43,48,51,.45) 0%, rgba(43,48,51,0) 22%);
}
.hero__content { padding-block: calc(var(--header-h) + 3rem) clamp(2.5rem, 1.5rem + 4vw, 5rem); display: grid; gap: 1.25rem; }
.hero__content .actions { margin-top: 0.5rem; }
.hero__content h1 { max-width: 17ch; }
.hero__content .lede { max-width: 50ch; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--concrete { background: var(--concrete); }
.band--dark { background: var(--anthracite-deep); color: var(--white); }
.band--dark .muted { color: #b9c0c3; }
.band--dark a:hover { color: var(--corten-light); }

.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; }
  .split > .sticky { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
}

/* Principles: a plain definition list, no numbering (they are not a sequence) */
.principles { margin: 3rem 0 0; display: grid; gap: 2rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles div { border-top: 2px solid var(--corten); padding-top: 1.25rem; }
.principles dt { font-weight: 600; font-size: var(--t-m); line-height: 1.3; margin-bottom: 0.5rem; }
.principles dd { margin: 0; color: var(--slate); font-size: var(--t-s); line-height: 1.6; }

/* ---------- Projects index ---------- */
.projects-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.projects-head p { margin: 0; }

.project { display: grid; gap: 0; grid-template-columns: 1fr; background: var(--white); }
@media (min-width: 1100px) { .project { grid-template-columns: 8fr 4fr; } }
.project__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--anthracite); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.project__media picture { height: 100%; }
@media (min-width: 1100px) { .project__media { aspect-ratio: auto; min-height: 30rem; } .project__media picture { position: absolute; inset: 0; } .project__media img { object-position: 35% 50%; } }
.project__media:hover img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .project__media img { transition: none; } .project__media:hover img { transform: none; } }
.project__body { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); display: flex; flex-direction: column; gap: 1.5rem; }
.project__title { font-size: var(--t-xl); font-variation-settings: "wdth" 72; font-weight: 560; line-height: 1.05; margin: 0; }
.project__title a { text-decoration: none; }
.project__addr { margin: 0.5rem 0 0; color: var(--slate); font-size: var(--t-s); }
.project__body .actions { margin-top: auto; }

.status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--t-xs); font-weight: 600; color: var(--corten); }
.status::before { content: ""; width: 0.5rem; height: 0.5rem; background: currentColor; }

/* Fact lists */
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; font-size: var(--t-s); }
.facts dt, .facts dd { margin: 0; padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.facts dt { color: var(--slate); padding-right: 1.5rem; }
.facts dd { font-weight: 500; }

/* ---------- Leadership ---------- */
.person { display: grid; gap: 0.5rem; }
.person__name { font-size: var(--t-2xl); font-variation-settings: "wdth" 72; font-weight: 560; line-height: 1; margin: 0; }
.person__role { font-size: var(--t-m); margin: 0; }
.person__mail { font-size: var(--t-s); margin-top: 0.75rem; }

/* ---------- Contact band with fin screen ---------- */
.contact { position: relative; overflow: hidden; }
.contact__fins {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(28vw, 360px);
  background: repeating-linear-gradient(90deg, var(--corten-a) 0 10px, var(--corten-b) 10px 16px, transparent 16px 30px);
  opacity: .9; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
          mask-image: linear-gradient(90deg, transparent, #000 45%);
}
@media (max-width: 900px) { .contact__fins { width: 100%; height: 14px; top: auto; -webkit-mask-image: none; mask-image: none; } }
.contact .wrap { position: relative; }
.contact__routes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 46rem; }
.contact__routes li { display: grid; gap: 0.25rem 2rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.18); }
@media (min-width: 640px) { .contact__routes li { grid-template-columns: 15rem 1fr; align-items: baseline; } }
.contact__routes .label { color: #b9c0c3; font-size: var(--t-s); }
.contact__routes a { font-size: var(--t-m); font-weight: 500; text-decoration: none; }
@media (max-width: 480px) { .contact__routes a, .contact__routes .value { font-size: var(--t-body); } }
.contact__routes a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--anthracite-deep); color: #b9c0c3; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--t-xs); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding-block: 2rem; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* ---------- Project page ---------- */
.crumbs { font-size: var(--t-s); color: var(--slate); margin: 0 0 1.5rem; }
.crumbs a { color: inherit; }
.page-title { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem); }
.page-title__row { display: grid; gap: 1.5rem 3rem; align-items: end; }
@media (min-width: 900px) { .page-title__row { grid-template-columns: 1fr auto; } }
.page-title h1 { font-size: var(--t-hero); }
.page-title .project__addr { font-size: var(--t-m); margin-top: 1rem; }

.feature-image { margin: 0; }
.feature-image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 45%; }
@media (max-width: 720px) { .feature-image img { aspect-ratio: 4 / 3; } }

.gallery { display: grid; gap: clamp(0.5rem, 0.3rem + 0.8vw, 1rem); grid-template-columns: repeat(6, 1fr); }
.gallery figure { margin: 0; display: flex; flex-direction: column; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.gallery figcaption { font-size: var(--t-xs); color: var(--slate); padding-top: 0.625rem; line-height: 1.45; }
.gallery .g-wide { grid-column: span 4; }
.gallery .g-tall { grid-column: span 2; }
.gallery picture { flex: 1 1 auto; min-height: 0; }
.gallery .g-tall img { aspect-ratio: auto; height: 100%; object-position: 62% 50%; }
.gallery .g-third { grid-column: span 2; }
@media (max-width: 800px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .g-wide { grid-column: span 2; }
  .gallery .g-tall, .gallery .g-third { grid-column: span 1; }
  .gallery .g-tall img { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } .gallery > * { grid-column: auto !important; } }

.floors { width: 100%; border-collapse: collapse; font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.floors caption { text-align: left; color: var(--slate); font-size: var(--t-xs); caption-side: bottom; padding-top: 1rem; }
.floors th, .floors td { text-align: left; padding: 0.875rem 1rem 0.875rem 0; border-top: 1px solid var(--rule); vertical-align: baseline; }
.floors thead th { font-weight: 500; color: var(--slate); border-top: 0; padding-top: 0; }
.floors td.num, .floors th.num { text-align: right; padding-right: 0; white-space: nowrap; }
.floors tbody th { font-weight: 600; white-space: nowrap; }
.floors .elev { color: var(--slate); white-space: nowrap; }
.floors tfoot td, .floors tfoot th { border-top: 2px solid var(--anthracite); font-weight: 600; }
@media (max-width: 560px) { .floors .elev { display: none; } }

.explore { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .explore { grid-template-columns: 7fr 5fr; } }
.explore__links { list-style: none; margin: 0; padding: 0; }
.explore__links li { border-top: 1px solid rgba(255,255,255,.18); }
.explore__links li:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.explore__links a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; text-decoration: none; font-size: var(--t-m); font-weight: 500; }
.explore__links a span { color: #b9c0c3; font-size: var(--t-s); font-weight: 400; }
.explore__links a:hover { color: var(--corten-light); }

.lease { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .lease { grid-template-columns: 1fr auto; } }

.stack-l > * + * { margin-top: 1.5rem; }
.mt-l { margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }

/* Small utilities replacing inline styles */
.m-0 { margin: 0; }
.project__body .project__title { margin-top: 0.75rem; }
.contact__routes .value { font-size: var(--t-m); font-weight: 500; }
.section--tight-top { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.table-scroll { overflow-x: auto; }

.lease .lede { max-width: 50ch; }
.display--m { font-size: var(--t-2xl); }

/* ---------- Languages ---------- */
html[lang="ru"] { --font: "Noto Sans", "Helvetica Neue", Arial, sans-serif; }
html[lang="hy"] { --font: "Noto Sans Armenian", "Noto Sans", "Helvetica Neue", Arial, sans-serif; }
html[lang="hy"] .display, html[lang="ru"] .display { font-weight: 600; letter-spacing: 0; }
html[lang="hy"] .display { line-height: 1.1; }

.header-end { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
.langs { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.langs a {
  display: inline-block; padding: 0.375rem 0.5rem; min-width: 2.75rem; text-align: center;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.02em; text-decoration: none;
  border: 1px solid transparent; opacity: 0.72;
}
.langs a:hover { opacity: 1; color: inherit; }
.langs a[aria-current="true"] { opacity: 1; border-color: currentColor; }
.nav .langs--menu { display: none; }
@media (max-width: 720px) {
  .langs--bar { display: none; }
  .nav.is-open .langs--menu { display: flex; flex-direction: row; padding: 0.25rem var(--gutter) 1.25rem; gap: 0.5rem; }
  .nav .langs--menu a { display: inline-block; font-size: var(--t-s); padding: 0.625rem 0.875rem; border: 1px solid transparent; background: none; }
  .nav .langs--menu a[aria-current="true"] { border-color: currentColor; }
}
html[lang="hy"] .hero__content h1, html[lang="ru"] .hero__content h1 { max-width: 20ch; }
@media (min-width: 900px) { .contact .split { padding-right: max(var(--gutter), min(24vw, 320px)); } }

/* Project-first release: immediate content and explicit leasing information. */
.hero__content { position: relative; }
.hero__content .lede { max-width: 43ch; }
.project-heading-actions { display: grid; gap: 1rem; }
.render-credit { padding-block: .75rem; font-size: var(--t-xs); color: var(--slate); }
.section--leadership { padding-top: 0; }
.section--leadership > .wrap { border-top: 1px solid var(--rule); padding-top: 2.5rem; }
.nav .nav-lease { color: var(--corten); }
.site-header--over:not(.is-solid) .nav .nav-lease { color: inherit; }
.map-link { display: inline-block; margin-top: .5rem; color: var(--corten); }
.floor-content { min-width: 0; }
.unit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.unit-card { padding: 1.25rem; background: var(--white); border-top: 2px solid var(--corten); }
.unit-card h3 { font-size: var(--t-s); }
.unit-card__area { font-size: clamp(1.75rem,2.5vw,2.5rem); line-height: 1.2; margin: 1rem 0 .35rem; font-variant-numeric: tabular-nums; }
.unit-card__area span { font-size: var(--t-s); }
.unit-card .muted, .unit-card__terrace { font-size: var(--t-xs); margin-bottom: 0; }
.unit-card__terrace { margin-top: .75rem; color: var(--corten); }
.area-schedule { margin-top: 2rem; border-block: 1px solid var(--rule); }
.area-schedule summary { cursor: pointer; padding-block: 1.25rem; font-weight: 600; }
.area-schedule .table-scroll { padding-bottom: 1.25rem; }
@media (max-width: 1080px) {
  .header-end { gap: 1rem; }
  .nav ul { gap: 1rem; }
  .brand__name { font-size: .875rem; }
}
@media (max-width: 720px) {
  .hero__media img { object-position: 55% 40%; }
  .hero__content { padding-top: calc(var(--header-h) + 10rem); }
  .hero__content .lede { font-size: var(--t-body); }
  .project-heading-actions .actions { align-items: stretch; }
  .unit-card { padding: 1rem; }
  .facts { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
  .facts dd { overflow-wrap: anywhere; }
  .explore__links a { flex-wrap: wrap; }
}
@media (max-width: 380px) { .unit-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .floors { table-layout: fixed; font-size: .875rem; }
  .floors th, .floors td { padding-right: .5rem; overflow-wrap: anywhere; }
  .floors th:first-child { width: 25%; white-space: normal; }
  .floors th.num { width: 32%; white-space: normal; }
}
