/* Margo Mroz — Editorial direction
   Paper 70% · Ink 20% · Bordo 10% (one word, one button, one detail) */
:root {
  --paper: #F5F1EA;
  --ink: #17161A;
  --bordo: #6E1F2C;
  --mist: #E6DFD3;
  --stone: #5E574F;
  --line: rgba(23, 22, 26, .22);
  --line-light: rgba(245, 241, 234, .22);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; color: var(--bordo); }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Language toggle */
html[lang="en"] .pl, html[lang="pl"] .en { display: none !important; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink em { color: var(--paper); }

.eyebrow, .label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.section-ink .eyebrow, .section-ink .label, .hubnox .eyebrow { color: rgba(245, 241, 234, .6); }
.num { font-family: var(--serif); font-size: 20px; color: var(--bordo); display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 15px/1 var(--sans);
  padding: 16px 22px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  background: none;
  color: inherit;
}
.btn-sm { padding: 12px 16px; font-size: 14px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--bordo); }
.btn-bordo { background: var(--bordo); color: var(--paper); }
.btn-bordo:hover { background: var(--ink); }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--bordo); outline-offset: 3px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 234, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { font-family: var(--serif); font-size: 26px; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 15px; text-decoration: none; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.lang { background: none; border: 0; padding: 4px 0; font: 500 13px var(--sans); letter-spacing: .08em; color: var(--stone); cursor: pointer; }
.lang [data-l] { transition: color .2s; }
html[lang="en"] .lang [data-l="en"], html[lang="pl"] .lang [data-l="pl"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.display { font-size: clamp(48px, 7.4vw, 104px); line-height: .98; letter-spacing: -0.025em; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: #2b2a2e; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.02); }

/* As seen at */
.seen { display: flex; align-items: center; gap: 40px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding-top: 22px; padding-bottom: 22px; }
.seen > .label { flex-shrink: 0; }
.seen ul { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.seen li { font-family: var(--serif); font-size: clamp(20px, 2.1vw, 26px); }
.seen .wrap { padding: 0; }
/* the seen block is itself a .wrap; keep rules visually inset */
.seen { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
@media (max-width: 1248px) { .seen { margin-left: var(--gutter); margin-right: var(--gutter); } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding-top: clamp(64px, 8vw, 104px); padding-bottom: 8px; }
.pillars h3 { font-size: clamp(28px, 2.6vw, 34px); margin: 6px 0 12px; }
.pillars p { color: #3a383d; font-size: 16px; }

/* Section heads */
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 820px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.02em; }
.section-head > p:not(.eyebrow) { font-size: 18px; color: #3a383d; max-width: 40em; }
.section-ink .section-head > p:not(.eyebrow) { color: rgba(245, 241, 234, .75); }

/* Method steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { border: 1px solid var(--ink); padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 14px; }
.steps h3 { font-size: clamp(32px, 3vw, 40px); }
.steps p { font-size: 16px; color: #3a383d; }
.step-k { font-size: 12px !important; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--stone) !important; }
.steps .step-dark { background: var(--ink); color: var(--paper); }
.steps .step-dark p { color: rgba(245, 241, 234, .78); }
.steps .step-dark .step-k { color: rgba(245, 241, 234, .6) !important; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.timeline li { border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; color: #3a383d; }
.timeline .yr { font-family: var(--serif); font-size: 30px; color: var(--ink); line-height: 1.1; margin-bottom: 6px; }
.timeline b { font-weight: 600; color: var(--ink); }
.timeline .now { border-top: 2px solid var(--bordo); }
.timeline .now .yr { color: var(--bordo); }
.industries { margin-top: 28px; font-size: 15px; color: var(--stone); }
.industries > span:first-child { font-weight: 600; color: var(--ink); }

.sub { font-size: clamp(26px, 2.6vw, 34px); margin: clamp(64px, 8vw, 96px) 0 28px; }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proof article { background: var(--paper); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.proof .big { font-family: var(--serif); font-size: clamp(40px, 4vw, 56px); line-height: 1; color: var(--ink); margin: 4px 0 6px; }
.proof p:not(.label):not(.big) { font-size: 15.5px; color: #3a383d; }

.bmw { margin: 20px 0 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.bmw img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; filter: grayscale(1); }
.bmw figcaption { font-size: 18px; line-height: 1.55; color: #2b2a2e; }
.bmw b { font-weight: 600; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--ink); }
.stats > div { padding: 28px 28px 36px 0; border-bottom: 1px solid var(--line); }
.stats dt { font-family: var(--serif); font-size: clamp(38px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.stats dd { margin: 8px 0 0; color: var(--stone); font-size: 15.5px; max-width: 26em; }

/* Topics */
.topics { border-top: 1px solid var(--line-light); }
.topics li { display: grid; grid-template-columns: 56px 1fr auto; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line-light); transition: padding .25s; }
.topics li:hover { padding-left: 8px; }
.topics .num { color: rgba(245, 241, 234, .55); }
.topics h3 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.2; }
.topics .t-sub { color: rgba(245, 241, 234, .62); }
.tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; border: 1px solid var(--line-light); padding: 7px 12px; white-space: nowrap; color: rgba(245, 241, 234, .85); }
.more-label { margin: 56px 0 20px; }
.extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.extra article { border-top: 1px solid var(--paper); padding-top: 18px; }
.extra h4 { font-size: 24px; margin-bottom: 8px; }
.extra p { color: rgba(245, 241, 234, .7); font-size: 15.5px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery .img { overflow: hidden; }
.gallery img { width: 100%; height: 420px; object-fit: cover; filter: grayscale(1) contrast(1.03); transition: filter .5s; }
.gallery figure:hover img { filter: grayscale(0); }
.gallery figcaption { font-size: 14px; color: var(--stone); }
.gallery figcaption b { color: var(--ink); font-weight: 600; }
.g-a { grid-column: span 5; } .g-b { grid-column: span 4; } .g-c { grid-column: span 3; }
.g-d { grid-column: span 5; } .g-e { grid-column: span 4; } .g-f { grid-column: span 3; }
.g-b img { object-position: 30% 50%; } .g-e img { object-position: 40% 70%; } .g-f img { object-position: 88% 50%; }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.formats article { background: var(--paper); padding: 32px 26px 36px; display: flex; flex-direction: column; gap: 12px; }
.formats h3 { font-size: 26px; line-height: 1.15; }
.formats .for { font-size: 13px; color: var(--stone); font-weight: 500; }
.formats p:not(.for) { font-size: 15.5px; color: #3a383d; }
.formats .f-dark { background: var(--ink); color: var(--paper); }
.formats .f-dark .num { color: var(--paper); }
.formats .f-dark .for { color: rgba(245, 241, 234, .6); }
.formats .f-dark p:not(.for) { color: rgba(245, 241, 234, .8); }
.note { margin-top: 28px; color: var(--stone); font-size: 15px; }

/* Bio */
.bio { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.bio > div { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.bio h2 { font-size: clamp(36px, 4.6vw, 60px); }
.bio-text { font-size: 18px; line-height: 1.7; color: #2b2a2e; }
.creds { border-top: 1px solid var(--ink); padding-top: 20px; margin-top: 8px; }
.creds ul { margin-top: 16px; }
.creds li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }

/* Hubnox */
.hubnox { background: var(--ink); color: var(--paper); padding: clamp(80px, 11vw, 144px) 0; }
.hubnox em { color: var(--paper); }
.hubnox-inner { display: flex; flex-direction: column; gap: 24px; }
.hubnox-inner > p:not(.eyebrow) { max-width: 40em; font-size: 18px; color: rgba(245, 241, 234, .78); }
.display-2 { font-size: clamp(44px, 6.4vw, 88px); line-height: 1; letter-spacing: -0.025em; }
.hubnox .hub-line { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px) !important; color: var(--paper) !important; margin-top: 8px; }
.link-arrow { font-size: 15px; font-weight: 500; text-underline-offset: 5px; align-self: flex-start; }
.link-arrow:hover { color: var(--mist); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.contact > div:first-child { display: flex; flex-direction: column; gap: 22px; }
.contact > div:first-child p { font-size: 18px; color: #3a383d; max-width: 32em; }
.contact-links { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.contact-links a { padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 17px; display: flex; justify-content: space-between; }
.contact-links a::after { content: "→"; transition: transform .2s; }
.contact-links a:hover::after { transform: translateX(4px); }
.contact-links .contact-mail { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); color: var(--bordo); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.footer-inner { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--stone); }
.footer-inner .small { margin-left: auto; }
.mono { width: 44px; height: 54px; border: 1px solid var(--ink); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; text-decoration: none; color: var(--ink); flex-shrink: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
  .formats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-photo { max-width: 520px; aspect-ratio: 4 / 4.4; order: -1; }
  .pillars, .steps, .proof, .extra { grid-template-columns: 1fr; }
  .pillars { gap: 36px; }
  .bmw, .bio, .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure { grid-column: auto; }
  .gallery img { height: 300px; }
  .topics li { grid-template-columns: 40px 1fr; }
  .topics .tag { grid-column: 2; justify-self: start; }
  .seen { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-inner { height: 64px; gap: 12px; }
  .logo { font-size: 22px; }
  .nav-actions { gap: 12px; }
  .nav-actions .btn { padding: 10px 12px; font-size: 13px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .formats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 320px; }
  .seen ul { gap: 6px 22px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner .small { margin-left: 0; width: 100%; }
}
