/* Maryia Eikhart - personal website
   Base styles are mobile (designed at 390px). Desktop layout starts at 900px (designed at 1440px). */

:root {
  --salt-white: #F4F0E6;
  --harbor-navy: #1F3557;
  --dune-beige: #E3D5B8;
  --coastal-blue: #B9CCD3;
  --weathered-gray: #BDBAB2;
  --serif: Fraunces, Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --gutter: 20px;
  --edge: max(var(--gutter), calc((100% - 1200px) / 2));
  --header-h: 65px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  background: var(--salt-white);
}
body {
  margin: 0;
  background: var(--salt-white);
  color: var(--harbor-navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.nowrap { white-space: nowrap; }
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
button { font-family: inherit; color: inherit; cursor: pointer; }
em { font-style: italic; }
h1 em, h2 em, h3 em { font-weight: 400; }
:focus-visible { outline: 2px solid var(--harbor-navy); outline-offset: 3px; }
.contact :focus-visible, .footer :focus-visible { outline-color: var(--salt-white); }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 20;
  padding: 12px 20px; border-radius: 10px;
  background: var(--harbor-navy); color: var(--salt-white); font-weight: 600;
}
.skip-link:focus { top: 10px; outline-color: var(--salt-white); outline-offset: -5px; }

/* Shared pieces */
.section { padding: 56px var(--edge); scroll-margin-top: 0; }
.section--beige { background: var(--dune-beige); }
.section--rule { border-top: 1px solid var(--weathered-gray); }
.eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1.6;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.h2 {
  font-family: var(--serif); font-weight: 500; font-size: 32px;
  line-height: 1.12; letter-spacing: -0.015em;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 10px;
  border: 1.5px solid var(--harbor-navy);
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.btn--primary { background: var(--harbor-navy); color: var(--salt-white); }
.pill-btn {
  align-self: flex-start; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid var(--harbor-navy); background: transparent;
  font-size: 14px; font-weight: 600; transition: background-color .15s, color .15s;
}
@media (hover: hover) {
  .btn--primary:hover { background: #2a4670; }
  .btn--secondary:hover, .pill-btn:hover { background: var(--harbor-navy); color: var(--salt-white); }
}
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 600; text-underline-offset: 5px;
}

/* 1. Header */
.header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px var(--edge);
  background: var(--salt-white); border-bottom: 1px solid var(--weathered-gray);
}
.logo {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
}
.header__cta { display: none; }
.menu-btn {
  width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--weathered-gray); border-radius: 10px; background: var(--salt-white);
}
.menu-btn .icon-close, .menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
html:not(.js) .menu-btn { display: none; }
html:not(.js) .header { flex-wrap: wrap; position: static; }
.nav ul { list-style: none; padding: 0; }
.nav a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

@media (max-width: 899.98px) {
  .js .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h));
    overflow-y: auto; padding: 8px var(--edge) 24px;
    background: var(--salt-white); border-bottom: 1px solid var(--weathered-gray);
  }
  .js .nav.is-open { display: block; }
  .nav li + li:not(.nav__cta) { border-top: 1px solid rgba(31, 53, 87, 0.15); }
  .nav__cta { padding-top: 12px; }
  .nav__cta .btn { min-height: 52px; font-weight: 600; }
}

/* 2. Hero */
.hero { display: flex; flex-direction: column; }
.hero__media { order: -1; background: var(--harbor-navy); }
.hero__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; }
.hero__text { display: flex; flex-direction: column; gap: 20px; padding: 28px var(--edge) 48px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: 42px;
  line-height: 1.08; letter-spacing: -0.02em;
}
.hero__location { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.hero__location svg { flex-shrink: 0; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }

/* 3. Results bar */
.proof {
  background: var(--coastal-blue); padding: 32px var(--edge);
}
.proof ul {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px;
}
.proof li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid rgba(31, 53, 87, 0.3); }
.proof strong { font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1.05; }
.proof span { font-size: 14px; line-height: 1.35; }

/* 4. How I work */
.how { padding-top: 64px; display: flex; flex-direction: column; gap: 36px; }
.how__top { display: flex; flex-direction: column; gap: 36px; }
.how blockquote {
  font-family: var(--serif); font-weight: 400; font-size: 28px;
  line-height: 1.25; letter-spacing: -0.01em;
}
.principles { list-style: none; padding: 0; display: grid; gap: 24px; }
.principles li {
  border-top: 2px solid var(--harbor-navy); padding-top: 16px;
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 8px; align-content: start;
}
.principles .num { font-family: var(--serif); font-size: 18px; font-style: italic; grid-row: span 2; }
.principles h3 { font-size: 18px; font-weight: 600; line-height: 1.3; padding-top: 3px; }
.principles p { font-size: 15px; grid-column: 2; }

