/* Yulia Zamyatina — site styles (Draft B "Personal brand"). Loaded after base.css. */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* header */
header.top { display: flex; justify-content: space-between; align-items: center; padding: 26px 40px; max-width: 1240px; margin: 0 auto; }
header.top .name { font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
header.top nav { display: flex; gap: 28px; align-items: center; font-size: 15px; }
header.top nav a { text-decoration: none; }
header.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lang { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.lang b { color: var(--ink); font-weight: 500; }
.lang a { text-decoration: none; }
.lang a:hover { color: var(--ink); }

/* home: hero */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; padding: 40px 0 72px; }
.hero .mono { color: var(--ink-2); }
.hero h1 { font-size: clamp(56px, 8.2vw, 112px); line-height: .96; letter-spacing: -.045em; font-weight: 500; margin: 22px 0 18px; }
.u { position: relative; display: inline-block; }
.u svg { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .32em; overflow: visible; }
.hero .lede { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.hero p.intro { margin-top: 22px; max-width: 470px; color: var(--ink-2); }
.ctas { display: flex; gap: 22px; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 15px 24px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.btn:hover { background: #000; }
.link { font-weight: 500; text-underline-offset: 4px; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ph { text-align: center; color: var(--ink-3); }
.portrait .ph .serif-i { font-size: 30px; color: var(--ink-2); display: block; margin-bottom: 6px; }
.portrait .note { position: absolute; right: 18px; bottom: 16px; transform: rotate(-6deg); font-size: 20px; }
/* hero without portrait: 2x2 grid of project images (like the cover of her PDF portfolio) */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1 / 1; }
.mosaic .tile { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--paper-2); }
.hero.has-mosaic { grid-template-columns: 1.22fr 1fr; }
.mosaic .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); transition: transform .5s ease; }
.mosaic .tile:hover img { transform: scale(calc(var(--z, 1) * 1.04)); }
.mosaic .tile:focus-visible { outline-offset: 2px; }
.mosaic .note { position: absolute; right: 14px; top: 10px; transform: rotate(-8deg); font-size: 22px; z-index: 1; }
.badge { margin-top: 28px; }

/* sections */
section.block { padding: 88px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
.sec-head .mono { color: var(--ink-3); white-space: nowrap; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--white); border-radius: 22px; padding: 30px 28px 32px; }
.card .mono { color: var(--ink-3); }
.card h3 { font-size: 23px; line-height: 1.15; letter-spacing: -.02em; font-weight: 500; margin: 26px 0 12px; }
.card p { color: var(--ink-2); font-size: 16px; }
.sum { margin-top: 40px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; }
.sum .marker { font-size: .62em; margin-left: 10px; display: inline-block; transform: rotate(-4deg); }
.sum .am { display: none; }

/* home: project cards */
.proj { display: grid; grid-template-columns: 1fr 1.15fr; border-radius: 28px; overflow: hidden; margin-bottom: 22px; text-decoration: none; color: inherit; }
.proj .txt { padding: 44px 44px 46px; display: flex; flex-direction: column; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.7); padding: 5px 9px; border-radius: 999px; }
.proj h3 { font-size: clamp(36px, 4vw, 52px); letter-spacing: -.04em; line-height: 1; font-weight: 500; margin: 26px 0 8px; }
.proj .sub { font-size: 25px; line-height: 1.15; }
.proj p.d { margin-top: 18px; max-width: 420px; font-size: 16px; }
.proj .go { margin-top: auto; padding-top: 28px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.proj .award { margin-top: 18px; align-self: flex-start; }
.proj .img { min-height: 420px; position: relative; }
.proj .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj .img.contain img { object-fit: contain; }
.proj:hover .go { text-decoration-thickness: 2px; }

/* home: services, about */
.svc { border-top: 1px solid var(--line); }
.svc .row { display: grid; grid-template-columns: 80px 1fr 1.3fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.svc .row .mono { color: var(--ink-3); }
.svc .row h3 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.svc .row p { color: var(--ink-2); }
.svc-foot { margin-top: 26px; color: var(--ink-2); }
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.about .big { font-size: clamp(40px, 5vw, 68px); line-height: 1; }
.about p + p { margin-top: 16px; }
.about p { color: var(--ink-2); }
.facts { margin-top: 30px; display: grid; grid-template-columns: 130px 1fr; gap: 12px 18px; font-size: 15px; }
.facts .mono { color: var(--ink-3); padding-top: 3px; }

/* contact footer */
.contact { background: var(--night); color: var(--paper); padding: 110px 0 60px; margin-top: 40px; }
.contact .eyebrow { color: #A9ADA4; margin-bottom: 22px; }
.contact h2 { font-size: clamp(52px, 7.4vw, 104px); line-height: .98; letter-spacing: -.045em; font-weight: 500; max-width: 1000px; }
.contact .together { color: var(--lime); font-size: clamp(40px, 5vw, 68px); display: block; margin-top: 6px; text-wrap: balance; }
.contact .mail { display: inline-block; margin-top: 48px; font-size: clamp(24px, 3vw, 38px); letter-spacing: -.02em; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.contact .meta { margin-top: 18px; color: #A9ADA4; }
.contact.slim { padding: 80px 0 50px; }
.contact.slim h2 { font-size: clamp(40px, 5.4vw, 72px); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 90px; padding-top: 22px; border-top: 1px solid rgba(245,243,237,.18); color: #A9ADA4; }
.foot a { text-decoration: none; }
.foot a + a { margin-left: 18px; }
.foot a:hover { color: var(--paper); }

/* case study */
.crumb { padding: 8px 0 0; }
.crumb a { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.cs-hero { padding: 36px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.cs-hero .mono.kind { color: var(--ink-2); }
.cs-hero h1 { font-size: clamp(56px, 8vw, 116px); line-height: .95; letter-spacing: -.045em; font-weight: 500; margin: 18px 0 12px; }
.cs-hero .sub { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; }
.cs-hero .award { margin-top: 22px; }
.cs-facts { display: grid; grid-template-columns: 90px 1fr; gap: 10px 16px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 18px; }
.cs-facts .mono { color: var(--ink-3); padding-top: 3px; }
.cs-cover { border-radius: 28px; overflow: hidden; }
.cs-cover img { width: 100%; height: auto; }
.cs-sec { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; padding: 96px 0 0; }
.cs-sec .lab { color: var(--ink-3); }
.cs-sec h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; margin-top: 14px; white-space: pre-line; }
.cs-sec .body p { font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.cs-sec .body p + p { margin-top: 14px; }
.cs-sec .body p.lead { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; color: var(--ink); font-family: var(--serif); font-style: italic; }
.flow { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 26px; align-items: center; }
.flow span.step { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; background: var(--white); padding: 8px 12px; border-radius: 999px; }
.flow span.arr { color: var(--ink-3); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.gallery figure { margin: 0; }
.gallery figure.full { grid-column: 1 / -1; }
.gallery .frame { border-radius: 22px; overflow: hidden; background: var(--paper-2); }
.gallery .frame img { width: 100%; height: auto; }
.gallery .frame.pad { padding: 40px; display: flex; align-items: center; justify-content: center; background: var(--white); }
.gallery .frame.pad img { width: auto; max-width: 100%; max-height: 360px; }
.gallery .frame.pad.tall img { max-height: 680px; }
.gallery .frame.fixed { position: relative; aspect-ratio: 4 / 3; }
.gallery .frame.fixed img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; }
.gallery .frame.pad.fixed img { inset: 40px; width: calc(100% - 80px); height: calc(100% - 80px); object-fit: contain; }
.gallery figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.swatch .chipc { height: 84px; border-radius: 14px; border: 1px solid var(--line); }
.swatch .n { margin-top: 8px; font-size: 15px; }
.swatch .h { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.types { margin-top: 30px; border-top: 1px solid var(--line); }
.types .t { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.types .t .spec { font-size: 30px; line-height: 1.1; }
.types .t .use { color: var(--ink-2); font-size: 15px; }
.types .t .use b { display: block; color: var(--ink); font-weight: 500; font-size: 16px; }
.spec.helv { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -.02em; }
.spec.marker { font-family: var(--marker); color: var(--red); }
.spec.serif-cap { font-family: var(--serif); letter-spacing: .02em; }
.note-small { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 110px 0 0; }
.pn a { display: block; text-decoration: none; padding: 26px 28px; border-radius: 22px; background: var(--white); }
.pn a:hover { background: var(--paper-2); }
.pn a .mono { color: var(--ink-3); }
.pn a .t { display: block; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; font-weight: 500; margin-top: 8px; }
.pn a.next { text-align: right; }

/* legal + 404 */
.legal { max-width: 760px; padding: 40px 0 40px; }
.legal h1 { font-size: clamp(44px, 6vw, 80px); letter-spacing: -.04em; line-height: 1; font-weight: 500; margin-bottom: 30px; }
.legal h2 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 8px 0 0; }
.legal .ph { background: var(--lime); color: var(--ink); padding: 0 4px; }
.draft { background: var(--lime); padding: 14px 16px; border-radius: 12px; font-size: 15px; margin-bottom: 28px; color: var(--ink); }
.nf { padding: 120px 0 80px; }
.nf h1 { font-size: clamp(64px, 10vw, 140px); letter-spacing: -.045em; line-height: .95; font-weight: 500; }
.nf p { margin-top: 18px; font-size: 20px; color: var(--ink-2); }
.nf .marker { font-size: 24px; display: inline-block; transform: rotate(-4deg); margin-top: 22px; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  header.top { padding: 18px 20px; }
  header.top nav a.hide-m { display: none; }
  header.top nav { gap: 16px; }
  .hero, .hero.has-mosaic { grid-template-columns: 1fr; gap: 34px; padding: 30px 0 40px; }
  .hero h1 { font-size: 60px; }
  .hero .lede { font-size: 26px; }
  .portrait { aspect-ratio: 5 / 4; border-radius: 22px; }
  .mosaic { gap: 8px; }
  .mosaic .tile { border-radius: 10px; }
  .mosaic .note { font-size: 18px; right: 10px; top: 6px; }
  section.block { padding: 56px 0; }
  .sec-head { flex-direction: column; gap: 8px; margin-bottom: 24px; }
  .cards3 { grid-template-columns: 1fr; gap: 12px; }
  .card h3 { margin-top: 16px; }
  .sum .marker { display: block; margin: 8px 0 0; }
  .sum .ad { display: none; } .sum .am { display: inline; }
  .proj { grid-template-columns: 1fr; border-radius: 22px; }
  .proj .txt { padding: 28px 24px 30px; }
  .proj .img { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .proj .img.contain { aspect-ratio: 16 / 9; }
  .proj h3 { font-size: 38px; margin-top: 20px; }
  .proj .sub { font-size: 22px; }
  .svc .row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .svc .row h3 { font-size: 23px; }
  .about { grid-template-columns: 1fr; gap: 22px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts .mono { margin-top: 12px; }
  .contact { padding: 70px 0 40px; }
  .contact h2 { font-size: 46px; }
  .contact.slim h2 { font-size: 40px; }
  .foot { margin-top: 56px; }
  .foot a + a { margin-left: 16px; }
  .cs-hero { grid-template-columns: 1fr; gap: 26px; padding: 22px 0 28px; }
  .cs-hero h1 { font-size: 54px; }
  .cs-hero .sub { font-size: 25px; }
  .cs-cover { border-radius: 20px; }
  .cs-sec { grid-template-columns: 1fr; gap: 16px; padding-top: 64px; }
  .cs-sec h2 { font-size: 34px; }
  .cs-sec .body p { font-size: 17px; }
  .cs-sec .body p.lead { font-size: 23px; }
  .gallery { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
  .gallery .frame { border-radius: 18px; }
  .gallery .frame.pad { padding: 28px; }
  .gallery .frame.pad img { max-height: 240px; }
  .gallery .frame.pad.tall img { max-height: 420px; }
  .gallery .frame.pad.fixed img { inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); max-height: none; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .types .t { grid-template-columns: 1fr; gap: 6px; }
  .types .t .spec { font-size: 26px; }
  .pn { grid-template-columns: 1fr; padding-top: 70px; gap: 12px; }
  .pn a.next { text-align: left; }
  .legal h1 { font-size: 46px; }
  .nf { padding: 70px 0 50px; }
  .nf h1 { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) { .mosaic .tile img { transition: none; } }
