:root {
  --bg: #f1efea;
  --paper: #faf9f6;
  --ink: #161616;
  --ink-2: #1f1f1d;
  --muted: #6a6862;
  --muted-dark: #a8a69f;
  --line: #d9d6ce;
  --line-dark: #34332f;
  --olive: #6f7d63;
  --olive-light: #b3c0a4;
  --wrap: 1240px;
  --gutter: 48px;
  --head: 'Jost', 'Futura', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.h2 { font: 300 clamp(36px, 3.8vw, 56px)/1.08 var(--head); letter-spacing: -.01em; }
.h3 { font: 400 15px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 58px; padding: 0 32px;
  background: var(--ink); color: #fff;
  font: 500 15px/1 var(--body); letter-spacing: .02em;
  border-radius: 2px;
  transition: background .25s ease, color .25s ease;
}
.btn:hover { background: var(--olive); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--olive-light); }
.link {
  font-weight: 500; font-size: 15px;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .2s;
}
.link:hover { color: var(--olive); }

/* header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(241, 239, 234, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__in {
  height: 76px; display: flex; align-items: center; gap: 40px;
  padding: 0 var(--gutter);
}
.logo { font: 400 19px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; gap: 36px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header__right { display: flex; align-items: center; gap: 24px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 2px; }
.lang button { padding: 8px 10px; font-size: 13px; font-weight: 500; color: var(--muted); transition: color .2s; }
.lang button:hover { color: var(--ink); }
.lang button.is-active { background: var(--ink); color: #fff; }

/* hero: text on the left, photo bleeds to the right edge */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
}
.hero__text {
  align-self: center;
  padding: 64px 64px 64px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.hero__eyebrow {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--olive); font-weight: 500; margin-bottom: 32px;
}
.hero__title {
  font: 300 clamp(42px, 4.4vw, 68px)/1.04 var(--head);
  letter-spacing: -.015em;
  margin-bottom: 32px;
}
.hero__lead { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 44px; }
.hero__actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero__proof {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  font-size: 15px; color: var(--muted); max-width: 520px;
}
.hero__proof b { font: 400 22px/1 var(--head); color: var(--ink); }
.hero__proof span { width: 1px; height: 18px; background: var(--line); margin: 0 14px; }

.hero__photo { position: relative; overflow: hidden; background: #d8d2c8; }
.hero__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both;
}
.hero__photo figcaption {
  position: absolute; left: 24px; bottom: 22px; right: 24px;
  font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.88);
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

.hero__text > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__text > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4) { animation-delay: .24s; }
.hero__text > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* for whom — dark */
.who { background: var(--ink); color: var(--paper); padding: 136px 0 144px; }
.who__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.who__sub { color: var(--muted-dark); font-size: 17px; max-width: 360px; }

.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-dark); }
.tab {
  padding: 0 0 22px; text-align: left;
  font: 300 30px/1.15 var(--head); color: #77756f;
  border-bottom: 1px solid transparent; margin-bottom: -1px;
  transition: color .25s, border-color .25s;
}
.tab:hover { color: var(--paper); }
.tab.is-active { color: var(--paper); border-color: var(--paper); }

.panel {
  display: grid; grid-template-columns: 5fr 7fr; gap: 80px;
  padding-top: 64px;
}
.panel.is-anim > * { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.panel.is-anim > :nth-child(2) { animation-delay: .06s; }
.panel__intro { font: 300 34px/1.25 var(--head); }
.panel__start { margin-top: 36px; font-size: 14px; color: var(--muted-dark); }
.panel__start b { display: block; margin-top: 6px; color: var(--olive-light); font: 400 19px/1.35 var(--head); }
.req li {
  display: flex; gap: 22px; align-items: baseline;
  padding: 24px 0; border-top: 1px solid var(--line-dark);
  font-size: 19px; color: #e6e4de;
}
.req li:last-child { border-bottom: 1px solid var(--line-dark); }
.req li::before {
  content: ''; flex: 0 0 18px; height: 1px; background: var(--olive-light);
  transform: translateY(-6px);
}

/* experience */
.exp { padding: 144px 0; background: var(--paper); }
.exp__title { max-width: 760px; margin-bottom: 72px; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); margin-bottom: 96px; }
.nums li { padding: 32px 24px 0 0; }
.nums li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.nums b { display: block; font: 300 clamp(56px, 6vw, 92px)/1 var(--head); letter-spacing: -.02em; }
.nums b::after { content: '+'; color: var(--olive); }
.nums span { display: block; margin-top: 14px; font-size: 15px; color: var(--muted); }