/* 5. About */
.about { display: flex; flex-direction: column; gap: 32px; }
.about__main, .about__side { display: contents; }
.about__intro { display: contents; }
.about__head { display: flex; flex-direction: column; gap: 16px; order: 1; }
.about__photo { order: 2; margin-top: -16px; }
.about__text { order: 3; display: flex; flex-direction: column; gap: 16px; margin-top: -16px; }
.about__skills { order: 4; display: flex; flex-direction: column; gap: 12px; }
.about__industries { order: 5; display: flex; flex-direction: column; gap: 10px; }
.about__link { order: 6; align-self: flex-start; margin-top: -8px; }
.about .h2 { font-size: 34px; line-height: 1.1; }
.about__photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% 30%;
  border-radius: 12px; background: var(--weathered-gray);
}
.lead { font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.aside-line { padding-left: 16px; border-left: 2px solid var(--harbor-navy); }
.skills { list-style: none; padding: 0; display: grid; gap: 8px; }
.skills li {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 10px; background: var(--salt-white); border: 1px solid rgba(31, 53, 87, 0.12);
  font-size: 15px; line-height: 1.35;
}
.skills li::before {
  content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 999px;
  background: var(--harbor-navy); opacity: 0.55;
}
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--harbor-navy); font-size: 14px; font-weight: 500; }

/* 6. Case studies */
.cases { display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; flex-direction: column; gap: 20px; }
.section-head__title { display: flex; flex-direction: column; gap: 20px; }
.cases__list { display: flex; flex-direction: column; gap: 16px; }
.case { background: var(--dune-beige); border-radius: 14px; padding: 24px; }
.case--blue { background: var(--coastal-blue); }
.case__top { display: flex; flex-direction: column; gap: 16px; }
.case__intro { display: flex; flex-direction: column; gap: 16px; }
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case__tags span { padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid var(--harbor-navy); }
.case__tags span:first-child { background: var(--salt-white); border-color: var(--salt-white); font-weight: 600; }
.case h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; }
.case__intro p { font-size: 15px; }
.case__stats { list-style: none; padding: 0; border-bottom: 1px solid rgba(31, 53, 87, 0.2); }
.case__stats li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(31, 53, 87, 0.2); }
.case__stats strong { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; flex-shrink: 0; }
.case__stats span { font-size: 14px; line-height: 1.35; }
.case .pill-btn { margin-top: 16px; }
html:not(.js) .case .pill-btn { display: none; }

/* Expanding panels (case studies and recommendations) */
.collapse { display: grid; grid-template-rows: 1fr; }
.collapse > div { min-height: 0; overflow: hidden; }
.js .collapse { grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .3s ease, opacity .25s ease, visibility 0s .3s; }
.js .collapse.is-open { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows .3s ease, opacity .25s ease; }

.case__details {
  margin-top: 16px; padding-top: 24px; border-top: 1px solid rgba(31, 53, 87, 0.25);
  display: grid; gap: 24px;
}
.case__details > div { display: flex; flex-direction: column; gap: 8px; }
.case__details h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.case__details p, .case__details ul { font-size: 15px; }
.case__details ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* 7. Recommendations */
.recs { display: flex; flex-direction: column; gap: 20px; }
.recs__head { display: contents; }
.recs__title { display: flex; flex-direction: column; gap: 20px; }
.recs__link { order: 5; align-self: center; }
.recs__cols { display: flex; align-items: flex-start; gap: 24px; }
.recs__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.rec {
  background: var(--salt-white); border: 1px solid rgba(31, 53, 87, 0.15);
  border-radius: 14px; padding: 24px;
  overflow-wrap: break-word;
}
.rec[hidden] { display: none; }
.rec__quote { font-family: var(--serif); font-size: 20px; line-height: 1.35; }
.rec__full { padding-top: 12px; font-size: 15px; white-space: pre-line; }
.rec__toggle {
  display: inline-flex; align-items: center; min-height: 44px; margin: 12px 0;
  padding: 0; border: 0; background: transparent; text-align: left;
  font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px;
}
.rec__toggle:hover { text-decoration-thickness: 2px; }
.rec figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(31, 53, 87, 0.15); }
.rec__avatar {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; background: var(--coastal-blue);
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600;
}
.rec__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.4; }
.rec__who strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.recs__all { align-self: center; min-height: 48px; padding: 0 24px; font-size: 15px; }
.recs__all[hidden] { display: none; }

