:root {
  --paper: #ede8dd;
  --ink: #181716;
  --muted: #77726b;
  --line: rgba(24, 23, 22, 0.3);
  --accent: #e9742f;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.45), transparent 28rem), var(--paper);
  font-family: "Manrope", Arial, sans-serif;
}

.page { width: min(100% - 40px, 1400px); margin: 40px auto 28px; }
.portfolio { overflow: hidden; border: 1px solid var(--line); background: rgba(246, 242, 234, 0.46); }
.hero-canvas { overflow: hidden; aspect-ratio: 1672 / 493; border-bottom: 1px solid var(--line); background: var(--paper); }
.hero-canvas img { display: block; width: 100%; height: auto; }
.eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase; }

.works-section { padding: 34px 38px 38px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.section-heading h2 { margin: 9px 0 0; font-size: clamp(28px, 2.7vw, 40px); font-weight: 800; letter-spacing: 0; line-height: 1; text-transform: uppercase; }
.works-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.work-link { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 14px; min-height: 96px; padding: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.12); color: inherit; text-decoration: none; transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease; }
.work-link:hover, .work-link:focus-visible { border-color: var(--accent); background: rgba(255, 252, 247, 0.58); outline: none; transform: translateY(-2px); }
.work-copy { display: grid; gap: 6px; min-width: 0; }
.work-title { font-size: 16px; font-weight: 800; line-height: 1.15; }
.work-subtitle { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.4; }
.work-arrow { color: #908b84; font-size: 22px; line-height: 1; transition: color 140ms ease, transform 140ms ease; }
.work-link:hover .work-arrow, .work-link:focus-visible .work-arrow { color: var(--accent); transform: translateX(3px); }

.profile-footer { display: grid; grid-template-columns: 1.06fr 1fr 1.16fr; border-top: 1px solid var(--line); }
.footer-panel { min-height: 194px; padding: 30px 38px; }
.footer-panel + .footer-panel { border-left: 1px solid var(--line); }
.interests-panel ul { display: grid; gap: 7px; margin: 20px 0 0; padding: 0; color: #5d5852; font-size: 13px; line-height: 1.35; list-style: none; }
.languages-panel { display: grid; align-content: start; gap: 15px; }
.language-row { display: grid; grid-template-columns: 92px minmax(110px, 1fr); align-items: center; gap: 14px; color: #5d5852; font-size: 12px; }
.language-row:first-of-type { margin-top: 7px; }
.language-level { display: block; height: 10px; border: 1px solid rgba(24, 23, 22, 0.48); background: linear-gradient(to right, var(--accent) 0 var(--level), transparent var(--level)); }
.language-level-full { --level: 100%; }
.language-level-half { --level: 60%; }
.contacts-panel { display: grid; align-content: center; gap: 12px; font-style: normal; }
.contacts-panel a { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; color: inherit; font-size: 13px; text-decoration: none; }
.contacts-panel span { color: var(--muted); }
.contacts-panel strong { font-weight: 600; }
.contacts-panel a:hover, .contacts-panel a:focus-visible { color: var(--accent); outline: none; }
.copyright { margin: 18px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

@media (max-width: 850px) {
  .page { width: min(100% - 24px, 720px); margin-top: 12px; }
  .works-section { padding: 28px; }
}

@media (max-width: 1100px) {
  .works-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 590px) {
  .works-list { grid-template-columns: 1fr; }
  .profile-footer { grid-template-columns: 1fr; }
  .footer-panel + .footer-panel { border-right: 0; border-left: 0; }
  .section-heading { display: grid; gap: 14px; }
  .works-section, .footer-panel { padding: 28px; }
  .footer-panel + .footer-panel { border-top: 1px solid var(--line); }
  .contacts-panel { min-height: 160px; }
}
