/* ============================================================
   YULIYA KUZINA — ARCHITECTURAL PORTFOLIO
   Blocks 2–10 · Education → Contact
   ============================================================ */

/* ============================================================
   BLOCK 2 · EDUCATION — a museum index
   ============================================================ */
.edu-list { max-width: 1000px; display: grid; }
.edu-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.2rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--c-shadow);
  align-items: baseline;
}
.edu-row:first-child { border-top: 1px solid var(--c-shadow); }
.edu-row__year { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--c-dark-concrete); }
.edu-row__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem); letter-spacing: -0.015em; color: var(--c-ink);
}
.edu-row__detail { font-size: 0.92rem; color: var(--c-ink-soft); margin-top: 0.25rem; }
.edu-row__grade { color: var(--c-emerald); font-weight: 700; }
@media (max-width: 640px) { .edu-row { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ============================================================
   BLOCK 3 · PROJECTS — three architectural stories
   ============================================================ */
.project-block { margin-bottom: var(--space-4); }
.project-block:last-child { margin-bottom: 0; }

.project-block__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: var(--space-1);
}
.project-block__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 3rem); letter-spacing: -0.025em; line-height: 1;
}
.project-block__meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--c-dark-concrete); }

.project-block__tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem;
  margin-bottom: var(--space-2);
}
.project-block__tags span {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-emerald);
}

/* placeholder frame system — swappable, ratio-locked */
.frame {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  background: var(--c-shadow);
}
.frame__tag {
  position: relative; z-index: 2;
  padding: 0.8rem var(--space-1);
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(237,236,232,0.85);
}
.frame--light .frame__tag { color: var(--c-dark-concrete); }
.frame::before { content: ""; position: absolute; inset: 0; }

