:root {
  --bg: #f4f3f1;
  --ink: #111010;
  --muted: #6b6763;
  --rule: #ddd9d4;
  --dark-muted: #8b8580;
  --font-sans: Manrope, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: 32px;
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }

::selection { background: var(--ink); color: var(--bg); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.eyebrow, .bar__mark, .bar__nav, .section__num, .btn,
.facts dt, .facts__label, .param dt, .tab, .contact__label, .footer {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Header */
/* Scrolls away with the page — deliberately not sticky. Nothing passes
   underneath it, so it needs no translucency and no backdrop blur. */
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.bar__nav { display: flex; flex-wrap: wrap; gap: 28px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 72px 40px 48px var(--pad);
  min-height: 78vh;
}
.eyebrow { color: var(--muted); margin: 0; }
.hero__name {
  margin: 0;
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.86;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__lede {
  margin: 28px 0 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.5;
  color: #3d3a37;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  padding: 16px 34px;
  border: 1px solid var(--ink);
  transition: background 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--bg); color: var(--ink); }

.hero__photo {
  position: relative;
  min-width: 0;
  min-height: 78vh;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.5) 6%, #000 18%);
  mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.5) 6%, #000 18%);
}
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Sections */
.section { padding: 96px var(--pad); border-bottom: 1px solid var(--rule); }
.section--dark {
  background: var(--ink);
  color: var(--bg);
  border-bottom: 0;
}
.section--dark .section__num { color: var(--dark-muted); }
.section__head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 56px; }
.section__head--split {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 48px;
}
.section__title { display: flex; align-items: baseline; gap: 20px; }
.section__num { color: var(--muted); }
.section h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.about__photo { min-width: 0; }
.about__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about__text { min-width: 0; display: flex; flex-direction: column; gap: 24px; padding: 8px 0; }
.lede { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 500; text-wrap: pretty; }
.facts { margin: 0; display: grid; gap: 18px; }
.fact {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.facts dt { color: var(--muted); letter-spacing: 0.14em; }
.facts dd { margin: 0; font-size: 15px; }
.facts__label { margin: 8px 0 0; }

/* Params */
.params {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 1px;
  background: #2c2a28;
  border: 1px solid #2c2a28;
}
.param { background: var(--ink); padding: 28px 24px; }
.param dt { color: var(--dark-muted); letter-spacing: 0.18em; margin-bottom: 14px; }
.param dd {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Portfolio */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab {
  padding: 14px 26px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: 0.18em;
  transition: background 0.18s ease, color 0.18s ease;
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }

.panel + .panel { margin-top: 56px; }
.panel[hidden] { display: none; }
.panel__label {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}
.shot { margin: 0; min-width: 0; }
.shot__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--portrait img { aspect-ratio: 3 / 4; }
.shot--landscape img { aspect-ratio: 3 / 2; }

/* Contacts */
.contacts { display: flex; flex-direction: column; }
.contact {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: opacity 0.18s ease;
}
.contact:hover { opacity: 0.55; }
.contact__label { min-width: 110px; color: var(--muted); letter-spacing: 0.18em; }
.contact__value { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; }

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--pad);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  letter-spacing: 0.16em;
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
}
.lightbox::backdrop { background: rgba(10, 10, 10, 0.9); }
.lightbox__img { max-width: 92vw; max-height: 92vh; width: auto; height: auto; }
.lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:focus-visible { outline-color: var(--bg); }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; position: relative; }
  .hero__photo {
    -webkit-mask-image: none;
    mask-image: none;
    position: absolute;
    inset: 0;
    min-height: 0;
    z-index: 0;
  }
  .hero__text {
    position: relative;
    z-index: 1;
    color: var(--bg);
    background: linear-gradient(180deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.42) 45%, rgba(10,10,10,0.86) 100%);
  }
  .hero__text .eyebrow, .hero__lede { color: #e9e7e4; }
  .hero__lede { text-shadow: 0 1px 3px rgba(10, 10, 10, 0.55); }
  .hero__actions .btn { border-color: var(--bg); color: var(--bg); }
  .hero__actions .btn--solid { background: var(--bg); color: var(--ink); }
  .hero__actions .btn:focus-visible { outline-color: var(--bg); }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }
  .about { grid-template-columns: 1fr; }
  .about__photo { display: none; }
  .params { grid-template-columns: 1fr 1fr; }
  .bar__nav { gap: 16px; }
  .section { padding: 64px var(--pad); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* With tabs working, the tab label already names the panel. */
.js .panel__label { display: none; }
.js .panel + .panel { margin-top: 0; }
