/* Direction 03: plum surface, lime accent, vivid spectral chrome. */
:root {
  color-scheme: dark;
  --page: #211629;
  --surface: #17101d;
  --ink: #f0e9f2;
  --muted: #b5a7be;
  --line: #6b58724a;
  --acid: #e1ed62;
  --gutter: 4%;
  --metal: url('spectrum-metal.svg') center / 100% 100% no-repeat;
}
html { background: var(--surface); }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(160deg, #24172b 0%, #1c1222 23%, #17101d 46%, #17101d 83%, #201527 100%);
}
a:focus-visible, button:focus-visible { outline-color: var(--acid); }
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 var(--gutter);
  padding: 30px 0 25px;
  border-bottom: 1px solid var(--line);
}
.author .meta { display: block; color: var(--muted); margin-top: 4px; }
.nav { gap: 28px; }
.hero { padding: 28px var(--gutter) 35px; }
.hero-label { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); }
.hero h1 { transform: skewY(-4deg); width: max-content; max-width: 100%; }
.hero h1 > span { display: block; }
.chrome {
  color: #e2d9e9;
  background: var(--metal);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Overlapping font contours must stay filled without an internal outline. */
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 2px 1px #080610);
}
.hero h1 .chrome { width: max-content; max-width: 100%; }
.design { color: var(--acid); padding-left: .6em; white-space: nowrap; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.hero-copy { max-width: 620px; }
.hero-copy .hero-detail { color: var(--muted); margin-top: 8px; }
.hero-copy .hero-experience { color: var(--acid); }
.hero-foot a { color: var(--acid); padding: 12px 0; min-height: 44px; flex-shrink: 0; }
.work { position: relative; padding: 28px var(--gutter) 0; overflow: hidden; }
.work::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-heading h2 { color: var(--muted); white-space: nowrap; }
.work-count { margin-left: 8px; }
.section-heading button { color: var(--acid); border-bottom: 1px solid #8e944b; padding: 12px 0; min-height: 44px; }
.project { position: relative; width: 90%; margin-bottom: 80px; transform: rotate(-2deg); }
.project:nth-of-type(even) { width: 86%; margin-left: auto; transform: rotate(2deg); }
.project:nth-of-type(4n + 3) { width: 91%; }
.project-heading { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: end; gap: 20px; padding-bottom: 20px; }
.project-number { color: var(--muted); align-self: start; padding-top: 9px; }
.project-name { max-width: 260px; text-align: right; color: var(--muted); padding-bottom: 4px; }
.project-heading a:hover { color: var(--acid); }
.project-caption { padding-top: 17px; }
.project-caption p { color: #cbbdd2; }
.media { background: var(--surface); }
.media .open { background: var(--acid); }
.media-panorama { aspect-ratio: 1280 / 548; }
.media-widgets { aspect-ratio: 3 / 1; background: radial-gradient(ellipse at 50% 70%, #382341, #1c1423 75%); }
.widget-field { position: absolute; inset: 5% 6% 12%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 4%; }
.widget-cell { display: block; min-width: 0; }
.widget-preview { position: relative; display: block; aspect-ratio: 4 / 3; }
.widget-label { display: block; text-align: center; color: var(--muted); margin-top: 8px; font-size: 12px; }
.widget-preview.is-playing img { visibility: hidden; }
.project-note { color: var(--muted); opacity: 1; }
.about, .contact {
  margin: 0 var(--gutter);
  padding: 64px 0 72px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8%;
}
.about-heading > .meta, .contact-heading > .meta { color: var(--muted); }
.about h2 { margin-top: 35px; }
.about h2 .chrome { display: inline-block; max-width: 100%; }
.about-copy { padding-top: 42px; }
.about-lead { max-width: 530px; }
.about-text { margin-top: 20px; max-width: 520px; color: #cbbdd2; }
.about-other { color: var(--muted); }
.about-cta { display: inline-flex; align-items: center; gap: 32px; color: var(--acid); border-bottom: 1px solid #8e944b; padding: 12px 0; margin-top: 22px; min-height: 44px; }
.contact h2 { position: relative; width: max-content; max-width: 100%; margin-top: 35px; }
.contact h2 > span { color: var(--acid); }
.contact-arrow { font: normal .55em/1 Arial, sans-serif; vertical-align: 15%; margin-left: 18px; }
.contact-note { color: var(--muted); margin-top: 28px; }
.contact-links { padding-top: 42px; }
.contact-link { display: block; border-bottom: 1px solid var(--line); padding: 20px 0 24px; }
.contact-link:first-child { border-top: 1px solid var(--line); }
.contact-link > .meta { color: var(--muted); }
.contact-address { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-top: 9px; overflow-wrap: anywhere; }
.contact-address > span { flex-shrink: 0; color: var(--acid); }
.contact-link:hover .contact-address, .about-cta:hover { color: var(--acid); }
.together { margin: 0 var(--gutter); padding: 42px 0 52px; border-top: 1px solid var(--line); }
.together-heading { display: flex; justify-content: space-between; align-items: start; gap: 30px; }
.together-heading > .meta { color: var(--muted); margin-top: 8px; }
.together h2 { width: 60%; margin-bottom: 15px; }
.together h2 > .chrome { display: inline-block; background-size: cover; white-space: nowrap; }
.brand-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: clamp(24px, 2.8vw, 40px); row-gap: 22px; align-items: center; padding: 38px 0 12px; }
.brand { min-width: 0; height: 100px; display: flex; align-items: center; justify-content: center; }
.brand img { display: block; width: var(--logo-width, 145px); max-width: 100%; max-height: 66px; height: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.brand.microsoft { --logo-width: 158px; }
.brand.bacardi { --logo-width: 126px; }
.brand.zambon { --logo-width: 144px; }
.brand.production123 { --logo-width: 124px; }
.brand.mega { --logo-width: 132px; }
.brand.mary-kay { --logo-width: 158px; }
.brand.tbank { --logo-width: 132px; }
.brand.kinopoisk { --logo-width: 160px; }
.brand.roscongress { --logo-width: 170px; }
.brand.fesco { --logo-width: 136px; }
.brand.rosatom { --logo-width: 148px; }
.brand.bacardi img, .brand.tbank img { filter: none; }
.tnt-crop { position: relative; overflow: hidden; width: 128px; height: 45px; }
.brand.tnt4 img { position: absolute; width: 202px; height: 202px; max-width: none; max-height: none; left: -37px; top: -82px; filter: none; }
.brand-note { color: var(--muted); margin-top: 22px; max-width: 500px; }
.footer { margin: 0 var(--gutter); color: var(--muted); padding: 24px 0 30px; align-items: center; }
.footer a { padding: 12px 0; }
@media (min-width: 701px) and (max-width: 1100px) {
  .brand-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --gutter: 5%; }
  .header { padding: 20px 0 12px; display: block; }
  .nav { margin-top: 12px; gap: 12px; flex-wrap: nowrap; justify-content: space-between; max-width: none; }
  .nav a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .hero { padding-top: 24px; padding-bottom: 28px; }
  .hero-label { gap: 15px; }
  .hero-label > span:last-child { display: none; }
  .design { padding-left: .3em; }
  .hero-foot { display: block; }
  .hero-foot a { display: inline-flex; align-items: center; margin-top: 8px; }
  .work { padding-top: 24px; }
  .section-heading { margin-bottom: 28px; gap: 12px; }
  .section-heading button { white-space: nowrap; }
  .project, .project:nth-of-type(even), .project:nth-of-type(4n + 3) { width: 94%; margin-bottom: 60px; }
  .project-heading { grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 8px 10px; padding-bottom: 16px; }
  .project-number { padding-top: 7px; }
  .project-name { grid-column: 2; text-align: left; padding: 0; max-width: none; }
  .media-widgets { aspect-ratio: auto; }
  .widget-field { position: relative; inset: auto; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px 16px 54px; }
  .widget-cell { display: grid; grid-template-columns: minmax(0, 1fr) 80px; align-items: center; gap: 12px; }
  .widget-preview { aspect-ratio: 2 / 1; }
  .widget-label { text-align: left; font-size: 12px; line-height: 1.4; margin: 0; }
  .project-caption { flex-direction: column; gap: 10px; }
  .about, .contact { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 35px 0 42px; }
  .about h2, .contact h2 { margin-top: 25px; }
  .about-copy { padding-top: 30px; }
  .about-text { margin-top: 18px; }
  .about-cta { margin-top: 18px; }
  .contact-arrow { margin-left: 12px; }
  .contact-note { margin-top: 24px; }
  .contact-links { padding-top: 28px; }
  .contact-address { gap: 12px; }
  .together { padding: 30px 0 35px; }
  .together-heading { display: block; }
  .together h2 { width: auto; margin: 25px 0 0; }
  .brand-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 10px; padding: 25px 0 0; }
  .brand { height: 90px; }
  .brand img { max-width: 96%; }
  .brand-note { margin-top: 15px; }
  .footer { gap: 14px; }
}
@media (max-width: 360px) {
  .header { gap: 8px; }
  .nav { gap: 10px; }
  .brand-wall { column-gap: 20px; }
}
