:root {
  --paper: #f4ecdc;
  --paper-soft: #fbf6ec;
  --ink: #1e292d;
  --muted: #6d7774;
  --line: rgba(30, 41, 45, .18);
  --line-strong: rgba(30, 41, 45, .42);
  --wood: #b88955;
  --sage: #7a907d;
  --blue: #7f9aa5;
  --cream: #fffaf0;
  --display: "Century Gothic", "Trebuchet MS", "Gill Sans MT", sans-serif;
  --text: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --label: "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(18px, 4vw, 56px);
  align-items: center;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(244, 236, 220, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--cream);
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 58px);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.head-action,
.button,
.profile-form button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.head-action::before,
.button::before,
.profile-form button::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 10px;
  background: currentColor;
  transform: rotate(45deg);
}

.head-action:hover,
.button:hover,
.profile-form button:hover {
  transform: translateY(-2px);
}

.button-quiet {
  background: rgba(255, 250, 240, .76);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(840px, 92vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #d9c6a8;
}

.hero-image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) contrast(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(244, 236, 220, .08), rgba(244, 236, 220, .78)),
    linear-gradient(90deg, rgba(244, 236, 220, .86), rgba(244, 236, 220, .14) 58%, rgba(244, 236, 220, .05));
}

.hero-panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 36px));
  margin: clamp(92px, 14vh, 150px) clamp(18px, 5vw, 80px) clamp(46px, 8vh, 92px);
  padding: clamp(24px, 4vw, 44px);
  background: rgba(255, 250, 240, .78);
  border: 1px solid rgba(30, 41, 45, .22);
  box-shadow: 0 32px 80px rgba(80, 54, 26, .14);
  max-width: calc(100vw - 36px);
}

.eyebrow,
.card-label {
  margin: 0 0 16px;
  font-family: var(--label);
  font-size: 12px;
  font-weight: 700;
  color: #8f542d;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h1 {
  max-width: 720px;
  font-family: var(--display);
  font-size: clamp(46px, 7.8vw, 104px);
  line-height: .98;
  font-weight: 400;
  letter-spacing: 0;
}

h2 {
  max-width: 1060px;
  font-family: var(--display);
  font-size: clamp(34px, 5.6vw, 82px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0;
}

h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.12;
  font-weight: 500;
}

.hero-lead,
.section-lead {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(20px, 2.1vw, 31px);
  line-height: 1.3;
  color: #324044;
  max-width: 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: clamp(60px, 8vw, 128px) clamp(18px, 5vw, 82px);
  border-top: 1px solid var(--line);
}

.section-intro,
.role-top,
.portfolio-copy,
.request-copy,
.studio-copy {
  margin-bottom: clamp(28px, 5vw, 70px);
}

.model-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.large-image,
.wide-image {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(80, 54, 26, .12);
}

.large-image img {
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
}

figcaption {
  padding: 18px 22px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--muted);
}

.model-notes {
  display: grid;
  gap: 16px;
}

.model-notes article {
  padding: clamp(20px, 3vw, 32px);
  background: rgba(255, 250, 240, .72);
  border-left: 5px solid var(--wood);
  outline: 1px solid var(--line);
}

.model-notes span,
.mentor-path span,
.role-cell span,
.mini-matrix span {
  display: block;
  margin-bottom: 10px;
  font-family: var(--label);
  font-size: 12px;
  font-weight: 700;
  color: #8f542d;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.model-notes p,
.mentor-path p,
.role-detail p,
.profile-card p {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: #465257;
}

.competence-studio {
  background:
    linear-gradient(rgba(30, 41, 45, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 45, .045) 1px, transparent 1px),
    #f7efe0;
  background-size: 72px 72px;
}

.competence-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  gap: clamp(24px, 5vw, 64px);
  align-items: stretch;
}

.competence-map {
  position: relative;
  min-height: 520px;
  background: rgba(255, 250, 240, .58);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.thread-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.thread-lines path {
  fill: none;
  stroke: rgba(122, 144, 125, .55);
  stroke-width: .45;
}

.competence-point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  transform: translate(-50%, -50%);
  width: clamp(118px, 13vw, 180px);
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 250, 240, .86);
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(80, 54, 26, .08);
}