/* tonal placeholder fills — each names its intended final asset */
.frame--sea      { background: linear-gradient(165deg, #6CAFA3 0%, #0E6B5A 55%, #002B26 100%); }
.frame--terrain  { background: linear-gradient(200deg, #C8B7A6 0%, #A8A7A1 60%, #686A68 100%); }
.frame--plan     { background: linear-gradient(180deg, #EDECE8 0%, #D8DAD7 100%); }
.frame--forest   { background: linear-gradient(170deg, #33544A 0%, #002B26 100%); }
.frame--plastic  { background: linear-gradient(160deg, #287EBB 0%, #185A88 60%, #0C0C0C 100%); }
.frame--leather  { background: linear-gradient(160deg, #8B5E3C 0%, #4A3526 100%); }
.frame--concrete { background: linear-gradient(180deg, #D8DAD7 0%, #A8A7A1 100%); }
.frame--charcoal { background: linear-gradient(180deg, #3B3A37 0%, #0C0C0C 100%); }
.frame--sand     { background: linear-gradient(170deg, #D6C7B6 0%, #C8B7A6 60%, #A8957F 100%); }

/* drawing-line motif over plan-type frames */
.frame--plan::before {
  background-image:
    repeating-linear-gradient(0deg, rgba(104,106,104,0.25) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(104,106,104,0.25) 0 1px, transparent 1px 46px);
}
.frame--terrain::before {
  background-image: repeating-radial-gradient(ellipse at 30% 110%,
    transparent 0 34px, rgba(237,236,232,0.28) 34px 35px);
}
.frame--sea::before {
  background-image: repeating-linear-gradient(0deg,
    transparent 0 30px, rgba(237,236,232,0.12) 30px 31px);
}

/* project compositions — varied rhythm per project */
.comp { display: grid; gap: 2px; }
.comp--a { grid-template-columns: 1.6fr 1fr; }
.comp--a .frame:nth-child(1) { grid-row: span 2; min-height: 420px; }
.comp--a .frame:nth-child(2) { min-height: 209px; }
.comp--a .frame:nth-child(3) { min-height: 209px; }

.comp--b { grid-template-columns: repeat(3, 1fr); }
.comp--b .frame { min-height: 280px; }
.comp--b .frame:nth-child(1) { grid-column: span 3; min-height: 340px; }

.comp--c { grid-template-columns: 1fr 1fr; }
.comp--c .frame { min-height: 260px; }
.comp--c .frame:nth-child(3) { grid-column: span 2; min-height: 220px; }

.comp--d { grid-template-columns: repeat(3, 1fr); margin-top: 2px; }
.comp--d .frame { min-height: 240px; }

/* ---------- FEATURE SIX — reference-style composition ----------
   a  b c  e
   a  d d  e
   a  d d  f  */
.mosaic--six {
  display: grid;
  gap: 2px;
  margin-top: 0;
  grid-template-columns: 1.15fr 0.58fr 0.58fr 1.1fr;
  grid-template-rows: minmax(170px, 30svh) minmax(220px, 36svh) minmax(170px, 30svh);
  grid-template-areas:
    "a b c e"
    "a d d e"
    "a d d f";
}
.mosaic--six .frame { min-height: 0; height: 100%; }
.six-a { grid-area: a; }
.six-b { grid-area: b; }
.six-c { grid-area: c; }
.six-d { grid-area: d; }
.six-e { grid-area: e; }
.six-f { grid-area: f; }
@media (max-width: 760px) {
  .mosaic--six {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: 300px;
    grid-template-areas: "a" "b" "c" "d" "e" "f";
  }
}

/* ---------- MOSAIC — dynamic packed composition ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(170px, 22vw, 250px);
  grid-auto-flow: dense;
  gap: 2px;
  margin-top: 2px;
}
.mosaic .frame { min-height: 0; height: 100%; }
.frame--w2 { grid-column: span 2; }
.frame--h2 { grid-row: span 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .frame--w2 { grid-column: auto; }
  .frame--h2 { grid-row: auto; }
}

@media (max-width: 760px) {
  .comp--a, .comp--b, .comp--c, .comp--d { grid-template-columns: 1fr; }
  .comp--a .frame:nth-child(1) { grid-row: auto; min-height: 300px; }
  .comp--b .frame:nth-child(1) { grid-column: auto; }
  .comp--c .frame:nth-child(3) { grid-column: auto; }
}

/* real photography inside frames — graded toward the palette */
.frame--photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.97) brightness(0.99);
}
.frame--photo::after {
  content: ""; position: absolute; inset: 55% 0 0 0;
  background: linear-gradient(to top, rgba(12,12,12,0.55), transparent);
  z-index: 1;
}

/* hand sketches on paper — no scrim, no colour grade; the paper stays paper */
.frame--sketch { background: #F4F3EF; }
.frame--sketch img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 8%;
}
.frame--sketch .frame__tag { position: relative; z-index: 2; color: var(--c-dark-concrete); }

.project-block__note { margin-top: var(--space-1); max-width: 60ch; color: var(--c-ink-soft); }
.project-block__note a { color: var(--c-emerald); border-bottom: 1px solid rgba(14,107,90,0.35); }
.chapter--dark .project-block__note { color: var(--c-shadow); }

/* ============================================================
   BLOCK 4 · RESEARCH — deep forest slab
   ============================================================ */
.chapter--forest { background: var(--c-forest); }
.chapter--forest .chapter__head h2 { color: var(--c-highlight); }
.chapter--forest .chapter__head .label { color: var(--c-sage); }

.research-lead {
  max-width: 62ch; color: #BFD6CE; font-size: var(--fs-body);
  line-height: 1.65; margin-bottom: var(--space-3);
}
.research-lead strong { color: var(--c-highlight); font-weight: 700; }
.research-lead a { color: var(--c-sage); border-bottom: 1px solid rgba(108,175,163,0.4); }

.research-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(108,175,163,0.25);
  margin-bottom: var(--space-3);
}
@media (max-width: 760px) { .research-grid { grid-template-columns: 1fr; } }
.research-cell { background: var(--c-forest); padding: var(--space-2) var(--space-1); }
.research-cell h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  letter-spacing: -0.01em; color: var(--c-highlight); margin-bottom: 0.6rem;
}
.research-cell h3::before {
  content: ""; display: block; width: 2rem; height: 2px;
  background: var(--c-sage); margin-bottom: 0.9rem;
}
.research-cell p { font-size: 0.92rem; color: #9DBDB2; line-height: 1.6; }

.research-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
@media (max-width: 760px) { .research-strip { grid-template-columns: 1fr; } }
.research-strip .frame { min-height: 220px; }

/* ============================================================
   BLOCK 5 · SOFTWARE — mastery, measured
   ============================================================ */
.stack-list { max-width: 1000px; display: grid; gap: var(--space-2); }
.stack-group__name {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c-dark-concrete); margin-bottom: 0.9rem;
}
.stack-row {
  display: grid; grid-template-columns: minmax(0,18rem) 1fr 7rem;
  gap: 1.2rem; align-items: center; padding: 0.55rem 0;
  border-bottom: 1px solid rgba(168,167,161,0.45);
}
.stack-row__tool { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.stack-row__bar { height: 2px; background: rgba(168,167,161,0.5); position: relative; }
.stack-row__bar i {
  position: absolute; inset: 0 auto 0 0; width: var(--lvl, 40%);
  background: var(--c-emerald); display: block;
}
.stack-row--ocean .stack-row__bar i { background: var(--c-ocean); }
.stack-row__level {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-dark-concrete); text-align: right;
}
@media (max-width: 640px) {
  .stack-row { grid-template-columns: 1fr 5.4rem; }
  .stack-row__bar { display: none; }
}

/* ============================================================
   BLOCK 6 · SKILLS — the superpower
   ============================================================ */
.superpower {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.4rem, 7.6vw, 7rem);
  letter-spacing: -0.035em; line-height: 0.92;
  color: var(--c-highlight); margin-bottom: var(--space-3);
}
.superpower em { font-style: normal; color: var(--c-emerald); }
.superpower .label { display: block; color: var(--c-shadow); margin-bottom: 1rem; }

.competency-list { max-width: 1100px; display: grid; gap: 0; }
.competency {
  display: grid; grid-template-columns: minmax(0, 20rem) 1fr;
  gap: 1.5rem; padding: 1.6rem 0;
  border-top: 1px solid rgba(104,106,104,0.6);
}
.competency:last-child { border-bottom: 1px solid rgba(104,106,104,0.6); }
.competency h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -0.015em; color: var(--c-highlight);
}
.competency p { color: var(--c-shadow); line-height: 1.6; font-size: 0.95rem; }
@media (max-width: 700px) { .competency { grid-template-columns: 1fr; gap: 0.5rem; } }

/* ============================================================
   BLOCK 7 · ARCHITECTURE — the parallel education
   ============================================================ */
.arch-intro {
  max-width: 58ch; font-size: var(--fs-editorial); font-weight: 500;
  letter-spacing: -0.012em; line-height: 1.55; color: var(--c-ink-soft);
  margin-bottom: var(--space-3);
}
.arch-columns {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
  max-width: 1100px; margin-bottom: var(--space-3);
}
@media (max-width: 760px) { .arch-columns { grid-template-columns: 1fr; } }

.arch-roles { max-width: 1100px; margin-bottom: var(--space-3); }
.arch-roles h3, .arch-columns h3 {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c-dark-concrete); margin-bottom: 1rem;
}
.arch-roles ul { list-style: none; display: grid; gap: 0.45rem; }
.arch-roles li { color: var(--c-ink-soft); }
.arch-roles li strong { font-weight: 700; color: var(--c-ink); }

.sketch-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
@media (max-width: 760px) { .sketch-strip { grid-template-columns: 1fr; } }
.sketch-strip figure { background: #FFFFFF; margin: 0; }
.sketch-strip img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 4/3; }
.sketch-strip figcaption {
  padding: 0.7rem 1rem 1rem;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-shadow);
}

/* ============================================================
   BLOCK 8 · VISION — materials and lineage
   ============================================================ */
.vision-statement {
  min-height: 38svh; display: flex; align-items: center;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.8rem, 4.4vw, 4rem); letter-spacing: -0.03em; line-height: 1.05;
  color: var(--c-dark-concrete); max-width: 20ch;
}
.vision-statement em { font-style: normal; color: var(--c-ink); }

.materials-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px;
  background: var(--c-shadow); margin: var(--space-3) 0;
}
@media (max-width: 900px) { .materials-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .materials-grid { grid-template-columns: repeat(2, 1fr); } }
.material {
  aspect-ratio: 3/4; position: relative; display: flex; align-items: flex-end;
  overflow: hidden;
}
.material img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(0.97);
}
.material--photo::after {
  content: ""; position: absolute; inset: 55% 0 0 0;
  background: linear-gradient(to top, rgba(12,12,12,0.5), transparent);
}
.material span {
  padding: 0.7rem 0.8rem; font-family: var(--font-mono); position: relative; z-index: 1;
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(237,236,232,0.9);
}
.material--light span { color: var(--c-dark-concrete); }
.material--concrete { background: linear-gradient(170deg, #D8DAD7, #A8A7A1); }
.material--metal    { background: linear-gradient(105deg, #686A68 0%, #C6C8C5 45%, #686A68 100%); }
.material--glass    { background: linear-gradient(160deg, #DDEBEA 0%, #9FC4BE 60%, #6CAFA3 100%); }
.material--wood     { background: repeating-linear-gradient(95deg, #4A3526 0 9px, #5C452F 9px 14px, #4A3526 14px 26px); }
.material--leather  { background: radial-gradient(120% 120% at 30% 20%, #A0714B 0%, #8B5E3C 55%, #5E3F28 100%); }
.material--linen    { background:
    repeating-linear-gradient(0deg, rgba(168,167,161,0.35) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(168,167,161,0.35) 0 1px, transparent 1px 4px), #E5E0D6; }
.material--rattan   { background:
    repeating-linear-gradient(45deg, #B99B77 0 7px, #C8B7A6 7px 13px),
    repeating-linear-gradient(-45deg, rgba(74,53,38,0.25) 0 7px, transparent 7px 13px), #C8B7A6; }

.lineage { max-width: 1100px; }
.lineage h3 {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c-dark-concrete); margin-bottom: 1.2rem;
}
.lineage ul {
  list-style: none; display: flex; flex-wrap: wrap; column-gap: 2.4rem; row-gap: 0.6rem;
}
.lineage li {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 2rem); letter-spacing: -0.02em; color: var(--c-ink);
}
.lineage li::after { content: "·"; margin-left: 2.4rem; color: var(--c-emerald); }
.lineage li:last-child::after { content: ""; }

/* ============================================================
   BLOCK 9 · EMERGING TECHNOLOGIES
   ============================================================ */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
@media (max-width: 760px) { .tech-grid { grid-template-columns: 1fr; } }
.tech-card { background: var(--c-ink-soft); padding: var(--space-3) var(--space-2); min-height: 340px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.tech-card--accent { background: var(--c-forest); }
.tech-card h3 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; color: var(--c-highlight);
}
.tech-card p { color: var(--c-shadow); line-height: 1.65; max-width: 48ch; }
.tech-card--accent p { color: #9DBDB2; }
.tech-card .label { color: var(--c-dark-concrete); }
.tech-card--accent .label { color: var(--c-sage); }

.ai-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 2px; }
.ai-strip .frame { min-height: 260px; }
@media (max-width: 760px) { .ai-strip { grid-template-columns: 1fr; } }

/* ============================================================
   BLOCK 10 · CONTACT — a calm ending
   ============================================================ */
.contact {
  min-height: 92svh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  gap: 1.4rem; background: var(--c-concrete);
}
.contact__name {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.9rem, 4.6vw, 4.2rem); letter-spacing: -0.03em; line-height: 1;
  color: var(--c-ink);
}
.contact__juju {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1rem, 1.8vw, 1.5rem); letter-spacing: 0.02em; color: var(--c-emerald);
}
.contact__email {
  font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--c-ink-soft);
  border-bottom: 1px solid var(--c-shadow); padding-bottom: 2px;
  transition: border-color 0.3s ease;
}
.contact__email:hover { border-color: var(--c-emerald); }
.contact__social { display: flex; gap: 1.6rem; margin-top: 1.2rem; }
.contact__social a { color: var(--c-dark-concrete); transition: color 0.3s ease; }
.contact__social a:hover { color: var(--c-emerald); }
.contact__social svg { width: 22px; height: 22px; }
.contact__fin {
  margin-top: var(--space-3);
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-shadow);
}