/* 8. Experience */
.exp { display: flex; flex-direction: column; gap: 28px; }
.exp__head { display: flex; flex-direction: column; gap: 6px; }
.exp .h2 { font-size: 30px; line-height: 1.2; }
.exp__company { font-weight: 500; }
.exp__dates { font-size: 13px; }
.timeline {
  list-style: none; margin-left: 7px; padding: 0 0 0 24px;
  border-left: 2px solid var(--weathered-gray);
  display: flex; flex-direction: column; gap: 32px;
}
.timeline li { position: relative; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.timeline li::before {
  content: ""; position: absolute; left: -33px; top: 5px; width: 16px; height: 16px;
  border-radius: 999px; background: var(--dune-beige); border: 2px solid var(--harbor-navy);
}
.timeline h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.3; }
.timeline__date { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.timeline__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.timeline .is-current { gap: 8px; padding: 20px; border-radius: 12px; background: var(--harbor-navy); color: var(--salt-white); }
.timeline .is-current::before { top: 24px; background: var(--harbor-navy); }
.badge { padding: 2px 10px; border-radius: 999px; background: var(--coastal-blue); color: var(--harbor-navy); font-size: 12px; font-weight: 600; }

/* 9. Beyond work */
.beyond { display: flex; flex-direction: column; gap: 28px; }
.beyond__grid { display: grid; gap: 16px; }
.tile { background: var(--dune-beige); border-radius: 12px; overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--weathered-gray); }
.tile__text { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.tile h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.25; }

/* 10. Contact + 11. Footer */
.contact { background: var(--harbor-navy); color: var(--salt-white); padding: 64px var(--edge) 48px; display: flex; flex-direction: column; gap: 28px; }
.contact .h2 { font-size: 34px; line-height: 1.15; }
.contact__line { padding-top: 20px; font-size: 15px; }
.contact__links { display: flex; flex-direction: column; gap: 20px; }
.contact__links .eyebrow { opacity: 0.8; }
.contact__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; text-underline-offset: 5px; overflow-wrap: anywhere; }
.footer { background: var(--harbor-navy); color: var(--salt-white); padding: 0 var(--edge); }
.footer__row { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--weathered-gray); padding: 20px 0 32px; font-size: 13px; }
.footer img { height: 36px; width: auto; }

