
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #1a1814;
  --warm: #A4865C;
  --dust: #C9B89A;
  --paper: #221f1b;
  --light: #FDFAF7;
  --rule: rgba(255,255,255,0.07);
  --text-dim: rgba(255,255,255,0.55);
  --text-faint: rgba(255,255,255,0.48);
}

html { scroll-behavior: smooth; }
body { font-family: "DM Sans", sans-serif; background: var(--ink); color: var(--light); font-size: 13px; line-height: 1.7; padding-top: 57px; }

/* ─── NAV ────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px;
  background: rgba(10,8,6,0.92);
  border-bottom: 1px solid var(--rule);
}
.nav-links { display: flex; gap: 4px; }
.nav-link {
  font-family: "DM Sans", sans-serif;
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.48); background: transparent;
  border: 1px solid transparent;
  padding: 6px 14px; cursor: pointer;
  text-decoration: none; transition: all 0.2s;
  display: inline-block;
}
.nav-link:hover { color: var(--dust); border-color: rgba(139,111,71,0.4); }
.nav-link.active { color: var(--dust); border-color: var(--warm); }
.nav-right { display: flex; gap: 8px; }
.lang-btn {
  font-family: "DM Sans", sans-serif;
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.48); background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px; cursor: pointer; transition: all 0.2s;
}
.lang-btn:hover { color: var(--dust); border-color: var(--warm); }
.lang-btn.active { color: var(--dust); border-color: var(--warm); }
.opener {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
}
.opener-header {
  padding: 48px 48px 32px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.opener-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300; line-height: 0.95; letter-spacing: -2px;
  display: inline;
}
.opener-name em { font-style: italic; color: var(--dust); }
.opener-descriptor {
  font-size: 9px; font-weight: 500; letter-spacing: 4px;
  text-transform: uppercase; color: var(--warm);
  margin-top: 14px;
}
.opener-body {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  height: 380px;
}
.opener-image {
  overflow: hidden;
  flex-shrink: 0;
}
.opener-image img {
  width: 320px;
  height: 380px;
  object-fit: cover; object-position: center top;
  display: block;
}
.opener-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 48px;
  border-left: 1px solid var(--rule);
  height: 380px;
  overflow: hidden;
}
.opener-about {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.65);
  border-left: 2px solid var(--warm); padding-left: 20px;
}
.opener-contact {
  margin-top: 28px; font-size: 10.5px;
  color: var(--text-faint); line-height: 2.4; letter-spacing: 0.5px;
}
.opener-contact a { color: var(--warm); text-decoration: none; }
.opener-contact a:hover { color: var(--dust); }

/* ─── METRICS ────────────────────────────────────────── */
.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.metric { padding: 26px 32px; border-right: 1px solid var(--rule); }
.metric:last-child { border-right: none; }
.metric-n {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300; color: var(--dust); line-height: 1;
}
.metric-label {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-faint); margin-top: 6px;
}

/* ─── BODY WRAPPER ───────────────────────────────────── */
.body { max-width: 1200px; margin: 0 auto; padding: 72px 48px; }

/* ─── SECTION HEADER ─────────────────────────────────── */
.section-header {
  display: flex; flex-direction: row; align-items: baseline;
  gap: 20px; margin-bottom: 36px;
}
.section-label {
  font-size: 9px; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; color: var(--dust);
  white-space: nowrap; padding-top: 2px;
}
.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300; color: var(--light); line-height: 1;
}
.section-title em { font-style: italic; color: var(--warm); }

/* ─── PROJECT ROW: text left, thumbs right ───────────── */
.project-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}

/* ─── IP ROW: thumb | text | thumb ──────────────────── */
.ip-row {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}

/* thumbnail stack */
.thumb-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}
.thumb {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper);
  width: 100%;
  /* natural proportions — no aspect-ratio override */
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s;
}
.thumb:hover img { transform: scale(1.03); opacity: 0.88; }
.thumb-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,8,6,0.85) 0%, transparent 100%);
  padding: 14px 8px 6px;
  font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  opacity: 0; transition: opacity 0.3s;
  text-align: center;
}
.thumb:hover .thumb-caption { opacity: 1; }

