:root {
  color-scheme: light;
  --ink: #2f1e15;
  --wine: #56231f;
  --wine-dark: #431916;
  --cream: #f7e5cd;
  --paper: #f5ecde;
  --panel: #f0e2d0;
  --line: #b38d78;
  --radius: clamp(12px, 1cqw, 20px);
  --serif: 'Portfolio Serif', serif;
  --sans: 'Golos Text', sans-serif;
  --ease: cubic-bezier(.22,.7,.18,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
main { max-width: 2048px; margin-inline: auto; container-type: inline-size; overflow: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h3, h4 { font-family: var(--sans); font-weight: 600; }
a { color: inherit; }
:is(a, button):focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
strong { font-weight: 700; }
i { font-style: normal; }
.accent { color: var(--wine); }

.section { padding: clamp(40px, 5cqw, 92px) 5cqw; }
.eyebrow { display: flex; align-items: center; gap: 2.4cqw; color: var(--wine); font: 400 3.25cqw/1 var(--serif); }
.eyebrow i, .work-note i, .contact-footer i { display: block; height: 1px; min-width: 0; flex: 1; background: var(--line); }
.display-title { text-transform: uppercase; line-height: .96; letter-spacing: -.026em; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.action { display: inline-flex; gap: .75em; justify-content: center; align-items: center; min-height: 44px; border-radius: var(--radius); background: var(--wine); color: var(--cream); text-decoration: none; }
.action :is(span, .hero-cta-arrow) { transition: transform .24s var(--ease); }

:is(.action, .platforms a) {
  position: relative; isolation: isolate;
  transition: transform .42s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
:is(.action, .platforms a)::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(114deg, #edb56e05 6%, #ffd4a45c 42%, #f5bb7d0a 81%);
  box-shadow: 0 6px 21px #8e3b2b35, inset 0 0 0 1px #ffe3b644;
  transition: opacity .32s ease, transform .55s var(--ease);
  transform: scaleX(.88);
}
@media (hover: hover) and (pointer: fine) {
  /* Keep the lower edge under the pointer while the button lifts. */
  :is(.action, .platforms a)::after {
    content: ''; position: absolute; inset: 0 0 -4px;
  }
  :is(.action, .platforms a):hover { transform: translateY(-3px); }
  :is(.action, .platforms a):hover::before { opacity: 1; transform: scaleX(1); }
  .action:hover { background: var(--wine-dark); }
  .action:hover :is(span, .hero-cta-arrow) { transform: translateX(3px); }
}
:is(.action, .platforms a):active { transform: translateY(-1px) scale(.985); }
:is(.action, .platforms a):active::before { opacity: 1; transform: scaleX(1); }

.intro-loader { display: none; }
.intro-pending main { opacity: 0; pointer-events: none; }
.intro-pending .intro-loader, .intro-loader.is-leaving {
  display: grid; position: fixed; inset: 0; z-index: 20;
  place-content: center; justify-items: center; gap: clamp(14px, 3vw, 36px);
  pointer-events: none; text-align: center;
  background: var(--paper);
  color: var(--wine);
}
.intro-title {
  font: clamp(45px, 10vw, 132px)/.87 var(--serif);
  letter-spacing: -.055em; text-transform: uppercase;
}
.intro-title span { display: block; animation: intro-type .62s var(--ease) both; }
.intro-title span + span { animation-delay: 80ms; }
.intro-rule {
  width: min(64vw, 500px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--wine), transparent);
  animation: intro-rule .64s var(--ease) both;
}
.intro-loader.is-leaving { animation: intro-away .46s ease-in-out both; }
@keyframes intro-type { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes intro-rule { from { scale: .08 1; opacity: 0; } to { scale: 1; opacity: .8; } }
@keyframes intro-away { to { opacity: 0; } }

.hero {
  --hero-unit: min(1cqw, 1.73svh);
  --hero-portrait-width: min(31.3cqw, 65svh);
  --hero-portrait-right: 11.45cqw;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: url('assets/paper-grain.webp') center / 400px,
    linear-gradient(115deg, #f0dcc7, #ecd1bb 66%);
  background-blend-mode: soft-light, normal;
  display: grid;
  grid-template-columns: minmax(0, 1.63fr) minmax(0, 1fr);
  grid-template-areas: 'mast mast' 'title .' 'subtitle .' 'details .';
  align-items: start;
  gap: 0 2cqw;
  padding: clamp(22px, 2.6 * var(--hero-unit), 52px) 5cqw clamp(40px, 5cqw, 92px);
}
.masthead { grid-area: mast; display: flex; align-items: center; gap: 2.5cqw; margin-bottom: calc(4.4 * var(--hero-unit)); }
.signature { font-size: clamp(15px, 1.45cqw, 26px); font-weight: 600; }
.mast-line { height: 1px; flex: 1; background: var(--line); }
.hero-title { grid-area: title; text-transform: uppercase; font: 400 calc(11.8 * var(--hero-unit))/.87 var(--serif); letter-spacing: -.05em; }
.hero-title span { display: block; white-space: nowrap; }
.hero-portrait {
  --portrait-height-fit: 76cqh;
  --portrait-headroom: 6%;
  position: absolute;
  z-index: -1;
  inset: clamp(54px, 3.75cqw, 77px) var(--hero-portrait-right) 16px auto;
  width: var(--hero-portrait-width);
  container-type: size;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
}
.hero-original {
  position: absolute;
  width: max(113cqw, var(--portrait-height-fit));
  max-width: none;
  left: 50%;
  top: var(--portrait-headroom);
  /* Center the face and keep the original studio wall across the full arch. */
  transform: translate(-55.45%, -17.3%);
}
.hero-subtitle { grid-area: subtitle; margin-top: calc(2.3 * var(--hero-unit)); font-size: clamp(19px, 2.12 * var(--hero-unit), 36px); font-weight: 600; line-height: 1.22; text-wrap: balance; }
.hero-details { grid-area: details; max-width: 49ch; margin-top: calc(1.1 * var(--hero-unit)); font-size: clamp(15px, 1.23 * var(--hero-unit), 23px); }
.hero-details > p { line-height: 1.5; }
.hero-copy-break { display: none; }
.hero-action { margin-top: 1.2em; padding: .78em 1.1em; gap: 1.55em; font-weight: 600; }
.hero-cta-arrow { flex: none; width: .9em; height: .9em; }
.hero-stats { margin-top: 1.15em; border-top: 1px solid var(--line); padding-top: .8em; }
.hero-stats dt { font: 400 clamp(34px, 3.4 * var(--hero-unit), 60px)/.95 var(--serif); letter-spacing: -.04em; color: var(--wine); }
.hero-stats dd { line-height: 1.3; margin-top: .3em; }

@media (min-width: 701px) and (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, calc(95cqw - var(--hero-portrait-right) - var(--hero-portrait-width) - 16px)) minmax(0, 1fr);
  }
}

.about { padding-top: 2cqw; }
.about .eyebrow { font-size: 2.5cqw; gap: 1.9cqw; }
.about-grid { display: grid; grid-template-columns: 58fr 39fr; gap: 3cqw; align-items: center; margin-top: .55cqw; }
.about-title { color: var(--wine); text-transform: uppercase; font-size: 7.08cqw; line-height: .94; letter-spacing: -.043em; }
.about-title span { display: block; }
.about-photo { aspect-ratio: 894 / 819; }
.about-bio { display: grid; grid-template-columns: 46fr 52fr; gap: 2cqw; margin-top: 1.45cqw; padding-top: 2.1cqw; border-top: 1px solid var(--line); }
.about-bio p { font-size: max(15px,1.71cqw); line-height: 1.28; }
.about-bio p + p { margin-top: 1.15cqw; }
.about-bio .bio-name { color: var(--wine); font-size: 3.66cqw; line-height: 1.05; font-weight: 700; letter-spacing: -.035em; }
.about-bio .bio-role { font-size: 2.02cqw; margin-top: .9cqw; }

.cases { padding: clamp(25px, 1.75cqw, 36px) 3.8cqw clamp(36px, 3.2cqw, 66px); }
.cases .eyebrow { margin-inline: .55cqw; font-size: 3.4cqw; }
.cases-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6cqw;
  margin-top: 2.62cqw;
  padding-inline-start: 1.75cqw;
  font-size: 6cqw;
  line-height: .815;
  letter-spacing: -.027em;
}
.cases-title small { display: block; font-size: .59em; line-height: .95; letter-spacing: 0; margin-bottom: .17em; }
.case-number {
  position: relative;
  top: .04em;
  flex: none;
  color: var(--wine);
  font-size: 20.2cqw;
  line-height: .8;
  letter-spacing: -.06em;
}
.case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.36cqw, 28px);
  margin-top: clamp(26px, 3.38cqw, 69px);
}
.case-list li {
  --case-art-width: clamp(95px, 13.25cqw, 244px);
  --case-inset: clamp(16px, 2.25cqw, 46px);
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-block-size: clamp(218px, 20.55cqw, 421px);
  padding: clamp(16px, 1.62cqw, 33px) var(--case-inset) clamp(14px, 1.42cqw, 30px);
}
.case-art {
  position: absolute;
  z-index: -1;
  inset: auto 0 0 auto;
  width: var(--case-art-width);
  pointer-events: none;
}
.case-list h3 {
  font-size: clamp(20px, 2cqw, 41px);
  font-weight: 800;
  line-height: 1.2;
  hyphens: auto;
  overflow-wrap: anywhere;
}
.case-title-word { display: inline-block; max-width: 100%; }
.case-list p {
  margin-top: 1em;
  font-size: clamp(16px, 1.46cqw, 30px);
  font-weight: 500;
  line-height: 1.4;
}
.case-list li:not(:first-child) p { max-width: 12em; }
.case-list li:last-child p { margin-top: .57em; }
.case-link {
  display: flex;
  align-items: center;
  gap: .55em;
  min-height: 44px;
  color: var(--wine);
  font-size: clamp(15px, 1.37cqw, 28px);
  font-weight: 800;
  text-decoration-thickness: .075em;
  text-underline-offset: .22em;
}
.case-link .link-arrow { flex: none; width: .9em; height: .9em; transition: transform .24s var(--ease); }
@media (hover: hover) { .case-link:hover .link-arrow { transform: translate(2px, -2px); } }
@media (min-width: 701px) and (max-width: 1100px) {
  .case-list li {
    --case-art-width: clamp(80px, 11.3cqw, 116px);
    grid-template-rows: auto auto 1fr auto;
  }
  .case-art {
    position: static;
    align-self: end;
    justify-self: end;
    margin-inline-end: calc(-1 * var(--case-inset));
  }
}

.work-top { display: grid; grid-template-columns: 1.75fr 1fr; gap: 2.65cqw; }
.work .eyebrow { color: var(--ink); font-size: 2.24cqw; gap: 1.9cqw; }
.work-title { margin-top: 1.1cqw; font-size: 7.1cqw; line-height: .96; letter-spacing: -.055em; }
.work-title span { display: block; }
.work-title span + span { margin-left: 3.1cqw; }
.work-stats { display: grid; gap: .9cqw; align-self: end; }
.work-stats > div { background: linear-gradient(134deg,#632d28,#4e211e); border: 1px solid #743d34; position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: 0 .45cqw .72cqw #5b332522; color: var(--cream); display: grid; grid-template-columns: 39% 61%; align-items: center; min-height: 5.95cqw; padding: .65cqw 1.55cqw; }
.work-stats > div::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 2.3cqw; opacity: .48; background: #bc856a55; clip-path: polygon(100% 17%,100% 100%,0 100%); }
.work-stats dt { font: 4cqw/1 var(--serif); letter-spacing: -.05em; }
.work-stats dd { font-size: max(14px,1.4cqw); line-height: 1.2; padding-left: 1.25cqw; border-left: 1px solid #e8ba9560; }
.steps { --column-gap: 4.15cqw; margin-top: 3.9cqw; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px, 1.8cqw, 30px) var(--column-gap); }
.steps > li { display: flex; align-items: center; position: relative; gap: .95cqw; min-height: 9.55cqw; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1cqw 1.55cqw; }
.step-number { display: grid; place-items: center; width: 4cqw; flex: 0 0 4cqw; height: 4cqw; background: linear-gradient(140deg,#753a34,#582824); border-radius: 50%; color: var(--cream); font: 2cqw/1 var(--serif); }
.steps li > div { border-left: 1px solid #ac8773; padding-left: 1.25cqw; }
.steps h3 { color: var(--wine); font-size: clamp(14px, 1.58cqw, 30px); line-height: 1.2; }
.steps p { margin-top: .42cqw; font-size: max(14px,1.3cqw); line-height: 1.2; color: #614940; }
.steps li:is(:nth-child(1),:nth-child(2),:nth-child(4),:nth-child(5))::after { content: '⟶'; display: grid; place-items: center; position: absolute; inset: 0 auto 0 calc(100% + 1px); width: var(--column-gap); color: #906450; font-size: 2.3cqw; }
.work-note { display: flex; gap: 2.8cqw; align-items: center; color: var(--wine); font: italic 400 clamp(17px, 2cqw, 34px)/1.35 var(--sans); margin-top: 5cqw; text-align: center; }

.panel { background: var(--panel); border: 1px solid #d5b9a2; border-radius: var(--radius); }
.audience-lead { max-width: 24ch; margin-top: .4em; font: clamp(34px, 5.25cqw, 102px)/1.03 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.audience-grid, .requests-grid { display: grid; gap: clamp(12px, 1.45cqw, 28px); margin-top: clamp(22px, 2.65cqw, 48px); }
.audience-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.audience-card, .request-card { padding: clamp(16px, 1.8cqw, 36px); font-size: clamp(15px, 1.25cqw, 24px); line-height: 1.48; }
.audience-card { display: flex; flex-direction: column; gap: .85em; background: #edd2af; border: 1px solid #783e32; box-shadow: 0 6px 18px #57291b16; color: #291a14; }
.audience-number { color: var(--wine); font: clamp(36px, 3.8cqw, 68px)/.95 var(--serif); letter-spacing: -.035em; }
.audience-card h3 { color: var(--wine); font-size: clamp(17px, 1.65cqw, 30px); line-height: 1.2; }
.audience-benefit { margin-top: auto; padding-top: .85em; border-top: 1px solid #a47761; color: var(--wine-dark); }
.requests-title { font-size: clamp(38px, 6cqw, 115px); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.requests-lead { margin-top: .7em; font-size: clamp(16px, 1.6cqw, 27px); line-height: 1.4; }
.requests-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.request-card { grid-column: span 2; display: flex; align-items: flex-start; gap: .8em; color: var(--wine); }
.request-card:nth-child(4) { grid-column: 2 / span 2; }
.request-card svg, .contact-phone { flex: 0 0 auto; width: clamp(24px, 2.4cqw, 42px); fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.skills-title { font-size: 8cqw; text-align: center; font-variant: small-caps; text-transform: none; margin-bottom: 1.3cqw; }
.skills-grid { display: grid; grid-template-columns: minmax(0,1fr) 24.8cqw minmax(0,1fr); grid-template-areas: 's1 photo s2' 's3 photo s4'; gap: 1.55cqw 1.35cqw; align-items: stretch; padding-block: 2.7cqw 1.15cqw; }
.skills-photo { grid-area: photo; align-self: stretch; justify-self: center; width: 100%; min-width: 0; padding: .33cqw; margin-top: -2.7cqw; margin-bottom: -1.15cqw; border: 1px solid #9a6f53; border-radius: 50% 50% 0 0 / 26% 26% 0 0; overflow: hidden; aspect-ratio: 506 / 955; }
.skills-photo img { border-radius: 50% 50% 0 0 / 26% 26% 0 0; object-position: center; }
.skill-card:nth-of-type(1) { grid-area: s1; }
.skill-card:nth-of-type(2) { grid-area: s2; }
.skill-card:nth-of-type(3) { grid-area: s3; }
.skill-card:nth-of-type(4) { grid-area: s4; }
.skill-card { overflow: hidden; display: flex; flex-direction: column; }
.skill-card h3 { position: relative; background: linear-gradient(148deg,#652d25,#4d201c); color: var(--cream); font-size: clamp(16px, 1.75cqw, 32px); line-height: 1.2; padding: 1cqw 3.8cqw 1cqw 1.7cqw; }
.skill-card h3::after, .year::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 3.8cqw; background: url('assets/badge-fold.svg') center / 100% 100% no-repeat; pointer-events: none; }
.skill-card > div { display: grid; align-content: space-between; flex: 1; padding: clamp(16px, 1.65cqw, 30px); font-size: max(14px,1.32cqw); line-height: 1.43; }
.skill-card p + p, .blog-panel p + p { margin-top: .62cqw; padding-top: .72cqw; border-top: 1px solid #b68b73a6; }

.blog .eyebrow { text-transform: uppercase; font-size: 3.1cqw; gap: 1.45cqw; }
.blog-title { font-size: 8.53cqw; margin-block: .9cqw 3.35cqw; }
.blog-grid { display: grid; grid-template-columns: 1.22fr 1fr; gap: 3.2cqw; }
.blog-photo { aspect-ratio: 988 / 639; border-radius: var(--radius); box-shadow: .35cqw .35cqw #692f2738; }
.blog-copy { padding-top: 1.1cqw; }
.blog-copy h3 { font-size: clamp(17px, 2.05cqw, 36px); line-height: 1.2; text-transform: uppercase; margin-bottom: .85em; }
.blog-panel { padding: clamp(16px, 1.8cqw, 36px); font-size: max(15px,1.45cqw); line-height: 1.48; }
.blog-panel strong { font-weight: 600; }
.blog-panel p + p { margin-top: 1.25cqw; padding-top: .95cqw; }
.platforms { display: flex; gap: 1.7cqw; margin-top: 2.3cqw; }
.platforms li { width: 12.1cqw; }
.platforms a { display: flex; align-items: center; justify-content: center; gap: .8cqw; min-height: max(44px, 4.1cqw); font: 500 clamp(15px, 1.5cqw, 26px)/1 var(--sans); background: var(--panel); border: 1px solid #ae8068; border-radius: 100px; text-decoration: none; }
.platforms li:first-child { width: 11cqw; }
.platforms li:nth-child(2) a { color: var(--cream); background: linear-gradient(140deg,#673027,#491d19); border-color: #672d25; }
.platforms img { width: 2.55cqw; height: auto; }
.platforms li:last-child img { width: 2.12cqw; }

.education-title { font-size: 8.05cqw; margin-bottom: 6.65cqw; }
.schools { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 3.1cqw 0 1.65cqw; }
.schools article { position: relative; display: flex; flex-direction: column; padding-inline: 2.22cqw; min-height: 14.1cqw; }
.schools article + article { border-left: 1px solid #b58b70; }
.year { position: absolute; top: -4.85cqw; left: 2.22cqw; overflow: hidden; min-width: 7.35cqw; padding: .47cqw .85cqw; border-radius: .62cqw; border: 1px solid #a47860; box-shadow: 0 .34cqw .6cqw #6f483835; background: linear-gradient(135deg,#6e3228,#4b211c); color: var(--cream); font: max(14px, 1.65cqw)/1.12 var(--serif); }
.year::after { width: 2.25cqw; }
.schools h3, .courses h4 { font-size: clamp(16px, 1.7cqw, 30px); line-height: 1.23; color: var(--wine); }
.schools p { margin-top: auto; padding-block: 1.2cqw 2.1cqw; color: #50382e; font: italic max(14px,1.48cqw)/1.28 var(--sans); }
.courses { position: relative; display: grid; grid-template-columns: .95fr repeat(3,1fr); background: linear-gradient(148deg,#632b22,#411915); border: 1px solid #966349; border-radius: var(--radius); color: var(--cream); margin-top: 4.45cqw; padding: 2.25cqw .25cqw; }
.courses > * { padding-inline: 2cqw; }
.courses > h3 { align-self: center; font-size: clamp(15px, 1.65cqw, 30px); line-height: 1.25; }
.courses article { border-left: 1px solid #bd8f7066; }
.courses article > span { display: block; color: #e3c3a6; font: max(14px, 1.52cqw)/1.1 var(--serif); margin-bottom: .52cqw; }
.courses h4 { color: inherit; }
.courses p { margin-top: .42cqw; font-size: max(14px, 1.28cqw); line-height: 1.3; }
.courses em { font: italic max(13px,1.32cqw)/1.3 var(--sans); }

.contact { padding: clamp(40px, 5cqw, 92px) 5cqw; }
.contact-inner { max-width: 78%; margin-inline: auto; }
.contact-title { font-size: 6.92cqw; letter-spacing: -.039em; text-align: center; padding-bottom: 1.95cqw; border-bottom: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 56% 44%; margin-top: 2.6cqw; }
.contact-grid h3 { color: var(--wine); font-size: clamp(20px, 2.45cqw, 42px); line-height: 1.16; }
.formats { padding-right: 2.55cqw; }
.formats ul { margin-top: .65cqw; }
.formats li { display: flex; gap: 1.25cqw; align-items: center; padding: .7cqw 0; }
.formats li + li { border-top: 1px solid #ad856d99; }
.formats li img { width: 4.8cqw; height: 4.48cqw; flex: 0 0 auto; object-fit: contain; padding: .85cqw; background: linear-gradient(135deg,#f6e5cb,#edd0b1); border-radius: .8cqw; border: 1px solid #c7a181; box-shadow: 0 .35cqw .7cqw #75482926; }
.formats h4 { font-size: clamp(16px, 1.55cqw, 28px); line-height: 1.2; }
.formats p { font-size: max(14px,1.5cqw); line-height: 1.1; margin-top: .35cqw; }
.connection { padding: 0 0 0 2.95cqw; border-left: 1px solid var(--line); }
.telegram { width: 100%; justify-content: center; margin-block: 2cqw; padding: .75em; border: 1px solid #874f40; font: 600 clamp(15px, 1.55cqw, 28px)/1.25 var(--sans); text-align: center; }
.connection address { display: grid; gap: 1.72cqw; color: #662f27; font: max(15px,1.93cqw)/1 var(--sans); }
.connection address p { display: flex; gap: 1.9cqw; align-items: center; }
.connection address :is(img, svg) { width: clamp(21px, 2.4cqw, 46px); flex: 0 0 auto; }
.connection address a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .16em; overflow-wrap: anywhere; }
.connection address em { color: var(--ink); }
.contact-footer { display: flex; gap: 3.65cqw; align-items: center; margin-top: 3.4cqw; font: 500 clamp(15px, 1.7cqw, 30px)/1.25 var(--sans); color: var(--wine); }

.motion [data-in] { --shift-x: 0px; --shift-y: 22px; --scale: 1; }
.motion [data-in="left"] { --shift-x: -24px; --shift-y: 8px; }
.motion [data-in="right"] { --shift-x: 24px; --shift-y: 8px; }
.motion [data-in="image"] { --shift-y: 14px; --scale: .985; }
.motion [data-in="rule"] { --shift-y: 0px; --scale: .06; transform-origin: left center; }
.motion [data-in]:not(.in-view):not(:focus-within) { opacity: 0; }
.motion [data-in].in-view { animation: editorial-in var(--duration,.75s) var(--ease) var(--delay,0ms) both; }
html.intro-pending.motion [data-in].in-view { animation-play-state: paused; }
.motion .hero [data-in] { --shift-y: 10px; }
.motion .hero .hero-portrait { --shift-y: 0px; }
@keyframes editorial-in {
  from { opacity: 0; transform: translate(var(--shift-x), var(--shift-y)) scaleX(var(--scale)); }
  to { opacity: 1; transform: none; }
}
.about-photo, .blog-photo { overflow: hidden; }
.about-photo img, .blog-photo img { transform: scale(1.055) translateY(var(--photo-offset, 0%)); }
@supports (animation-timeline: view()) {
  .about-photo img, .blog-photo img { animation: photo-settle linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes photo-settle { from { transform: scale(1.055) translateY(1%); } to { transform: scale(1.055) translateY(-1%); } }
}

@media (max-width: 1100px) and (min-width: 701px) {
  .skills-grid { grid-template-columns: minmax(0, 1fr) 22cqw minmax(0, 1fr); }
  .skills-photo { align-self: center; }
  .contact-inner { max-width: 90%; }
  .wide-break { display: none; }
}
@media (max-width: 700px) {
  .section { padding: 35px 5.8cqw 45px; }
  .eyebrow, .about .eyebrow, .cases .eyebrow, .work .eyebrow, .blog .eyebrow { font-size: clamp(24px,6.1cqw,38px); gap: 4cqw; }
  .wide-break { display: none; }
  .hero {
    /* A short viewport may scroll, but must keep the reference crop and type scale. */
    --hero-art-unit: min(1cqw, 4.7px);
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr) calc(57.7 * var(--hero-art-unit) + 7px);
    grid-template-areas: 'mast mast' 'title portrait' 'subtitle subtitle' 'details details';
    align-content: start;
    gap: 0 8px;
    padding: 19px 5.65cqw 24px;
    text-align: center;
  }
  .masthead { gap: 16px; margin-bottom: 28px; }
  .signature { font-size: clamp(15px, 3.98cqw, 18px); }
  .hero-title {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    writing-mode: vertical-rl;
    text-orientation: sideways;
    transform: rotate(180deg);
    font-size: calc(16.15 * var(--hero-art-unit));
    line-height: .86;
    letter-spacing: 0;
  }
  .hero-title span:first-child { margin-inline-start: calc(7.7 * var(--hero-art-unit)); }
  .hero-title span + span { margin-inline-start: calc(34 * var(--hero-art-unit)); }
  .hero-portrait {
    grid-area: portrait;
    position: relative;
    z-index: auto;
    inset: auto;
    width: calc(100% - 7px);
    aspect-ratio: 225 / 415;
  }
  .hero-original {
    width: 134.5%;
    top: auto;
    bottom: 0;
    transform: translateX(-55.45%);
  }
  .hero-subtitle {
    max-width: 21ch;
    margin: 23px auto 0;
    font-size: clamp(19px, 5.65cqw, 26px);
    line-height: 1.19;
  }
  .hero-details { width: 100%; max-width: 49ch; margin: 12px auto 0; font-size: clamp(14px, 3.6cqw, 17px); }
  .hero-details > p { line-height: 1.46; text-wrap: balance; }
  .hero-stats { margin-top: 15px; padding-top: 11px; }
  .hero-stats dt { font-size: clamp(38px, 11.8cqw, 52px); }
  .hero-action { width: 100%; min-height: 50px; margin-top: 17px; font-size: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 4.5cqw; margin-top: 6.3cqw; }
  .about-title { font-size: 10.37cqw; }
  .about-photo { width: 92%; justify-self: center; }
  .about-bio { grid-template-columns: 1fr; gap: 4.5cqw; margin-top: 6cqw; padding-top: 5cqw; }
  .about-bio p { font-size: clamp(15px,4cqw,20px); }
  .about-bio p + p { margin-top: 2.5cqw; }
  .about-bio .bio-name { font-size: 7.1cqw; }
  .about-bio .bio-role { font-size: clamp(16px,4.35cqw,25px); margin-top: 2.4cqw; }
  .audience-grid, .requests-grid { grid-template-columns: minmax(0, 1fr); }
  .request-card:nth-child(n) { grid-column: auto; }
  .cases { padding: clamp(36px, 7cqw, 49px) 5cqw; }
  .cases .eyebrow { margin-inline: 0; }
  .cases-title { margin-top: 5cqw; padding-inline-start: 0; font-size: clamp(29px, 10cqw, 67px); line-height: .92; gap: clamp(10px, 3.4cqw, 22px); }
  .case-number { top: -.035em; font-size: clamp(92px, 32cqw, 207px); }
  .case-list { grid-template-columns: minmax(0, 1fr); margin-top: 6.5cqw; gap: 3cqw; }
  .case-list li { --case-art-width: clamp(110px, 38cqw, 210px); min-block-size: clamp(202px, 56cqw, 280px); }
  .case-list h3 { font-size: clamp(21px, 5.65cqw, 31px); }
  .case-list p { margin-top: .75em; font-size: clamp(16px, 4.15cqw, 23px); }
  .case-link { font-size: clamp(15px, 4cqw, 21px); }
  .work-top { grid-template-columns: 1fr; gap: 5.4cqw; }
  .work-title { font-size: 11.6cqw; margin-top: 4cqw; }
  .work-title span + span { margin-left: 3.4cqw; }
  .work-stats { gap: 2.2cqw; }
  .work-stats > div { min-height: 13cqw; padding: 1.4cqw 3cqw; }
  .work-stats dt { font-size: 9cqw; }
  .work-stats dd { padding-left: 3.4cqw; font-size: max(15px,4.3cqw); }
  .steps { grid-template-columns: 1fr; gap: 4.1cqw; margin: 6cqw 0 0; }
  .steps > li { min-height: 18cqw; padding: 3cqw 4cqw; gap: 3.5cqw; }
  .step-number { width: 10cqw; height: 10cqw; flex-basis: 10cqw; font-size: 4.5cqw; }
  .steps li > div { padding-left: 3.5cqw; }
  .steps h3 { font-size: clamp(16px,4.65cqw,24px); }
  .steps p { font-size: max(14px,3.6cqw); margin-top: 1.5cqw; }
  .steps li:nth-child(n)::after { content: '↓'; position: absolute; display: grid; place-items: center; color: #906450; inset: 100% auto auto 7.9cqw; width: 2.3cqw; height: 4.1cqw; font-size: 4cqw; line-height: 1; }
  .steps li:last-child::after { display: none; }
  .work-note { margin-top: 6.8cqw; gap: 2.5cqw; }
  .work-note span { max-width: 75%; }
  .skills-title { font-size: clamp(32px,10.6cqw,62px); text-align: left; }
  .skills-title span { display: block; }
  .skills-grid { grid-template-columns: 1fr; grid-template-areas: 'photo' 's1' 's2' 's3' 's4'; padding: 0; margin-top: 6cqw; gap: 3.6cqw; }
  .skills-photo { width: 62%; justify-self: center; aspect-ratio: 3 / 4; margin: 0 0 1.5cqw; padding: 4px; border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
  .skills-photo img { object-position: center 18%; }
  .skill-card h3 { padding: 2.8cqw 8cqw 2.8cqw 3.9cqw; font-size: clamp(17px, 4.7cqw, 23px); }
  .skill-card h3::after { width: 8cqw; }
  .skill-card > div { font-size: clamp(15px,3.75cqw,21px); }
  .skill-card p + p, .blog-panel p + p { margin-top: 2.6cqw; padding-top: 2.7cqw; }
  .blog-title { font-size: 12cqw; margin-block: 3.5cqw 5cqw; }
  .blog-grid { grid-template-columns: 1fr; gap: 6cqw; }
  .platforms { margin-top: 5cqw; gap: 3cqw; }
  .platforms li, .platforms li:first-child { width: auto; flex: 1; }
  .platforms a { gap: 2cqw; }
  .platforms img { width: 5.65cqw; }
  .platforms li:last-child img { width: 4.65cqw; }
  .blog-panel { font-size: clamp(15px,3.85cqw,22px); }
  .education-title { font-size: 10cqw; margin-bottom: 9cqw; }
  .education-title span { display: block; }
  .schools { grid-template-columns: 1fr; padding: 4cqw; }
  .schools article { min-height: 0; padding: 4.5cqw 0 4cqw; }
  .schools article + article { border-left: 0; border-top: 1px solid #b58b70; padding-top: 7.5cqw; margin-top: 1.4cqw; }
  .year { left: 0; min-width: 20cqw; padding: 1.3cqw 2.3cqw; font-size: 4.8cqw; border-radius: 1.6cqw; }
  .schools article:first-child .year { position: relative; top: auto; align-self: flex-start; margin-bottom: 3cqw; }
  .schools article + article .year { top: -3.4cqw; }
  .year::after { width: 5.4cqw; }
  .schools h3, .courses h4 { font-size: clamp(18px, 5cqw, 25px); }
  .schools p { padding: 2.4cqw 0 0; font-size: max(14px,3.8cqw); }
  .courses { grid-template-columns: 1fr; padding: 4cqw 5cqw; margin-top: 6cqw; }
  .courses > * { padding-inline: 0; }
  .courses > h3 { font-size: clamp(19px, 5cqw, 27px); padding-bottom: 3.5cqw; }
  .courses > h3 br { display: none; }
  .courses article { padding-block: 3.5cqw; border-left: 0; border-top: 1px solid #bd8f7066; }
  .courses article > span { font-size: 4.5cqw; margin-bottom: 1.45cqw; }
  .courses p { font-size: max(16px,4.7cqw); margin-top: 1.35cqw; }
  .courses em { font-size: max(14px,3.85cqw); }
  .contact { padding: 35px 5.8cqw 45px; }
  .contact-inner { max-width: none; }
  .contact-title { font-size: 11cqw; padding-bottom: 4.8cqw; }
  .contact-grid { grid-template-columns: minmax(0,1fr); gap: 5cqw; margin-top: 4.6cqw; }
  .formats { padding: 0; }
  .formats ul { margin-top: 2.2cqw; }
  .formats li { gap: 3cqw; padding-block: 2.1cqw; }
  .formats li img { width: 11cqw; height: 10.5cqw; padding: 1.7cqw; border-radius: 2cqw; }
  .formats h4 { font-size: clamp(16px, 4.55cqw, 23px); }
  .formats p { font-size: max(13px,3.3cqw); margin-top: 1cqw; }
  .connection { border-left: 0; border-top: 1px solid var(--line); padding: 4.5cqw 0 0; }
  .telegram { margin-block: 3.1cqw 4.3cqw; }
  .connection address { gap: 8px; font-size: max(15px,4.1cqw); }
  .connection address p { gap: 3cqw; }
  .contact-footer { margin-top: 7cqw; gap: 2.4cqw; text-align: center; }
  .motion [data-in] { --shift-y: 15px; }
  .motion [data-in="left"] { --shift-x: -11px; --shift-y: 6px; }
  .motion [data-in="right"] { --shift-x: 11px; --shift-y: 6px; }
  .motion [data-in="rule"] { --shift-y: 0px; }
}
@media (min-width: 370px) and (max-width: 440px) {
  .hero-copy-break { display: inline; }
}
@media (max-width: 700px) and (max-height: 660px) {
  .hero { padding-block: 15px 16px; }
  .masthead { margin-bottom: 17px; }
  .hero-subtitle { margin-top: 16px; }
  .hero-details { margin-top: 8px; }
  .hero-stats { margin-top: 10px; padding-top: 7px; }
  .hero-action { margin-top: 12px; }
}