/* Larger phones and small tablets: single column, with two-up grids where they fit */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .hero__media img { aspect-ratio: 4 / 3; object-position: 50% 22%; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .proof ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .principles, .skills, .beyond__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Desktop layout */
@media (min-width: 900px) {
  :root { --gutter: clamp(40px, 5vw, 72px); --header-h: 93px; }
  body { font-size: 18px; }
  .section { padding-block: 112px; }
  .h2 { font-size: clamp(40px, 3.62vw, 52px); line-height: 1.08; letter-spacing: -0.02em; }
  .text-link { font-size: 16px; }
  .pill-btn { font-size: 15px; }

  .header { padding-block: 24px; }
  .logo { font-size: 24px; }
  .menu-btn, .nav__cta { display: none; }
  .nav ul { display: flex; gap: clamp(18px, 2.5vw, 36px); }
  .nav a { min-height: 44px; font-size: 16px; white-space: nowrap; }
  .header__cta { display: inline-flex; min-height: 44px; padding: 0 22px; white-space: nowrap; }

  .hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: max(760px, min(34vw, 1000px)); }
  .hero__media { order: 0; position: relative; }
  .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-position: 50% 20%; }
  /* The text column is half the page, so the 1200px content edge is (2 x 100% - 1200px) / 2 */
  .hero__text { justify-content: center; gap: 28px; padding: 96px clamp(32px, 4.45vw, 64px) 96px max(var(--gutter), calc(100% - 600px)); }
  .hero .eyebrow, .how .eyebrow, .beyond .eyebrow { font-size: 14px; }
  .hero h1 { font-size: clamp(42px, 4.72vw, 68px); line-height: 1.04; letter-spacing: -0.025em; }
  .hero__location { font-size: 16px; }
  .hero__actions { gap: 16px; padding-top: 16px; }
  .hero__actions .btn { font-size: 17px; }

  .proof { padding-block: 48px; }
  .proof ul { gap: 0; margin-inline: -24px; }
  .proof li { gap: 4px; padding: 0 24px; border-left-color: rgba(31, 53, 87, 0.25); }
  .proof strong { font-size: 44px; }
  .proof span { font-size: 15px; line-height: 1.4; }

  .how { padding-top: 128px; gap: 72px; }
  .how__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .how__top .eyebrow { grid-column: span 3; padding-top: 14px; }
  .how blockquote { grid-column: span 9; font-size: clamp(38px, 3.62vw, 52px); line-height: 1.15; letter-spacing: -0.015em; }
  .principles { gap: 40px 24px; }
  .principles li { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; }
  .principles .num { font-size: 20px; }
  .principles h3 { font-size: 20px; padding-top: 0; }
  .principles p { font-size: 16px; }

  .about { padding-block: 120px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .about__side { grid-column: 1 / span 5; grid-row: 1; display: flex; flex-direction: column; gap: 20px; }
  .about__main { grid-column: 6 / span 7; grid-row: 1; display: flex; flex-direction: column; gap: 40px; padding-left: 24px; }
  .about__intro { display: flex; flex-direction: column; gap: 20px; }
  .about__head { gap: 20px; }
  .about__photo, .about__text, .about__link { margin-top: 0; }
  .about__text { gap: 20px; }
  .about__skills { gap: 14px; }
  .about .h2 { font-size: clamp(42px, 3.9vw, 56px); line-height: 1.08; letter-spacing: -0.02em; }
  .about__photo img { aspect-ratio: 4 / 5; object-position: 50% 30%; border-radius: 16px; }
  .lead { font-size: 24px; }
  .aside-line { font-size: 17px; padding-left: 20px; }
  .skills { gap: 12px; }
  .skills li { padding: 16px 20px; font-size: 16px; }
  .tags li { font-size: 15px; }

  .section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .section-head__title { grid-column: span 7; gap: 16px; }
  .section-head > p { grid-column: 9 / span 4; }

  .cases { gap: 48px; }
  .cases__list { gap: 24px; }
  .case { border-radius: 16px; padding: 40px 48px; }
  .case__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .case__intro { grid-column: span 6; }
  .case__tags span { font-size: 14px; }
  .case h3 { font-size: clamp(28px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -0.01em; }
  .case__intro p { font-size: 17px; }
  .case__stats { grid-column: 7 / span 6; border: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
  .case__stats li { flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 16px; border: 0; border-radius: 12px; background: var(--salt-white); }
  .case__stats strong { font-size: clamp(24px, 2.1vw, 30px); }
  .case__stats span { line-height: 1.4; }
  .case .pill-btn { margin-top: 28px; }
  .case__details { margin-top: 28px; padding-top: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
  .case__details h4 { font-size: 13px; }
  .case__details p, .case__details ul { font-size: 16px; }

  .recs { gap: 40px; }
  .recs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .recs__title { gap: 16px; }
  .recs__link { order: 0; align-self: auto; text-underline-offset: 4px; }
  .recs__col { gap: 24px; }
  .rec { padding: 28px; }
  .rec__quote { font-size: 22px; }

  .exp { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .exp__head { grid-column: span 4; gap: 12px; }
  .exp .h2 { font-size: clamp(36px, 3.06vw, 44px); line-height: 1.15; letter-spacing: -0.015em; }
  .exp__company { font-size: 17px; }
  .exp__dates { font-size: 14px; }
  .timeline { grid-column: 6 / span 7; margin-left: 0; padding-left: 36px; gap: 40px; }
  .timeline li { gap: 6px; font-size: 18px; }
  .timeline li::before { left: -45px; top: 6px; }
  .timeline h3 { font-size: 24px; }
  .timeline__date { font-size: 14px; }
  .timeline__row { gap: 12px; }
  .timeline .is-current { gap: 10px; padding: 28px 32px; }
  .timeline .is-current::before { top: 34px; }
  .badge { padding: 3px 12px; font-size: 13px; }

  .beyond { gap: 56px; }
  .beyond .h2 { font-size: clamp(40px, 3.34vw, 48px); line-height: 1.1; letter-spacing: -0.015em; }
  .beyond__grid { gap: 24px; }
  .tile { border-radius: 16px; }
  .tile__text { padding: 24px 26px 28px; gap: 8px; font-size: 16px; }
  .tile h3 { font-size: 24px; }

  .contact { padding-block: 112px 96px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .contact > div:first-child { grid-column: span 7; }
  .contact .h2 { font-size: clamp(42px, 3.9vw, 56px); line-height: 1.1; letter-spacing: -0.02em; }
  .contact__line { font-size: 18px; }
  .contact__links { grid-column: 9 / span 4; gap: 28px; padding-top: 12px; }
  .contact__links a { font-size: clamp(17px, 1.4vw, 20px); overflow-wrap: normal; }
  .footer__row { gap: 16px; padding: 24px 0 28px; font-size: 14px; }
  .footer img { height: 40px; }
}

@media (min-width: 1100px) {
  .principles, .beyond__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .about__main { grid-column: 7 / span 6; padding-left: 0; }
  .case__stats { grid-column: 8 / span 5; }
}

@media (max-width: 1099.98px) and (min-width: 900px) {
  .header { gap: 16px; }
  .logo { font-size: 22px; }
  .nav ul { gap: 14px; }
  .nav a { font-size: 15px; }
  .header__cta { padding: 0 16px; font-size: 15px; }
  .skills { grid-template-columns: 1fr; }
  .contact > div:first-child { grid-column: span 6; }
  .contact__links { grid-column: 8 / span 5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .header { position: static; }
  .js .collapse { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
  .pill-btn, .rec__toggle, .menu-btn { display: none !important; }
}