.exp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  border: 1px solid var(--ink); padding: 11px 18px;
  font: 400 14px/1 var(--head); letter-spacing: .1em; text-transform: uppercase;
}
.edu li { padding: 20px 0; border-top: 1px solid var(--line); }
.edu li:last-child { border-bottom: 1px solid var(--line); }
.edu b { display: block; font: 400 22px/1.3 var(--head); }
.edu span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }

/* contacts */
.contact { background: var(--olive); color: var(--paper); padding: 120px 0; }
.contact__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: end; }
.contact__text { margin-top: 24px; font-size: 18px; color: rgba(250,249,246,.82); max-width: 520px; }
.contact__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.contact__mail { font-size: 17px; border-bottom: 1px solid rgba(250,249,246,.5); padding-bottom: 2px; transition: border-color .2s; }
.contact__mail:hover { border-color: var(--paper); }

.footer { background: var(--ink); color: var(--muted-dark); font-size: 14px; }
.footer__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--paper); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

.sticky-cta { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* tablet */
@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .nav { display: none; }
  .header__right { margin-left: auto; }
  .hero__text { padding: 56px 40px 56px var(--gutter); }
  .tab { font-size: 24px; }
  .panel { gap: 48px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 48px var(--gutter) 56px; }
  .hero__photo { aspect-ratio: 4 / 5; max-height: 80vh; }
  .who__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .panel { grid-template-columns: 1fr; gap: 40px; }
  .nums { grid-template-columns: 1fr 1fr; }
  .nums li:nth-child(3) { padding-left: 0; border-left: 0; }
  .nums li:nth-child(n+3) { margin-top: 32px; }
  .exp__grid, .contact__in { grid-template-columns: 1fr; gap: 56px; }
}

/* phone */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .header__in { height: 60px; gap: 12px; }
  .logo { font-size: 16px; letter-spacing: .12em; }
  .header__right .btn { display: none; }
  .header__right { gap: 0; }

  .hero__text { padding: 36px 16px 44px; }
  .hero__eyebrow { margin-bottom: 18px; font-size: 12px; }
  .hero__title { font-size: 38px; margin-bottom: 20px; }
  .hero__lead { font-size: 17px; margin-bottom: 28px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 20px; text-align: center; }
  .hero__actions .link { align-self: center; }
  .hero__proof { margin-top: 36px; font-size: 14px; }
  .hero__proof b { font-size: 20px; }
  .hero__proof span { margin: 0 8px; }
  .hero__photo { max-height: none; }
  .hero__photo figcaption { left: 16px; bottom: 16px; }

  .h2 { font-size: 34px; }
  .who { padding: 88px 0 96px; }
  .who__head { margin-bottom: 36px; }
  .who__sub { font-size: 16px; }
  .tabs { display: flex; overflow-x: auto; gap: 28px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; font-size: 21px; padding-bottom: 16px; }
  .panel { padding-top: 36px; gap: 32px; }
  .panel__intro { font-size: 25px; }
  .panel__start { margin-top: 24px; }
  .req li { font-size: 17px; padding: 18px 0; gap: 16px; }
  .req li::before { flex-basis: 12px; }

  .exp { padding: 88px 0; }
  .exp__title { margin-bottom: 48px; }
  .nums { margin-bottom: 64px; }
  .nums li { padding: 24px 12px 0 0; }
  .nums li + li { padding-left: 16px; }
  .nums li:nth-child(3) { padding-left: 0; }
  .nums b { font-size: 56px; }
  .nums span { font-size: 14px; margin-top: 10px; }
  .exp__grid { gap: 48px; }
  .chips li { font-size: 13px; padding: 10px 14px; }
  .edu b { font-size: 20px; }

  .contact { padding: 88px 0 96px; }
  .contact__text { font-size: 17px; }
  .contact__actions { align-items: stretch; text-align: center; }
  .contact__actions .btn { width: 100%; }
  .contact__mail { align-self: center; }
  .footer__in { flex-direction: column; padding-bottom: 96px; }

  .sticky-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30;
    height: 54px; background: var(--ink); color: #fff;
    font-weight: 500; font-size: 15px; border-radius: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    opacity: 0; transform: translateY(20px); pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
  }
  .sticky-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
}