/* ─── FLAGSHIP BLOCK ─────────────────────────────────── */
.flagship-block {
  background: var(--paper);
  border-left: 3px solid var(--warm);
  padding: 26px 28px;
  height: 496px;        /* 13cm at 96dpi */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--warm) transparent;
}

/* Bachelor thumbs: (496px - 3px gap) / 2 = 246px each */
.project-row .thumb {
  height: 246px;
  width: 246px;
}

/* IP thumbs — natural portrait proportions for 1st and 3rd */
.ip-natural {
  height: auto !important;
  width: 246px;
}
.ip-natural img {
  height: auto !important;
  object-fit: contain;
}

/* IP collage — square */
.ip-square {
  height: 246px;
  width: 246px;
}
.flagship-block h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400; margin-bottom: 6px; color: var(--light);
}
.flagship-block h2 em { font-style: italic; color: var(--dust); }
.project-meta {
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--warm); margin-bottom: 12px;
}
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 14px; }
.tag {
  font-size: 8px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(201,184,154,0.25);
  color: var(--dust); padding: 3px 9px;
}
.desc {
  font-size: 12.5px; line-height: 1.8;
  color: var(--text-dim); margin-bottom: 16px;
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule); margin: 14px 0;
}
.stat { background: var(--paper); padding: 12px 14px; }
.stat-n {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px; font-weight: 300; color: var(--warm);
}
.stat-l {
  font-size: 8px; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,0.48); margin-top: 3px;
}
.blist { list-style: none; padding: 0; }
.blist li {
  padding: 5px 0 5px 16px; position: relative;
  font-size: 12px; color: var(--text-dim);
  line-height: 1.65; border-bottom: 1px solid var(--rule);
}
.blist li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.blist li::before { content: "—"; position: absolute; left: 0; color: var(--dust); }

/* ─── STATUS BADGE ───────────────────────────────────── */
.status-badge {
  display: inline-block;
  font-size: 7.5px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; padding: 3px 10px;
  border: 1px solid; margin-left: 10px;
  vertical-align: middle; position: relative; top: -2px;
}
.status-done {
  color: #7ab87a; border-color: rgba(122,184,122,0.35);
  background: rgba(122,184,122,0.07);
}
.status-wip {
  color: var(--dust); border-color: rgba(201,184,154,0.35);
  background: rgba(201,184,154,0.07);
}

/* ─── IP EXPANDED BLOCK ──────────────────────────────── */
/* 908px = photo1(328) + gap(3) + collage(246) + gap(3) + photo3(328) */
.ip-expanded {
  background: var(--paper);
  border-left: 3px solid var(--warm);
  padding: 32px 36px;
  height: 908px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--warm) transparent;
}
.ip-expanded h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400; color: var(--light); margin-bottom: 6px;
}
.ip-expanded h2 em { font-style: italic; color: var(--dust); }
.ip-lead {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-style: italic; line-height: 1.7; color: var(--dust);
  border-left: 2px solid rgba(139,111,71,0.4);
  padding-left: 16px; margin: 16px 0 20px;
}
.ip-acts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px; background: var(--rule); margin: 16px 0;
}
.ip-act {
  background: var(--ink); padding: 14px 16px;
}
.ip-act-label {
  font-size: 7.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--warm); margin-bottom: 6px;
}
.ip-act h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px; font-weight: 400; font-style: italic;
  color: var(--light); margin-bottom: 6px;
}
.ip-act p {
  font-size: 11px; color: rgba(255,255,255,0.48); line-height: 1.65;
}
.ip-act .device {
  font-size: 10px; color: var(--warm); margin-top: 6px;
  font-style: italic;
}
.ip-body-text {
  font-size: 12px; color: var(--text-dim); line-height: 1.8; margin: 12px 0;
}
.ip-scale {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px;
}
.ip-scale-item {
  font-size: 8px; letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid var(--rule); color: rgba(255,255,255,0.48);
  padding: 3px 9px;
}
.ip-closing-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px; font-style: italic; color: rgba(255,255,255,0.48);
  border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 16px;
  line-height: 1.65;
}