.competence-point.active {
  background: var(--sage);
  color: var(--cream);
  border-color: var(--sage);
}

.profile-card,
.role-detail {
  padding: clamp(24px, 4vw, 42px);
  background: #fffaf0;
  border: 1px solid var(--line-strong);
}

.profile-card h3,
.role-detail h3 {
  font-size: clamp(30px, 3.6vw, 56px);
}

.role-matrix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  background: var(--paper-soft);
}

.role-top {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.role-cell {
  min-height: 210px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  background: #f8f0e2;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.role-cell:hover,
.role-cell.active {
  transform: translateY(-3px);
  background: #e2d5bf;
  border-color: rgba(30, 41, 45, .55);
}

.role-cell strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.08;
  font-weight: 500;
}

.role-cell small {
  display: block;
  margin-top: 18px;
  font-family: var(--label);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}

.wide-image img {
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.wall-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}

.mini-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.mini-matrix div {
  min-height: 132px;
  padding: 20px;
  background: rgba(255, 250, 240, .82);
  border-top: 4px solid var(--blue);
  outline: 1px solid var(--line);
}

.mini-matrix b {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.16;
}

.portfolio-table {
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
  background: #eee4d2;
}

.image-offset {
  transform: translateY(34px);
}

.mentor-route {
  background: var(--paper-soft);
}

.mentor-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  border: 1px solid var(--line);
  background: var(--line);
}

.mentor-path article {
  position: relative;
  min-height: 270px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff8ea;
}

.mentor-path article::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  background: #fff8ea;
  transform: translateY(-50%) rotate(45deg);
}

.mentor-path article:last-child::after {
  content: none;
}

.request-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
  background:
    radial-gradient(circle at 18% 20%, rgba(184, 137, 85, .18), transparent 30%),
    #f4ecdc;
}

.profile-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  background: rgba(255, 250, 240, .82);
  border: 1px solid var(--line-strong);
}

.profile-form label {
  display: grid;
  gap: 8px;
}

.profile-form span {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-form input,
.profile-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  padding: 16px;
  font-family: var(--text);
  font-size: 18px;
}

.profile-form textarea {
  min-height: 128px;
  resize: vertical;
}

.profile-form button {
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 1040px) {
  .site-head {
    grid-template-columns: auto 1fr;
  }

  .head-action {
    display: none;
  }

  nav {
    justify-content: end;
    overflow-x: auto;
    white-space: nowrap;
  }

  .model-layout,
  .competence-board,
  .role-matrix,
  .wall-section,
  .portfolio-table,
  .request-room {
    grid-template-columns: 1fr;
  }

  .role-top {
    grid-column: auto;
  }

  .mentor-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mentor-path article::after {
    content: none;
  }
}

@media (max-width: 640px) {
  .site-head {
    padding: 12px 16px;
  }

  nav {
    display: none;
  }

  .mark {
    width: 44px;
    height: 44px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-panel {
    width: calc(100vw - 32px);
    margin: 96px 16px 28px;
    padding: 20px;
  }

  h1 {
    font-size: clamp(38px, 11.4vw, 54px);
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(29px, 8.4vw, 40px);
    line-height: 1.12;
  }

  .hero-lead,
  .section-lead {
    font-size: 17px;
    line-height: 1.42;
    max-width: 28ch;
  }

  h2 {
    max-width: 10.5ch;
    text-wrap: auto;
  }

  h3 {
    text-wrap: auto;
  }

  .section {
    padding: 52px 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .competence-map {
    min-height: 660px;
  }

  .competence-point {
    width: 132px;
    min-height: 70px;
    font-size: 13px;
  }

  .role-grid,
  .mini-matrix,
  .mentor-path {
    grid-template-columns: 1fr;
  }

  .role-cell,
  .mentor-path article {
    min-height: auto;
  }

  .image-offset {
    transform: none;
  }

  figcaption {
    font-size: 16px;
  }
}
