/* Olha Tkachenko — portfolio. Tokens from instructions/README-for-developers.md */
:root {
  --green: #067B18;
  --sage: #8EB686;
  --cream: #F6EDD9;
  --lav: #9999CC;
  --ink: #13241A;
  --error: #B3261E;

  --f-head: 'Playfair Display', Georgia, serif;
  --f-accent: 'Cormorant', Georgia, serif;
  --f-body: 'Onest', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1320px;
  --pad-x: clamp(16px, 5vw, 64px);
  --pad-y: clamp(56px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--ink); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
em { font-family: var(--f-accent); font-weight: 500; letter-spacing: -.01em; }
::selection { background: var(--lav); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.section-ink :focus-visible, .section-green :focus-visible, .lightbox :focus-visible { outline-color: var(--cream); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding: var(--pad-y) 0; }
.section-ink { background: var(--ink); color: var(--cream); }
.section-lav { background: var(--lav); }
.section-sage { background: var(--sage); }
.section-green { background: var(--green); color: var(--cream); }
.c-green { color: var(--green); }
.c-sage { color: var(--sage); }
.c-lav { color: var(--lav); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; color: var(--cream); }

.mono, .eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow { font-size: 12px; display: flex; gap: 12px; margin-bottom: 14px; }
.h2 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 112px);
  line-height: .9;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h2-gap { margin-bottom: clamp(32px, 5vw, 64px); max-width: 1000px; }
.section-head { margin-bottom: clamp(28px, 5vw, 56px); }
.section-head.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-lead { margin: 18px 0 0; max-width: 560px; color: rgba(246,237,217,.8); text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-sm { font-size: 14px; padding: 0 18px; }
.btn-lg { min-height: 54px; padding: 0 26px; }
.btn-green { background: var(--green); color: var(--cream); }
.btn-green:hover { background: var(--ink); color: var(--cream); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--green); color: var(--cream); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--lav); color: var(--ink); }
.btn-outline-light { min-height: 48px; border-color: var(--cream); color: var(--cream); background: transparent; font-size: 14px; }
.btn-outline-light:hover { background: var(--cream); color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,237,217,.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(19,36,26,.12);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: baseline; gap: 10px; min-width: 0; color: var(--ink); }
.logo-mark { font-family: var(--f-accent); font-style: italic; font-weight: 500; font-size: 30px; line-height: 1; }
.logo-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--ink); border-radius: 999px; }
.lang a {
  min-width: 44px; height: 38px; border-radius: 999px; color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em;
}
.lang a:hover { background: rgba(19,36,26,.08); color: var(--ink); }
.lang a[aria-current="page"] { background: var(--ink); color: var(--cream); }

/* Hero */
.hero { padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(40px, 7vw, 96px); }
.hero-id { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: clamp(24px, 4vw, 44px); }
.portrait { position: relative; flex: none; width: clamp(64px, 10vw, 96px); aspect-ratio: 1; }
.portrait::before { content: ""; position: absolute; inset: -6px; border: 1px solid var(--green); border-radius: 50%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--sage); }
.hero-id-text { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.hero-name { font-family: var(--f-accent); font-style: italic; font-size: clamp(24px, 3vw, 30px); line-height: 1; }
.hero-title {
  margin: 0;
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(56px, 14vw, 190px); line-height: .92; letter-spacing: -.03em;
}
.hero-title .line { display: block; }
.hero-title .indent { padding-left: clamp(0px, 8vw, 160px); }
.hero-title em { color: var(--green); }
.hero-title .pill-line { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(12px, 2.5vw, 32px); }
.hero-title .pill { width: clamp(56px, 14vw, 200px); height: clamp(34px, 7vw, 100px); border-radius: 999px; background: var(--lav); flex: none; }
.hero-bottom {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 28px clamp(24px, 5vw, 80px); align-items: end; margin-top: clamp(28px, 5vw, 56px);
}
.lead { margin: 0; max-width: 580px; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; text-wrap: pretty; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.proofs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--ink);
}
.proofs li { display: flex; align-items: baseline; gap: 14px; padding: 18px 16px 4px 0; }
.proof-n { font-family: var(--f-mono); font-size: 12px; color: var(--green); }
.proof-t { font-family: var(--f-accent); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }

/* Marquee */
.marquee { background: var(--green); color: var(--cream); overflow: hidden; border-block: 1px solid var(--ink); }
.marquee-track { display: flex; width: max-content; padding: 18px 0; animation: marquee 40s linear infinite; }
.marquee-track span {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--f-accent); font-size: clamp(26px, 3.4vw, 40px); line-height: 1; white-space: nowrap;
}
.marquee-track span:nth-child(even) { font-style: italic; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sage); }
.marquee-track span:nth-child(even)::after { background: var(--lav); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Work gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 36px); }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(246,237,217,.28); background: transparent; color: rgba(246,237,217,.85);
  font-size: 13.5px; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--cream); }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-desc { display: none; }
  .tile-title { font-size: 19px; }
}
.gallery {
  gap: clamp(20px, 2.4vw, 32px) clamp(12px, 1.6vw, 20px);
}
.tile { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile[hidden] { display: none; }
.tile-img {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 0;
  border-radius: 6px; overflow: hidden; background: rgba(246,237,217,.07); cursor: zoom-in;
  box-shadow: 0 1px 0 rgba(246,237,217,.06), 0 12px 32px -18px rgba(0,0,0,.6);
}
/* Thumbnails are pre-framed to 3:2 with the whole artwork inside (see README). */
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile-img:hover img, .tile-img:focus-visible img { transform: scale(1.04); }
.tile-img::after {
  content: "⤢"; position: absolute; right: 10px; bottom: 10px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--cream); font-size: 16px;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.tile-img:hover::after, .tile-img:focus-visible::after { opacity: 1; transform: none; }
.tag {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px;
  background: rgba(19,36,26,.72); color: var(--cream);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s;
}
.tile-img:hover .tag, .tile-img:focus-visible .tag { opacity: 1; transform: none; }
@media (hover: none) { .tag { opacity: 1; transform: none; } }
.tile figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile-title { font-family: var(--f-accent); font-size: 22px; line-height: 1.15; font-weight: 500; }
.tile-desc {
  font-size: 13px; line-height: 1.45; color: rgba(246,237,217,.72);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-n { font-family: var(--f-mono); font-size: 11px; color: var(--sage); flex: none; }
.gallery-more { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }
.gallery-more .btn[hidden] { display: none; }

/* Practice cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.card { background: var(--cream); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.card-n { font-family: var(--f-mono); font-size: 12px; color: var(--green); }
.card-title { font-family: var(--f-accent); font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: -.01em; text-wrap: balance; }
.card-desc { font-size: 15px; text-wrap: pretty; }
.photo-credit { margin: 28px 0 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: rgba(19,36,26,.7); }
.photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.photo-credit a:hover { color: var(--ink); }
.quote { margin: clamp(40px, 6vw, 72px) 0 0; max-width: 900px; font-family: var(--f-accent); font-style: italic; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15; text-wrap: pretty; }

/* Services */
.services { border-top: 1px solid var(--ink); }
.services li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px;
  padding: 22px 8px; border-bottom: 1px solid rgba(19,36,26,.25); transition: background .2s;
}
.services li:hover { background: var(--sage); }
.svc-n { font-family: var(--f-mono); font-size: 12px; color: var(--green); padding-top: 12px; }
.svc-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 6px 32px; align-items: baseline; font-size: 15px; }
.svc-title { font-family: var(--f-accent); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }

.tools {
  margin-top: clamp(48px, 7vw, 96px); padding: clamp(24px, 4vw, 48px);
  background: var(--ink); color: var(--cream); border-radius: 6px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px clamp(24px, 5vw, 72px);
}
.tools-intro { display: flex; flex-direction: column; gap: 14px; }
.tools-title { font-family: var(--f-accent); font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -.01em; }
.tools-text { font-size: 15px; max-width: 420px; text-wrap: pretty; }
.pipeline { border-top: 1px solid rgba(246,237,217,.3); }
.pipeline li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid rgba(246,237,217,.3); }
.pipeline li > div { display: flex; flex-direction: column; gap: 10px; }
.dot { width: 32px; height: 32px; border-radius: 50%; background: var(--dot); color: var(--ink); display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; }
.step { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.step-t { font-family: var(--f-accent); font-size: 26px; line-height: 1.1; }
.step-d { font-size: 14px; color: rgba(246,237,217,.8); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(246,237,217,.45); font-size: 13px; }

/* About */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px clamp(24px, 6vw, 96px); }
.about-main { display: flex; flex-direction: column; gap: 22px; }
.about-main .eyebrow { margin-bottom: 0; }
.about-big { margin: 0; font-family: var(--f-accent); font-size: clamp(30px, 4vw, 50px); line-height: 1.05; letter-spacing: -.01em; text-wrap: pretty; }
.about-p { margin: 0; max-width: 560px; text-wrap: pretty; }
.langs { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-chips li { padding: 8px 14px; border-radius: 999px; background: var(--cream); font-size: 13px; }
.timeline { border-top: 1px solid var(--ink); }
.timeline li { display: flex; flex-direction: column; gap: 4px; padding: 20px 0; border-bottom: 1px solid rgba(19,36,26,.35); }
.tl-years { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; }
.tl-role { font-family: var(--f-accent); font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; }
.tl-org { font-size: 14px; font-weight: 600; }
.tl-desc { font-size: 15px; max-width: 520px; text-wrap: pretty; }

/* Contact */
.section-green.section { padding-bottom: 0; }
.h2-contact { margin-bottom: clamp(32px, 5vw, 64px); max-width: 1100px; font-size: clamp(48px, 9vw, 136px); line-height: .88; }
.h2-contact em { color: var(--cream); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px clamp(24px, 6vw, 96px); align-items: start; }
.form-card { background: var(--cream); color: var(--ink); border-radius: 6px; padding: clamp(20px, 4vw, 40px); min-width: 0; }
#contact-form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: transparent; font-size: 17px; outline: none; padding: 0;
}
.field input { height: 52px; }
.field textarea { padding: 10px 0; min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom: 2px solid var(--green); }
.field input::placeholder, .field textarea::placeholder { color: rgba(19,36,26,.5); }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.err { min-height: 16px; font-size: 12px; color: var(--error); }
.err-consent { margin-top: -16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); }
.btn-submit { min-height: 58px; font-size: 16px; }
.btn-submit[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: -8px 0 0; font-size: 14px; text-align: center; color: var(--error); }
.form-status:empty { display: none; }
.form-status a { color: var(--error); text-decoration: underline; }
.form-note { font-size: 13px; text-align: center; }
.sent { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; }
.sent[hidden] { display: none; }
.sent-check { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--cream); display: grid; place-items: center; font-size: 24px; }
.sent-title { font-family: var(--f-accent); font-size: clamp(34px, 4vw, 48px); line-height: 1; }
.sent .btn { margin-top: 8px; }

.contacts { border-top: 1px solid rgba(246,237,217,.5); }
.contacts a, .contact-static { display: flex; flex-direction: column; gap: 2px; padding: 18px 0; border-bottom: 1px solid rgba(246,237,217,.5); color: var(--cream); }
.contacts a:hover { color: var(--cream); }
.contacts a:hover .contact-v { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contacts .mono { opacity: .85; }
.contact-v { font-family: var(--f-accent); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; overflow-wrap: anywhere; }

.site-footer { padding: clamp(56px, 8vw, 112px) 0 28px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.signature { font-family: var(--f-accent); font-style: italic; font-size: clamp(56px, 14vw, 180px); line-height: .8; letter-spacing: -.03em; }
.credit {
  margin: 28px 0 0; padding-top: 16px; border-top: 1px solid rgba(246,237,217,.25);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: rgba(246,237,217,.7);
}
.credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.credit a:hover { color: var(--cream); }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(19,36,26,.96); color: var(--cream);
}
.lightbox::backdrop { background: rgba(19,36,26,.6); }
.lb-inner { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: 12px var(--pad-x) 20px; }
.lb-top { display: flex; justify-content: space-between; align-items: center; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; background: var(--cream); user-select: none; }
.lb-btn {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  border: 1px solid rgba(246,237,217,.5); background: rgba(19,36,26,.7); color: var(--cream); font-size: 18px;
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.lb-btn:hover { background: var(--cream); color: var(--ink); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-caption { display: flex; flex-direction: column; gap: 2px; text-align: center; max-width: 720px; margin: 0 auto; }
.lb-title { font-family: var(--f-accent); font-size: clamp(24px, 3vw, 32px); line-height: 1.1; }
.lb-desc { font-size: 14px; color: rgba(246,237,217,.8); }
body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .tile-img img, .tile-img::after { transition: none; }
}