/* ─── VISUAL RANGE GRID ──────────────────────────────── */
.range-intro {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300; font-style: italic; line-height: 1.6;
  color: rgba(255,255,255,0.48); margin-bottom: 20px; max-width: 600px;
}

.range-controls {
  display: flex; gap: 8px; margin-bottom: 16px; align-items: center;
}
.range-toggle {
  font-size: 8px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-faint); border: 1px solid var(--rule);
  background: transparent; padding: 4px 12px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.range-toggle.active { color: var(--dust); border-color: var(--warm); }
.range-toggle:hover { color: var(--dust); border-color: rgba(139,111,71,0.5); }
.range-label-txt {
  font-size: 8px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.48);
}

.range-mosaic {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  margin-bottom: 16px;
}
.range-thumb {
  position: relative; overflow: hidden;
  cursor: zoom-in; background: var(--paper);
  aspect-ratio: 3/4;
}
.range-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.range-thumb:hover img { transform: scale(1.07); }
.range-thumb-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 4px 4px;
  background: linear-gradient(to top, rgba(10,8,6,0.9) 0%, transparent 100%);
  font-size: 7px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--dust); opacity: 0; transition: opacity 0.3s;
  text-align: center;
}
.range-thumb:hover .range-thumb-label { opacity: 1; }

/* ─── CALLOUT ────────────────────────────────────────── */
.callout {
  background: rgba(139,111,71,0.07);
  border-left: 2px solid var(--warm);
  padding: 24px 32px; margin: 48px 0;
}
.callout p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(14px, 1.5vw, 17px);
  font-style: italic; line-height: 1.65; color: var(--dust);
}

/* ─── OTHER PROJECTS ─────────────────────────────────── */
.projects-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; background: var(--rule);
}
.proj { background: var(--paper); padding: 20px 22px; }
.proj h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px; font-weight: 400; margin-bottom: 7px; color: var(--light);
}
.proj p { font-size: 11.5px; color: rgba(255,255,255,0.48); line-height: 1.65; }

/* ─── SKILLS ─────────────────────────────────────────── */
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 8px;
}
.skill-group h4 {
  font-size: 8.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--warm); margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.skill-group p { font-size: 11.5px; color: rgba(255,255,255,0.48); line-height: 2; }

/* ─── BACKGROUND ─────────────────────────────────────── */
.bg-list { list-style: none; padding: 0; }
.bg-list li {
  padding: 10px 0 10px 16px; position: relative;
  font-size: 12.5px; color: var(--text-dim); line-height: 1.7;
  border-bottom: 1px solid var(--rule);
}
.bg-list li:last-child { border-bottom: none; }
.bg-list li::before { content: "—"; position: absolute; left: 0; color: var(--dust); }
.bg-list li strong { color: var(--light); font-weight: 500; }

