/* ---------- Tokens ---------- */
:root {
  --page:      #E9E4DA;
  --paper:     #FBF7EF;
  --ink:       #2B2724;
  --tangerine: #FF5A1F;
  --muted:     #6F685C;
  --stone:     #8C8578;
  --line:      #DCCBAE;

  --display: 'Bebas Neue', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }

/* Icon mask helper: SVG tinted with currentColor */
.icon {
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}

/* ---------- Card ---------- */
.card {
  height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(24px, 3.2vh, 40px) clamp(32px, 4vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2.4vh, 24px);
}

/* ---------- Masthead ---------- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  border-bottom: 4px solid var(--ink);
  padding-bottom: 20px;
}
.masthead__lead { display: flex; flex-direction: column; gap: 14px; }
.masthead__name { display: flex; align-items: center; gap: 22px; }
.masthead__name h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 96px);
  line-height: 0.84;
}
.portrait {
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.socials { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.social {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  padding: 7px 13px;
  font-size: 15px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.social:hover { background: var(--ink); color: var(--paper); }

.masthead__meta {
  max-width: 330px;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.based {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  text-wrap: pretty;
}

/* ---------- Body grid ---------- */
.body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 56px;
  align-items: stretch;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow--tangerine { color: var(--tangerine); }

/* ---------- Timeline ---------- */
.story { display: flex; flex-direction: column; gap: 22px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
}
.tl__marker {
  position: relative;
  width: 18px;
  align-self: stretch;
  justify-self: center;
}
/* dot */
.tl__marker::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
/* connecting line */
.tl__marker::after {
  content: "";
  position: absolute;
  top: 21px;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--line);
}
.tl--last .tl__marker::after { display: none; }

.tl__marker--tangerine::before { background: var(--tangerine); }
.tl__marker--ink::before       { background: var(--ink); }
.tl__marker--stone::before     { background: var(--stone); }
.tl__marker--hollow::before    { background: transparent; border: 2px solid var(--line); }

.tl__body { padding-bottom: 20px; }
.tl--last .tl__body { padding-bottom: 0; }
.tl__title { font-size: 21px; font-weight: 700; line-height: 1.2; }
.tl__title mark { background: var(--tangerine); color: var(--paper); padding: 0 6px; }
.tl__desc { font-size: 15px; color: var(--muted); line-height: 1.5; margin-top: 2px; }

/* ---------- Building ---------- */
.building { display: flex; flex-direction: column; gap: 16px; min-height: 0; }

.project {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 3px solid var(--ink);
  padding: 14px 20px;
  background: var(--paper);
  transition: background .15s ease, color .15s ease;
}
.project:hover { background: var(--ink); color: var(--paper); }
.project__logo {
  width: 84px;
  height: 84px;
  flex: none;
  margin-top: 2px;
  border-radius: 10px;
  object-fit: cover;
}
.project__body { flex: 1; min-width: 0; }
.project__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.project__name { font-family: var(--display); font-size: 34px; line-height: 1; }
.project__arrow { font-size: 22px; }
.project__desc { margin-top: 6px; font-size: 16px; line-height: 1.45; }

/* ---------- Instagram block ---------- */
.ig {
  flex: 0 0 auto;
  border: 3px solid var(--tangerine);
  background: var(--tangerine);
  color: var(--paper);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ig__head { display: flex; gap: 14px; align-items: center; }
.ig__avatar {
  width: 84px;
  height: 84px;
  margin-top: 2px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}
.ig__meta { flex: 1; min-width: 0; }
.ig__handle { font-family: var(--display); font-size: 30px; line-height: 1; }
.ig__desc { margin-top: 3px; font-size: 15px; line-height: 1.4; }
.ig__follow {
  flex: none;
  background: var(--paper);
  color: var(--tangerine);
  font-weight: 700;
  font-size: 15px;
  padding: 9px 16px;
  transition: background .15s ease, color .15s ease;
}
.ig__follow:hover { background: var(--ink); color: var(--paper); }

/* ---------- Footer ---------- */
.foot {
  border-top: 4px solid var(--ink);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--stone);
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
/* Short viewports — keep it a true one-pager (no scroll) on laptop screens */
@media (min-width: 901px) and (max-height: 860px) {
  .card { gap: 12px; padding-top: 20px; padding-bottom: 20px; }
  .masthead { padding-bottom: 14px; }
  .masthead__name h1 { font-size: clamp(48px, 6.4vw, 76px); }
  .portrait { width: 84px; height: 84px; }
  .story { gap: 14px; }
  .building { gap: 12px; }
  .tl__body { padding-bottom: 12px; }
  .tl__marker::after { bottom: -4px; }
  .project { padding: 10px 20px; }
  .project__logo { width: 66px; height: 66px; }
  .project__name { font-size: 28px; }
  .project__desc { margin-top: 4px; font-size: 15px; }
  .ig { padding: 12px 8px; gap: 10px; }
  .ig__avatar { width: 66px; height: 66px; }
  .ig__handle { font-size: 26px; }
  .foot { padding-top: 12px; }
}

/* ---------- Narrow screens (stack) ---------- */
@media (max-width: 900px) {
  .card { padding: 32px 28px; height: auto; min-height: 0; justify-content: flex-start; }
  .masthead { flex-direction: column; }
  .masthead__meta { max-width: none; padding-top: 0; align-items: flex-start; }
  .based { text-align: left; }
  .body { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  /* width-driven 4:5 preview when stacked (no fixed row height to fill) */
  .ig { flex: 0 1 auto; }
}

@media (max-width: 520px) {
  .card { padding: 24px 18px; }
  .masthead__name { gap: 14px; }
  .portrait { width: 76px; height: 76px; }
  .project__head { flex-direction: row; }
  .ig__head { flex-wrap: wrap; }
  .ig__meta { flex: 1 1 auto; }
  .ig__follow { order: 3; flex-basis: 100%; width: 100%; text-align: center; margin-top: 4px; }
  .foot { flex-direction: column; }
}