/* ─── DIVIDER ────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--rule); margin: 56px 0; }

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 48px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px; font-style: italic; color: var(--dust);
}
.footer-links {
  font-size: 10.5px; color: var(--text-faint);
  letter-spacing: 0.5px; line-height: 2.2; text-align: right;
}
.footer-links a { color: var(--warm); text-decoration: none; }
.footer-links a:hover { color: var(--dust); }

/* ─── LIGHTBOX ───────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,8,6,0.96);
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: fixed; top: 24px; right: 32px;
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.48); cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px; background: transparent;
  transition: color 0.2s, border-color 0.2s;
}
.lightbox-close:hover { color: var(--dust); border-color: var(--warm); }
.lightbox-caption {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.48);
}

#between-two-worlds,
#bachelor,
#top-model { scroll-margin-top: 72px; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {

  /* NAV */
  .site-nav { padding: 12px 16px; }
  .nav-link { padding: 5px 10px; font-size: 9px; letter-spacing: 2px; }
  .lang-btn { padding: 5px 10px; font-size: 9px; letter-spacing: 2px; }

  /* OPENER */
  .opener-header { padding: 24px 16px 18px; }
  .opener-name { font-size: 32px; letter-spacing: -1px; }
  .opener-descriptor { font-size: 8px; letter-spacing: 2px; margin-top: 8px; }
  .opener-body { grid-template-columns: 1fr; height: auto; }
  .opener-image { height: auto; overflow: visible; }
  /* Mobile About portrait: show the complete original frame instead of cropping the lower part.
     The source remains the same high-resolution image; only its mobile fitting changes. */
  .opener-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
  }
  .opener-text {
    padding: 24px 16px;
    border-left: none; border-top: 1px solid var(--rule);
    height: auto;
  }
  .opener-about { font-size: 14px; }
  .opener-contact { font-size: 10px; margin-top: 20px; }

  /* METRICS */
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid var(--rule); padding: 16px 16px; }
  .metric:last-child { border-bottom: none; }
  .metric-n { font-size: 28px; }

  /* BODY */
  .body { padding: 32px 16px; }

  /* SECTION HEADER */
  .section-header { flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
  .section-label { font-size: 8px; }
  .section-title { font-size: 22px; }

  /* PROJECT ROW — stack vertically, thumbs below as row */
  .project-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .thumb-stack { flex-direction: row; gap: 3px; }
  .thumb { width: calc(50% - 2px); height: auto; aspect-ratio: 1/1; }
  .project-row .thumb { width: calc(50% - 2px); height: auto; }

  /* FLAGSHIP BLOCK — remove fixed height on mobile */
  .flagship-block {
    height: auto;
    overflow-y: visible;
    padding: 20px 16px;
  }
  .flagship-block h2 { font-size: 16px; }
  .project-meta { font-size: 8px; }
  .tags { gap: 4px; }
  .tag { font-size: 7px; padding: 2px 7px; }
  .desc { font-size: 12px; line-height: 1.7; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-n { font-size: 18px; }
  .blist li { font-size: 11px; }

  /* IP EXPANDED — remove fixed height on mobile */
  .ip-expanded {
    height: auto;
    overflow-y: visible;
    padding: 20px 16px;
    order: -1; /* text above photos */
  }
  .ip-expanded h2 { font-size: 16px; }
  .ip-lead { font-size: 13px; }
  .ip-body-text { font-size: 11px; }
  .ip-acts { grid-template-columns: 1fr; }
  .ip-act { padding: 12px 14px; }
  .ip-act h4 { font-size: 13px; }
  .ip-act p { font-size: 10.5px; }
  .device { font-size: 9.5px; }
  .ip-scale { gap: 4px; }
  .ip-scale-item { font-size: 7.5px; padding: 2px 7px; }

  /* IP THUMBS on mobile — horizontal row of 3 */
  .ip-natural, .ip-square {
    width: calc(33.33% - 2px);
    height: auto;
    aspect-ratio: 1/1;
  }

  /* RANGE */
  .range-intro { font-size: 13px; }
  .range-mosaic { grid-template-columns: repeat(4, 1fr); gap: 2px; }

  /* CALLOUT */
  .callout { padding: 18px 16px; }
  .callout p { font-size: 13px; }

  /* OTHER PROJECTS */
  .projects-grid { grid-template-columns: 1fr; }
  .proj { padding: 16px; }
  .proj h3 { font-size: 15px; }
  .proj p { font-size: 11px; }

  /* SKILLS */
  .skills-grid { grid-template-columns: 1fr; gap: 20px; }
  .skill-group h4 { font-size: 8px; }
  .skill-group p { font-size: 11px; line-height: 1.9; }

  /* BACKGROUND */
  .bg-list li { font-size: 11.5px; }

  /* FOOTER */
  .footer { padding: 24px 16px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-name { font-size: 18px; }
  .footer-links { text-align: left; font-size: 10px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .opener-text { padding: 48px 36px; }
  .body { padding: 64px 32px; }
  .project-row { grid-template-columns: 1fr 140px; }
  .ip-row { grid-template-columns: 140px 1fr 140px; }
  .range-mosaic { grid-template-columns: repeat(6, 1fr); }
}

.skip-link{position:fixed;left:12px;top:12px;z-index:10000;padding:10px 14px;background:#1a1814;color:#FDFAF7;border:1px solid #A4865C;transform:translateY(-160%);transition:transform .15s;text-decoration:none}.skip-link:focus{transform:translateY(0)}
:focus-visible{outline:2px solid #C9B89A;outline-offset:3px}
