@font-face{font-family:'Roboto';font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/roboto-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Roboto';font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/roboto-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Roboto';font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/fonts/roboto-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Roboto';font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/fonts/roboto-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:100 1000;font-display:swap;src:url(/assets/fonts/dmsans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:100 1000;font-display:swap;src:url(/assets/fonts/dmsans-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ==========================================================================
   martinsok.com — main stylesheet
   ========================================================================== */
:root {
  --brand: #7b3137;
  --brand-dark: #5f252a;
  --text: #161518;
  --title: #111013;
  --muted: #6c6b70;
  --dark: #18191d;
  --dark-2: #1f2024;
  --black: #000;
  --grey-bg: #f7f7f8;
  --grey-bg-2: #ececed;
  --field: #ededee;
  --line: rgba(17, 16, 19, .12);
  --cursor: #dd3333;
  --white: #fff;

  /* surfaces & semantic colors (light theme). The dark theme overrides these below. */
  --bg: #fff;
  --surface: #fff;
  --placeholder: #ddd;
  --kicker: #5c4033;
  --brand-text: var(--brand);
  --btn-bg: var(--title);
  --btn-fg: #fff;
  --btn-hover: #2b2a2e;
  --side-lang-bg: #d7d7d7;
  --side-lang-fg: #000;
  --field-2: #e9e9ea;
  --line-strong: rgba(17, 16, 19, .3);
  --border-soft: rgba(17, 16, 19, .06);
  --footer-text: #232226;
  --shadow: rgba(0, 0, 0, .08);
  --float-bg: rgba(255, 255, 255, .92);
  --ok: #1f7a3a;
  --err: #b3261e;
  --logo-filter: none;
  --icon-filter: none;
  --client-filter: grayscale(1);
  --client-hover: none;

  --side: 95px;
  --gutter: 40px;
  --w-wide: 1160px;
  --w-mid: 1060px;
  --w-narrow: 976px;

  --f-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'DM Sans', 'Roboto', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --r: 6px;
  color-scheme: light;
}

/* ---------- dark theme (html[data-scheme="dark"], set by the theme switcher / system setting) ---------- */
:root[data-scheme="dark"] {
  color-scheme: dark;
  --text: #c8c8cc;
  --title: #f2f2f3;
  --muted: #8f8f96;
  --bg: #111214;
  --surface: #1c1d21;
  --placeholder: #26272b;
  --grey-bg: #17181b;
  --grey-bg-2: #1e1f23;
  --field: #222327;
  --field-2: #25262b;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .28);
  --border-soft: rgba(255, 255, 255, .06);
  --kicker: #c9a68f;
  --brand-text: #d9757d;
  --btn-bg: #f2f2f3;
  --btn-fg: #111214;
  --btn-hover: #d6d6d9;
  --side-lang-bg: #26272c;
  --side-lang-fg: #e6e6e8;
  --footer-text: #b4b4ba;
  --shadow: rgba(0, 0, 0, .45);
  --float-bg: rgba(28, 29, 33, .94);
  --ok: #6fd69a;
  --err: #ff8f86;
  --logo-filter: invert(1);
  --icon-filter: invert(1) hue-rotate(180deg) brightness(1.05);
  --client-filter: grayscale(1) invert(1) brightness(.92);
  --client-hover: grayscale(1) invert(1) brightness(1.15);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16.4px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--title); font-weight: 400; }
h4 { font-size: 26px; line-height: 1.35; letter-spacing: -.03em; }
h5 { font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -.025em; }
h6 { font-size: 15.6px; line-height: 1.4; font-weight: 800; letter-spacing: -.02em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
.brand { color: var(--brand-text); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--title); color: #fff; padding: 8px 14px; border-radius: var(--r); }
.skip-link:focus { left: 110px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.hp { position: absolute !important; left: -9999px !important; }

/* ---------- containers ---------- */
main, .site-footer { margin-left: var(--side); }
main { overflow-x: clip; }
.container { width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: calc(var(--w-wide) + var(--gutter) * 2); }
.container--mid { max-width: calc(var(--w-mid) + var(--gutter) * 2); }
.container--narrow { max-width: calc(var(--w-narrow) + var(--gutter) * 2); }
.section { padding: 120px 0; }
.section--tight { padding: 70px 0; }
.section--grey { background: var(--grey-bg); }

/* ---------- type pieces ---------- */
.kicker { margin: 0 0 6px; font-size: 14.8px; line-height: 1.6; font-weight: 500; text-transform: uppercase; color: var(--kicker); letter-spacing: 0; }
[data-theme="dark"] .kicker { color: #fff; }
.heading .title, h2.title { font-size: 46px; line-height: 1.04; letter-spacing: -.04em; font-weight: 400; }
.heading .title .brand { color: var(--brand-text); }
.lead-sm { font-size: 16.4px; line-height: 1.7; margin-bottom: 28px; }
.caps-sub, .caps-kicker { text-transform: uppercase; font-size: 14px; letter-spacing: .02em; font-weight: 500; }

/* links & buttons */
.i-arrow { width: 1.15em; height: 1.15em; flex: none; transition: transform .35s var(--ease); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16.4px; color: var(--title); }
.link-arrow:hover .i-arrow, .btn:hover .i-arrow { transform: translateX(4px); }
.link-arrow--light { color: #fff; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 800; font-size: 16.4px; line-height: 1; padding: 15px 22px; border-radius: var(--r);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--btn-hover); }
.btn--sm { font-size: 14.8px; padding: 11px 18px; border-radius: 5px; }
.btn--sm .i-arrow { width: 1em; height: 1em; }
.btn--dark { background: #232327; color: #fff; }
.btn--dark:hover { background: #333338; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); }
.btn--solid { background: var(--btn-bg); border: 2px solid var(--btn-bg); font-size: 14.8px; padding: 14px 20px; }

.tag--draft { background: #fde68a; color: #222; }
.post-row .tag--draft { margin-left: 6px; }
.tag { display: inline-block; font-size: 14.4px; line-height: 1; font-weight: 500; padding: 6px 10px; border-radius: 5.6px; background: rgba(136, 135, 137, .16); color: var(--text); }

/* ---------- sidebar header (desktop) ---------- */
.site-header {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 60; background: var(--bg);
  border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column; align-items: center;
}
.site-logo { position: absolute; top: 20px; left: 14px; }
.site-logo img { width: 66px; height: 66px; filter: var(--logo-filter); }
.burger {
  position: absolute; top: 50%; left: 19px; margin-top: -28px; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(136, 135, 137, .1); display: grid; place-content: center; gap: 6px; z-index: 3;
  transition: background-color .3s, box-shadow .3s;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--title); border-radius: 2px; transition: transform .45s var(--ease), width .3s, background-color .3s; }
.burger span:last-child { width: 15px; justify-self: end; }
.burger:hover span:last-child { width: 22px; }
.menu-open .burger { background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--cursor); position: fixed; }
.menu-open .burger span { background: var(--cursor); width: 18px; }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.side-bottom { position: absolute; bottom: 20px; left: 29px; display: flex; flex-direction: column; gap: 17px; }
.side-cta, .side-lang {
  writing-mode: vertical-rl; text-orientation: sideways; transform: rotate(180deg); display: flex; align-items: center; gap: 10px;
  width: 36px; padding: 16px 0; border-radius: 5.6px; font-size: 14.8px; font-weight: 800; line-height: 1;
}
.side-cta { background: var(--brand); color: #fff; padding: 20px 0; transition: background-color .3s; }
.side-cta:hover { background: var(--brand-dark); }
.side-lang { background: var(--side-lang-bg); color: var(--side-lang-fg); font-weight: 400; padding: 16px 0 14px; }
.side-lang svg { width: 12px; height: 12px; transform: rotate(90deg); transition: transform .3s; }
.lang-switch { position: relative; }

/* theme toggle (sun / moon) */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 5.6px; display: grid; place-items: center; color: var(--title);
  background: rgba(136, 135, 137, .12); transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.theme-toggle:hover { background: rgba(136, 135, 137, .22); }
.theme-toggle svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: transform .5s var(--ease), opacity .3s; }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-scheme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
[data-scheme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
.theme-toggle::after {
  content: attr(data-auto); position: absolute; left: calc(100% + 10px); white-space: nowrap; font-size: 12.5px; font-weight: 600;
  background: var(--surface); color: var(--title); padding: 4px 8px; border-radius: 4px; box-shadow: 0 4px 16px var(--shadow);
  opacity: 0; pointer-events: none; transform: translateX(-4px); transition: .25s var(--ease);
}
.theme-toggle { position: relative; }
.theme-toggle:hover::after, .theme-toggle:focus-visible::after { opacity: 1; transform: none; }

/* Auto / Light / Dark segmented control (menu) */
.theme-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r); background: rgba(255, 255, 255, .06); margin-top: 10px; }
.theme-seg button { padding: 5px 11px; border-radius: 4px; font-size: 14px; color: rgba(255, 255, 255, .6); transition: background-color .25s, color .25s; }
.theme-seg button:hover { color: #fff; }
.theme-seg button[aria-checked="true"] { background: rgba(255, 255, 255, .16); color: #fff; }
.menu-prefs { display: flex; flex-direction: column; align-items: flex-start; }
.lang-pop {
  position: absolute; left: calc(100% + 12px); bottom: 0; background: var(--surface); border-radius: var(--r); padding: 6px;
  box-shadow: 0 10px 40px var(--shadow); display: flex; flex-direction: column; min-width: 130px;
  opacity: 0; visibility: hidden; transform: translateX(-8px); transition: .3s var(--ease);
}
.lang-pop a { padding: 8px 12px; border-radius: 4px; font-size: 15px; }
.lang-pop a:hover { background: var(--grey-bg); }
.lang-pop a[aria-current] { font-weight: 700; }
.lang-switch.is-open .lang-pop { opacity: 1; visibility: visible; transform: none; }
.lang-switch.is-open .side-lang svg { transform: rotate(-90deg); }
.top-search { display: none; }

/* floating search + scroll-top (just right of the sidebar) */
.fab-search {
  position: fixed; left: calc(var(--side) + 20px); bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(136, 135, 137, .1); color: var(--title);
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.fab-search svg { width: 24px; height: 24px; }
.fab-search:hover { transform: scale(1.06); }
.scroll-top {
  position: fixed; left: calc(var(--side) + 38px); top: 50%; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 800; color: var(--title); opacity: 0; visibility: hidden; transform: translateY(-40%); transition: opacity .4s, visibility .4s, color .3s, transform .4s var(--ease);
}
.scroll-top span { writing-mode: vertical-rl; text-orientation: sideways; transform: rotate(180deg); }
.scroll-top i { width: 2px; height: 60px; background: rgba(136, 135, 137, .35); position: relative; overflow: hidden; }
.scroll-top b { position: absolute; inset: 0; background: currentColor; transform-origin: top; transform: scaleY(var(--p, 0)); }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(-50%); }
.on-dark .fab-search, .on-dark.fab-search { color: #fff; background: rgba(255, 255, 255, .1); }
.scroll-top.on-dark { color: #fff; }

/* ---------- menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--dark); color: #fff; padding: 0 60px 40px calc(var(--side) + 13px);
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-io), visibility .5s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: transparent; border-color: transparent; }
.menu-open .site-header .site-logo, .menu-open .side-bottom { opacity: 0; pointer-events: none; }
.menu-nav ul { list-style: none; margin: 0; padding: 0; }
.menu-nav li { overflow: hidden; }
.menu-nav a {
  display: inline-flex; align-items: flex-start; gap: 18px; font-size: 48px; line-height: 1.3; letter-spacing: -.01em; color: #fff;
  transform: translateY(105%); transition: transform .7s var(--ease), opacity .3s;
  transition-delay: calc(var(--i) * 70ms);
}
.menu-open .menu-nav a { transform: none; transition-delay: calc(.15s + var(--i) * 80ms); }
.menu-nav sup { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .45); line-height: 1; margin-top: 14px; width: 18px; }
.menu-nav ul:hover a { opacity: .45; }
.menu-nav ul a:hover, .menu-nav a[aria-current] { opacity: 1; }
.menu-nav a span { background: linear-gradient(currentColor, currentColor) 0 92% / 0 2px no-repeat; transition: background-size .45s var(--ease); }
.menu-nav a:hover span { background-size: 100% 2px; }
.menu-foot { position: absolute; left: calc(var(--side) + 13px); right: 60px; bottom: 40px; display: grid; grid-template-columns: 307px 307px 1fr; align-items: end; gap: 0; opacity: 0; transform: translateY(20px); transition: .6s var(--ease) .1s; }
.menu-open .menu-foot { opacity: 1; transform: none; transition-delay: .45s; }
.menu-foot-t { margin: 0 0 4px; font-weight: 800; }
.menu-foot a { color: rgba(255, 255, 255, .55); transition: color .3s; }
.menu-foot a:hover { color: #fff; }
.menu-lang { display: flex; gap: 4px; }
.menu-lang a { background: rgba(255, 255, 255, .06); color: #fff; padding: 7px 12px; border-radius: var(--r); font-size: 15px; }
.menu-lang a[aria-current] { background: rgba(255, 255, 255, .14); }
.menu-copy { display: none; }

/* ---------- search overlay ---------- */
.search {
  position: fixed; inset: 0; z-index: 70; background: rgba(24, 25, 29, .97); padding: 108px 20px 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-io), visibility .4s;
}
.search-open .search { opacity: 1; visibility: visible; }
.search-open { overflow: hidden; }
.search-close { position: fixed; top: 34px; left: 34px; width: 28px; height: 28px; color: #fff; transition: transform .3s; }
.search-close:hover { transform: rotate(90deg); }
.search-form { position: relative; max-width: 545px; margin: 0 auto; transform: translateY(-16px); transition: transform .5s var(--ease); }
.search-open .search-form { transform: none; }
.search-form input { width: 100%; height: 56px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; padding: 0 52px 0 16px; outline: none; }
.search-form input::placeholder { color: rgba(255, 255, 255, .55); }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form svg { position: absolute; right: 14px; top: 16px; width: 24px; height: 24px; color: #fff; pointer-events: none; }
.search-results { list-style: none; max-width: 545px; margin: 24px auto 0; padding: 0; }
.search-results li a { display: block; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; }
.search-results li a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.search-results small { display: block; color: rgba(255, 255, 255, .5); font-size: 13.5px; margin-top: 2px; }
.search-results .empty { color: rgba(255, 255, 255, .55); padding: 14px 4px; }

/* ---------- page heads ---------- */
.page-head { position: relative; padding: 0 0 70px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 20px 0; font-size: 14.4px; }
.crumbs a { font-weight: 700; color: var(--title); }
.crumbs a:hover { color: var(--brand-text); }
.crumbs svg { width: 10px; height: 10px; }
.page-head-inner { padding-top: 0; }
.page-kicker { font-size: 16px; margin: 0 0 6px; }
.page-title { font-size: 49.4px; line-height: 1.05; letter-spacing: -.04em; font-weight: 500; }
.page-sub { margin: 10px 0 0; font-size: 16px; }
.page-head--display { padding-top: 46px; }
.page-head--display .page-title { font-family: var(--f-display); font-weight: 400; font-size: 64px; letter-spacing: -.045em; }
.page-head--display .page-head-inner { max-width: calc(var(--w-wide) + var(--gutter) * 2); }
.page-head--contact { padding: 230px 0 80px; }
.page-head--contact .page-kicker { font-size: 14.8px; }
.back-link {
  position: absolute; top: 26px; left: 38px; z-index: 5; width: 36px; height: 36px; display: grid; place-items: center; color: var(--title); border-radius: 50%;
  transition: background-color .3s, transform .3s var(--ease);
}
.back-link svg { width: 22px; height: 22px; }
.back-link:hover { background: rgba(136, 135, 137, .12); transform: translateX(-3px); }
.page-head--display .back-link { top: 26px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff;
  background: #3e3e3f var(--bg-lg) left center / cover no-repeat;
}
.hero-inner { position: relative; }
.hero-text { max-width: 580px; padding: 60px 0; }
.hero-kicker { font-size: 14.8px; font-weight: 500; text-transform: uppercase; margin: 0 0 10px; }
.hero-title { font-family: var(--f-display); font-size: 72px; line-height: 1; letter-spacing: -.045em; color: #fff; font-weight: 400; margin: 0 0 54px; }
.hero-link { font-weight: 800; color: #fff; position: relative; }
.hero-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.hero-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* intro (dark split) */
.intro { background: #1d1e22; color: #fff; padding: 38px 0; }
.intro-grid { display: grid; grid-template-columns: 563px 1fr; gap: 60px; align-items: center; }
.intro-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.intro-title { color: #fff; font-size: 46px; line-height: 1; letter-spacing: -.01em; margin: 30px 0 64px; min-height: 2em; }
.typed { white-space: nowrap; }
.typed::after { content: ''; display: inline-block; width: 2px; height: .9em; background: var(--brand); margin-left: 4px; vertical-align: -.08em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* split head */
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 70px; align-items: start; }
.split-head .lead-sm { max-width: 560px; }
.section--work { padding: 110px 0 90px; }
.after-grid { margin-top: 40px; }

/* ---------- project cards (masonry) ---------- */
.grid-masonry { --gap: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); position: relative; }
.grid-masonry.is-laid { display: block; transition: height .6s var(--ease); }
.grid-masonry.is-laid .card { position: absolute; top: 0; left: 0; width: calc(50% - var(--gap) / 2); transition: transform .6s var(--ease), opacity .45s var(--ease); }
.grid-masonry--tight { --gap: 26px; }
.card { position: relative; border-radius: 5px; overflow: hidden; background: var(--placeholder); isolation: isolate; transform-style: preserve-3d; }
.card.is-hidden { opacity: 0 !important; pointer-events: none; }
.card-link { display: block; }
.card-media { position: relative; overflow: hidden; }
.card-media img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .18) 34%, rgba(0, 0, 0, 0) 55%); transition: background-color .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card:hover .card-media::after { background-color: rgba(0, 0, 0, .28); }
.card-body { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; pointer-events: none; }
.card-title { color: #fff; font-size: 26px; line-height: 1.35; letter-spacing: -.03em; margin: 0 0 4px; }
.card-cats, .card-show { font-size: 15.6px; margin: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.card-show { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 10px; font-weight: 800; opacity: 0; transform: translateY(8px); }
.card-show i { display: block; width: 48px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease) .1s; }
.card:hover .card-cats { opacity: 0; transform: translateY(-8px); }
.card:hover .card-show { opacity: 1; transform: none; }
.card:hover .card-show i { transform: scaleX(1); }
.card-go {
  position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
  background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; pointer-events: none;
  opacity: 0; transform: scale(.6); transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.card-go svg { width: 26px; height: 26px; }
.card:hover .card-go { opacity: 1; transform: none; }
.card-zoom { position: absolute; top: 30px; left: 30px; width: 34px; height: 34px; color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .35s; z-index: 2; }
.card-zoom svg { width: 22px; height: 22px; }
.card:hover .card-zoom, .card-zoom:focus-visible { opacity: 1; }

/* ---------- stats bands ---------- */
.stats-band { position: relative; min-height: 855px; display: flex; align-items: flex-end; background: #222 var(--bg-lg) center / cover no-repeat; color: #fff; }
.stats-band--tall { min-height: 832px; }
.stats-row { display: flex; gap: 40px; align-items: flex-end; }
.stat-box { width: 260px; min-height: 295px; padding: 106px 40px 60px; display: flex; flex-direction: column; justify-content: flex-start; color: #fff; }
.stat-box--brand { background: var(--brand); }
.stat-box--dark { background: #1d1e22; }
.stats-row--stagger .stat-box--brand { min-height: 273px; padding-top: 110px; }
.stats-row--stagger .stat-box--dark { min-height: 295px; padding-top: 106px; }
.stat-num { display: flex; align-items: flex-start; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.stat-num sup { font-size: 22px; line-height: 1; margin-left: 4px; margin-top: 3px; }
.stat-label { color: #fff; font-size: 16.4px; line-height: 1.4; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.service-icon { width: 80px; height: 80px; margin-bottom: 40px; filter: var(--icon-filter); }
.service-title { font-size: 26px; line-height: 1.3; margin-bottom: 30px; min-height: 2.6em; }
.service-text p { margin-bottom: .7em; }

/* about teaser */
.teaser-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px 60px; }
.teaser-grid .heading .title { font-size: 46px; margin-bottom: 70px; }
.teaser-grid > div:last-child { max-width: 370px; padding-top: 4px; }
.teaser-grid > div:last-child p { margin-bottom: 44px; }
.teaser-small { font-size: 16.4px; }

/* news */
.section--news { padding: 100px 0 110px; }
.news-grid { display: grid; grid-template-columns: 320px 1fr; gap: 60px; }
.news-intro { margin-top: 70px; max-width: 330px; }
.post-list { border-top: 1px solid var(--line); margin-bottom: 70px; }
.post-row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 26px 0 26px; border-bottom: 1px solid var(--line); }
.post-meta { font-size: 14.4px; font-weight: 500; margin: 4px 0 0; }
.post-title { font-size: 23.2px; line-height: 1.3; letter-spacing: -.03em; margin: 0 0 14px; }
.post-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.post-title a:hover { background-size: 100% 1px; }

/* ---------- CTA ---------- */
.cta { padding: 120px 0 128px; }
.cta--dark { background: #000; color: #fff; }
.cta--dark .heading .title { color: #fff; }
.cta--light { background: var(--grey-bg-2); }
.cta-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; align-items: end; }
.cta-main .heading { margin-bottom: 46px; }
.cta--dark .cta-main .kicker { color: #fff; font-size: 13.5px; font-weight: 500; }
.cta-col { padding-bottom: 6px; }
.cta-q { margin: 0 0 40px; font-size: 15.5px; }
.cta-label { font-weight: 800; font-size: 15.5px; margin: 0 0 20px; }
.cta-mail { font-weight: 800; font-size: 18.5px; letter-spacing: -.01em; word-break: break-word; }
.cta-mail:hover { color: var(--brand-text); }
.cta--dark .cta-mail:hover { color: #c9888d; }

/* ---------- footer ---------- */
.site-footer { background: var(--grey-bg); padding: 90px 0 0; color: var(--footer-text); font-size: 15.6px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 96px; }
.footer-logo img { width: 132px; height: 132px; border: 1px solid var(--line-strong); filter: var(--logo-filter); }
.site-footer h6 { margin: 0 0 18px; }
.site-footer p { margin: 0 0 18px; }
.footer-list { list-style: none; padding: 0; margin: 0 0 20px; line-height: 1.6; }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: var(--brand-text); }
.footer-more { font-weight: 800; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 28px 0 30px; font-size: 15px; }
.footer-bottom p { margin: 0; }

/* ---------- about page ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: start; }
.two-col--even { gap: 40px 40px; }
.about-intro { padding: 90px 0; }
.about-lead { font-size: 35.3px; line-height: 1.1; letter-spacing: -.035em; max-width: 300px; margin-left: 40px; }
.about-copy h4 { font-size: 22.9px; font-weight: 700; letter-spacing: -.01em; margin: 1.2em 0 1.1em; }
.about-copy .label { font-weight: 700; font-size: 15.5px; margin-bottom: 1.6em; }
.dash-list { list-style: none; padding: 0; margin: 0; }
.dash-list li::before { content: '— '; }
.together { font-size: 35.3px; line-height: 1.1; letter-spacing: -.035em; margin-bottom: 4px; }
.process { display: grid; grid-template-columns: 1.6fr 1fr; min-height: 640px; }
.process-media { background: #eee var(--bg-lg) center / cover no-repeat; min-height: 420px; }
.process-panel { background: var(--grey-bg); display: flex; align-items: center; padding: 100px 40px; }
.process-inner { max-width: 300px; margin: 0 auto 0 15%; }
.process-inner h3 { font-size: 35.3px; letter-spacing: -.035em; margin-bottom: 40px; }
.accordion { margin-top: 50px; }
.accordion details { padding: 6px 0; }
.accordion summary { list-style: none; display: flex; align-items: flex-start; gap: 16px; cursor: pointer; font-weight: 800; font-size: 15.6px; padding: 4px 0; color: var(--title); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { width: 14px; height: 14px; margin-top: 4px; flex: none; }
.accordion summary .v { transition: transform .35s var(--ease); transform-origin: center; }
.accordion details[open] summary .v { transform: scaleY(0); }
.acc-body { padding: 8px 0 10px 30px; }
.me-intro { padding: 90px 0; }
.me-grid { display: grid; grid-template-columns: 440px 1fr; gap: 70px; align-items: center; }
.me-photo { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--placeholder); }
.me-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.me-text .about-lead { margin: 0 0 30px; max-width: 520px; }
.me-story { max-width: 560px; }
.facts-band { border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.fact p { margin: 0; font-weight: 700; color: var(--title); }
.diff-section .heading { margin-bottom: 60px; }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 0 80px; border-top: 1px solid var(--line); }
.diff-item { position: relative; padding: 34px 0 34px 56px; border-bottom: 1px solid var(--line); }
.diff-num { position: absolute; left: 0; top: 40px; font-size: 13px; font-weight: 700; color: var(--muted); }
.diff-item h4 { font-size: 24px; margin-bottom: 10px; }
.diff-item p { margin: 0; max-width: 440px; }
.me-help h3 { font-size: 35.3px; line-height: 1.1; letter-spacing: -.035em; margin-bottom: 28px; }
.me-help .heading .title { font-size: 35.3px; letter-spacing: -.035em; margin-bottom: 24px; }
.me-help .kicker { text-transform: none; color: var(--muted); font-size: 15px; }
.me-help .dash-list li { margin-bottom: 6px; }
.two-col--forward h3 { font-size: 35.3px; line-height: 1.1; letter-spacing: -.035em; max-width: 360px; }
.two-col--forward h5 { font-size: 20px; margin-bottom: 4px; }
.collab { background: #1d1e22; color: #fff; padding: 86px 0 0; }
.collab-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 54px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.collab + * { margin-top: 0; }
.collab .kicker { text-transform: none; color: rgba(255, 255, 255, .55); font-size: 14.8px; }
.collab .heading .title { color: #fff; font-weight: 500; font-size: 46px; letter-spacing: -.04em; }
.collab { padding-bottom: 50px; }

/* ---------- web design page ---------- */
.quote { padding: 60px 0 80px; }
.quote h3 { font-size: 35.3px; letter-spacing: -.035em; margin-bottom: 40px; }
.quote .two-col { padding: 0 20px; }
.rule { border: 0; border-top: 1px solid var(--title); margin: 40px 0 46px; }
.rule--short { width: 68px; border-top-color: var(--line-strong); margin: 28px 0 26px; }
.quote h4 { font-size: 22.9px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; margin-top: 40px; }
.steps { align-items: start; }
.steps .caps-kicker { padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); margin-bottom: 16px; max-width: 300px; }
.steps h3 { font-size: 35.3px; letter-spacing: -.035em; line-height: 1.1; max-width: 300px; }
.steps-list { margin: 0; padding-left: 1.2em; line-height: 1.85; }
.logos { list-style: none; padding: 0; margin: 60px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px 40px; align-items: center; justify-items: center; }
.logos img { max-height: 64px; width: auto; filter: var(--client-filter); opacity: .9; transition: filter .3s, opacity .3s, transform .3s var(--ease); }
.logos li:hover img { filter: var(--client-hover); opacity: 1; transform: scale(1.06); }

/* ---------- web design: quote by email ---------- */
.quote-tips-title { font-weight: 700; margin: 28px 0 10px; color: var(--title); }
.quote-tips { margin: 0 0 34px; padding-left: 1.2em; line-height: 1.75; }
.quote-mail { margin-top: 14px; font-size: 15px; }
.quote-mail a { border-bottom: 1px solid var(--line-strong); transition: color .3s, border-color .3s; }
.quote-mail a:hover { color: var(--brand-text); border-color: currentColor; }

/* ---------- services ---------- */
.svc-overview-intro { font-size: 20px; line-height: 1.55; color: var(--title); max-width: 760px; margin: 0 0 60px; }
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc-card { display: flex; flex-direction: column; padding: 40px 36px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .4s var(--ease); }
.svc-card:hover { background: var(--grey-bg); }
.svc-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.svc-card .service-icon { width: 64px; height: 64px; margin: 0; }
.svc-card h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.03em; margin-bottom: 14px; transition: color .3s; }
.svc-card p { flex: 1; margin-bottom: 26px; }
.svc-card:hover h3 { color: var(--brand-text); }
.svc-card:hover .i-arrow { transform: translateX(4px); }
.quote .two-col > div:last-child > ul { padding-left: 1.2em; line-height: 1.75; }
.svc-others { border-top: 1px solid var(--line); }
.svc-others h3 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 30px; }
.svc-other-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 40px; }
.svc-other-list a { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--title); transition: color .3s, padding .4s var(--ease); }
.svc-other-list a span { flex: 1; }
.svc-other-icon { width: 36px; height: 36px; filter: var(--icon-filter); }
.svc-other-list a:hover { color: var(--brand-text); padding-left: 6px; }
.svc-other-list a:hover .i-arrow { transform: translateX(4px); }
/* ---------- contact ---------- */
.svc .heading { margin-bottom: 18px; }
.svc .heading .title { font-size: 40px; }
.svc-intro { max-width: 560px; margin-bottom: 34px; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a { display: grid; grid-template-columns: 44px 1fr 28px; gap: 16px; align-items: start; padding: 24px 6px 24px 0; transition: padding .4s var(--ease); }
.svc-num { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 6px; }
.svc-title { display: block; font-size: 24px; line-height: 1.25; letter-spacing: -.03em; color: var(--title); margin-bottom: 6px; transition: color .3s; }
.svc-text { display: block; font-size: 15.5px; line-height: 1.65; max-width: 560px; }
.svc-list svg { width: 22px; height: 22px; margin-top: 4px; color: var(--title); opacity: .35; transition: opacity .3s, transform .4s var(--ease), color .3s; }
.svc-list a:hover { padding-left: 8px; }
.svc-list a:hover .svc-title, .svc-list a:hover svg { color: var(--brand-text); }
.svc-list a:hover svg { opacity: 1; transform: translate(3px, -3px); }
.contact-banner { height: 215px; background: #444 var(--bg-lg) center / cover no-repeat; }
.contact-grid { display: grid; grid-template-columns: 300px 1fr; gap: 50px; padding: 0 60px 0 60px; }
.contact-info h4 { font-weight: 800; font-size: 29px; letter-spacing: -.03em; margin-bottom: 40px; }
.contact-q { margin: 40px 0 18px; font-size: 15px; }
.contact-mail { display: block; font-weight: 800; font-size: 18.5px; letter-spacing: -.01em; }
.contact-mail:hover { color: var(--brand-text); }

/* ---------- portfolio ---------- */
.section--portfolio { padding: 20px 0 120px; }
.filters { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 30px; font-size: 15.6px; }
.filters-label { margin-right: 4px; font-size: 15px; }
.filters > span:not(.filters-label) { color: var(--title); }
.filters button { font-weight: 500; color: var(--title); position: relative; transition: color .3s; }
.filters button sup { font-size: 10.5px; margin-left: 2px; vertical-align: 8px; line-height: 0; }
.filters button:hover, .filters button.is-active { color: var(--brand-text); }

/* ---------- news page ---------- */
.news-list { display: grid; gap: 28px; }
.news-item { display: grid; grid-template-columns: 520px 1fr; gap: 20px; align-items: center; }
.news-media { display: block; overflow: hidden; border-radius: 4px; }
.news-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1s var(--ease); }
.news-media:hover img { transform: scale(1.04); }
.news-title { font-size: 26px; line-height: 1.3; letter-spacing: -.03em; margin: 8px 0 22px; }
.news-title a:hover { color: var(--brand-text); }

/* ---------- project page ---------- */
.project-hero { padding: 0 0 0; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 66px; align-items: start; }
.project-gallery { position: relative; display: grid; gap: 6px; }
.gallery-item { display: block; cursor: zoom-in; overflow: hidden; }
.gallery-item img { width: 100%; transition: transform 1s var(--ease); }
.gallery-item:hover img { transform: scale(1.02); }
.share { position: absolute; top: 20px; left: 20px; z-index: 2; background: var(--surface); border-radius: var(--r); padding: 8px 6px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 4px 20px var(--shadow); }
.share a { width: 26px; height: 26px; display: grid; place-items: center; color: var(--title); transition: color .3s; }
.share a:hover { color: var(--brand-text); }
.share svg { width: 15px; height: 15px; }
.project-info { align-self: stretch; }
.project-sticky { position: sticky; top: 0; padding: 86px 0 60px; max-width: 520px; }
.project-meta { font-size: 14.4px; font-weight: 700; margin-bottom: 12px; }
.project-title { font-family: var(--f-display); font-size: 64px; line-height: 1.04; letter-spacing: -.045em; margin-bottom: 26px; }
.project-desc ul { padding-left: 1.2em; margin: 0 0 1em; }
.project-details { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.project-details h6 { margin-bottom: 2px; font-size: 15.6px; }
.project-details p { margin: 0; }
.overview-list ul { margin: 0; padding-left: 1.2em; line-height: 1.75; }
.carousel-wrap { padding: 0 0 70px; overflow: hidden; }
.section--grey + .carousel-wrap { padding-top: 0; }
.carousel { position: relative; }
.carousel-track { display: flex; gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0 calc((100% - min(980px, 76vw)) / 2); scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(980px, 76vw); margin: 0; scroll-snap-align: center; opacity: .35; transition: opacity .6s var(--ease); }
.slide.is-current { opacity: 1; }
.slide button { display: block; width: 100%; cursor: zoom-in; }
.slide img { width: 100%; height: auto; box-shadow: 0 10px 40px var(--shadow); }
.carousel-btn { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; background: var(--float-bg); color: var(--title); box-shadow: 0 6px 24px var(--shadow); transition: transform .3s var(--ease); }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn:hover { transform: scale(1.08); }
.carousel-btn.prev { left: calc((100% - min(980px, 76vw)) / 2 - 26px); }
.carousel-btn.next { right: calc((100% - min(980px, 76vw)) / 2 - 26px); }
.carousel-count { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 26px 0 0; font-weight: 500; font-size: 15px; }
.carousel-count i { width: 40px; height: 1px; background: var(--title); }
.project-about { padding: 90px 0 110px; }
.about-big { font-size: 46px; letter-spacing: -.04em; margin-bottom: 60px; }
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin: 0 0 40px 60px; }
.approach .heading .title { font-size: 40px; line-height: 1.05; max-width: 420px; }
.approach-media img { width: 100%; max-width: 440px; margin-left: auto; }
.numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-left: 60px; }
.numbers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 80px; }
.number h6 { margin-bottom: 30px; }
.number p { max-width: 220px; }
.stat-num--dark { color: var(--title); }
.services-split { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.services--2x2 { grid-template-columns: 1fr 1fr; gap: 60px 0; }
.services--2x2 .service { border-left: 1px solid var(--line-strong); padding: 0 50px 0 70px; }
.services--2x2 .service:nth-child(even) { margin-top: 0; }
.services--2x2 .service-title { min-height: 0; }
.banner { height: 640px; background: #ccc var(--bg-lg) center / cover no-repeat; background-position: center var(--py, 50%); }
.sticky-nav {
  position: fixed; right: 0; top: 50%; z-index: 30; width: 200px; background: var(--surface); padding: 18px 20px 20px; border-radius: var(--r) 0 0 var(--r);
  box-shadow: 0 10px 40px var(--shadow); transform: translate(0, -50%); transition: transform .5s var(--ease), opacity .4s;
}
.sticky-nav.is-hidden { transform: translate(105%, -50%); opacity: 0; }
.sticky-nav-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sticky-nav-top p { margin: 0; font-size: 14.4px; font-weight: 700; }
.sticky-nav-top div { display: flex; gap: 6px; }
.sticky-nav-top a { width: 26px; height: 26px; display: grid; place-items: center; }
.sticky-nav-top svg { width: 18px; height: 18px; }
.sticky-nav-top a:hover { color: var(--brand-text); }
.sticky-nav-title { display: block; font-weight: 800; font-size: 17px; line-height: 1.3; letter-spacing: -.02em; }
.sticky-nav-title:hover { color: var(--brand-text); }

/* ---------- blog post ---------- */
.post-head { position: relative; padding: 86px 0 60px; }
.post-cat { font-size: 14.4px; margin-bottom: 12px; }
.post-h1 { font-size: 64px; line-height: 1.04; letter-spacing: -.045em; font-weight: 400; margin-bottom: 28px; }
.post-author { display: flex; align-items: center; gap: 16px 22px; font-size: 15px; }
.post-author .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.post-author p { margin: 0; font-weight: 700; color: var(--title); }
.post-author p span { display: block; font-weight: 400; color: var(--muted); }
.crumbs--post { padding: 20px 0 26px; }
.post figure { margin: 0 0 30px; }
.post figure img { width: 100%; }
.prose { font-size: 16.4px; line-height: 1.75; padding-bottom: 60px; }
.prose h2 { font-size: 46px; line-height: 1.1; letter-spacing: -.04em; margin: 1.3em 0 .5em; }
.prose h3 { font-size: 30px; line-height: 1.15; letter-spacing: -.03em; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .2em 0; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--brand-text); font-size: 20px; line-height: 1.5; color: var(--title); }
.prose code { background: var(--grey-bg); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.prose pre { background: var(--dark); color: #eee; padding: 18px 20px; border-radius: var(--r); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.prose img { border-radius: 2px; }
.prose a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 0 100px; margin: 0; }
.post-tags > span:first-child { font-weight: 700; margin-right: 4px; }

.prose--legal { max-width: 760px; padding-bottom: 40px; }
.prose--legal h2 { font-size: 30px; margin-top: 1.6em; }
.prose--legal ul { margin-bottom: 1.4em; }
.prose--legal code { font-size: .85em; }
/* 404 */
.not-found { padding: 200px 0 160px; }
.nf-code { font-family: var(--f-display); font-size: 120px; line-height: 1; color: var(--brand-text); letter-spacing: -.05em; margin-bottom: 20px; }
.not-found .page-title { margin-bottom: 16px; }
.not-found p { margin-bottom: 40px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(12, 12, 14, .94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 86vh; width: auto; height: auto; transform: scale(.96); transition: transform .45s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox button { position: absolute; color: #fff; width: 48px; height: 48px; display: grid; place-items: center; }
.lightbox button svg { width: 26px; height: 26px; }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 20px; top: 50%; margin-top: -24px; }
.lb-next { right: 20px; top: 50%; margin-top: -24px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* ---------- custom cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 100; display: none; }
.cursor i { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--cursor); transition: width .3s, height .3s, margin .3s, opacity .3s; }
.cursor-ring { width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 1px solid var(--cursor); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, opacity .3s; }
.cursor.is-link .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(221, 51, 51, .08); }
.cursor.is-link .cursor-dot { opacity: 0; }
.cursor.is-hidden i { opacity: 0; }
@media (pointer: fine) and (hover: hover) { .has-cursor .cursor { display: block; } }

/* ---------- reveal animations ---------- */
.js [data-anim] { opacity: 0; transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-anim="up"] { transform: translate3d(0, 40px, 0); }
.js [data-anim="left"] { transform: translate3d(60px, 0, 0); }
.js [data-anim].is-in { opacity: 1; transform: none; }
.js .grid-masonry.is-laid [data-anim="left"] { transform: translate3d(var(--x, 0), calc(var(--y, 0px)), 0) translateX(60px); }
.js .grid-masonry.is-laid [data-anim="left"].is-in { transform: translate3d(var(--x, 0), var(--y, 0), 0); }
.js .grid-masonry.is-laid .card.is-hidden { transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.92); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-anim] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .project-title, .post-h1, .page-head--display .page-title { font-size: 54px; }
  .services { gap: 30px; }
}

@media (max-width: 1024px) {
  :root { --side: 0px; --gutter: 24px; }
  main, .site-footer { margin-left: 0; }
  .site-header { inset: 0 0 auto 0; width: auto; height: 92px; flex-direction: row; background: transparent; border: 0; padding: 0 20px; z-index: 60; transition: background-color .35s, height .35s, box-shadow .35s; }
  .is-home:not(.menu-open) .site-header:not(.is-stuck) .burger { background: rgba(255, 255, 255, .12); }
  .is-home:not(.menu-open) .site-header:not(.is-stuck) .burger span { background: #fff; }
  .is-home .site-header:not(.is-stuck) .top-search { color: #fff; }
  .is-home .site-header:not(.is-stuck) .site-logo img { filter: invert(1); }
  .site-header.is-stuck { position: fixed; background: var(--bg); height: 72px; box-shadow: 0 2px 20px rgba(0, 0, 0, .06); }
  .burger { position: static; margin: 0; flex: none; }
  .site-logo { position: static; margin-left: 10px; }
  .site-logo img { width: 46px; height: 46px; }
  .side-bottom { position: static; margin-left: auto; flex-direction: row; align-items: center; gap: 10px; }
  .lang-switch { display: none; }
  .theme-toggle { width: 40px; height: 40px; border-radius: 50%; background: transparent; }
  .theme-toggle::after { display: none; }
  .is-home:not(.menu-open) .site-header:not(.is-stuck) .theme-toggle { color: #fff; }
  .theme-seg { background: var(--grey-bg); }
  .theme-seg button { color: var(--muted); }
  .theme-seg button:hover { color: var(--title); }
  .theme-seg button[aria-checked="true"] { background: var(--grey-bg-2); color: var(--title); }
  .side-cta { writing-mode: horizontal-tb; transform: none; width: auto; padding: 10px 18px; font-size: 14.8px; }
  .top-search { display: grid; place-items: center; width: 40px; height: 40px; margin-left: 8px; color: var(--title); }
  .top-search svg { width: 24px; height: 24px; }
  .fab-search, .scroll-top { display: none; }
  main { padding-top: 0; }
  body:not(.is-home) main { padding-top: 92px; }
  .back-link { display: none; }

  .menu { background: transparent; padding: 0; justify-content: flex-start; transition: visibility .5s; overflow-y: auto; }
  .menu::before { content: ''; position: absolute; inset: 0; background: rgba(24, 25, 29, .6); opacity: 0; transition: opacity .5s; }
  .menu-open .menu::before { opacity: 1; }
  /* one panel (::after) slides in first, then the links and controls appear in sequence */
  .menu::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: min(345px, 88vw); background: var(--bg); box-shadow: 0 0 40px rgba(0, 0, 0, .25); transform: translateX(-100%); transition: transform .45s var(--ease); }
  .menu-open .menu::after { transform: none; }
  .menu-nav, .menu-foot { position: relative; z-index: 1; background: none; width: min(345px, 88vw); color: var(--title); }
  .menu-nav { padding: 104px 24px 10px; }
  .menu-foot { left: 0; right: auto; bottom: auto; flex: none; margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 24px calc(28px + env(safe-area-inset-bottom)); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .4s var(--ease); transition-delay: 0s; }
  .menu-open .menu-foot { opacity: 1; transform: none; transition-delay: calc(.35s + 5 * 60ms); }
  .menu-nav li { overflow: visible; }
  .menu-nav a { opacity: 0; transform: translateX(-14px); transition: opacity .3s, transform .4s var(--ease), color .3s; transition-delay: 0s; }
  .menu-open .menu-nav a { opacity: 1; transform: none; transition-delay: calc(.3s + var(--i) * 60ms); }
  body:not(.menu-open) .menu-nav a[aria-current] { opacity: 0; }
  .menu-nav a { color: var(--title); font-size: 32px; line-height: 1.2; letter-spacing: -.01em; font-weight: 400; padding: 7px 0; gap: 12px; }
  .menu-nav sup { color: var(--muted); font-size: 11px; margin-top: 8px; width: 16px; }
  .menu-nav a[aria-current] { color: var(--brand-text); }
  .menu-nav ul:hover a { opacity: 1; }
  .menu-foot > div:not(.menu-prefs) { display: none; }
  .menu-copy { display: block; order: -1; margin: 0; }
  .menu-prefs { order: 0; gap: 4px; }
  .menu-lang a { background: var(--grey-bg); color: var(--title); }
  .menu-lang a[aria-current] { background: var(--grey-bg-2); }
  .menu-open .burger { position: fixed; top: 18px; left: 20px; z-index: 61; background: var(--grey-bg); box-shadow: none; }
  .menu-open .burger span { background: var(--title); }
  .menu-open .site-header { background: transparent; box-shadow: none; }

  .hero { min-height: 640px; min-height: 76svh; background-position: left center; }
  .hero-title { font-size: 56px; }
  .section { padding: 90px 0; }
  .split-head, .teaser-grid, .news-grid, .two-col, .team-grid, .project-grid, .approach, .numbers, .services-split, .contact-grid { grid-template-columns: 1fr; }
  .split-head { gap: 24px; margin-bottom: 50px; }
  .services { grid-template-columns: 1fr 1fr; gap: 50px 30px; }
  .services--2x2 .service { padding: 0 20px 0 30px; }
  .teaser-grid .heading .title { margin-bottom: 30px; }
  .teaser-grid > div:last-child { max-width: none; }
  .news-intro { margin-top: 24px; }
  .cta-grid { grid-template-columns: 1fr 1fr; }
  .cta-main { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-lead { margin-left: 0; max-width: none; }
  .me-grid { grid-template-columns: 1fr; gap: 40px; }
  .me-photo { max-width: 420px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .diff { grid-template-columns: 1fr; }
  .svc-cards { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .process-inner { margin: 0; max-width: 560px; }
  .project-sticky { position: static; padding: 50px 0 40px; max-width: none; }
  .approach, .numbers { margin-left: 0; }
  .contact-grid { padding: 0 var(--gutter); }
  .page-head--contact { padding: 110px 0 60px; }
  .news-item { grid-template-columns: 1fr 1fr; }
  .sticky-nav { display: none; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .banner { height: 420px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .site-header { height: 84px; padding: 0 16px; }
  body:not(.is-home) main { padding-top: 84px; }
  .side-cta { padding: 9px 14px; }
  .hero-title { font-size: 48px; margin-bottom: 40px; }
  .hero-kicker { font-size: 14px; }
  .heading .title, h2.title, .intro-title, .teaser-grid .heading .title, .about-big, .prose h2, .collab .heading .title { font-size: 34px; }
  .page-title { font-size: 40px; }
  .project-title, .post-h1, .page-head--display .page-title { font-size: 42px; }
  .about-lead, .process-inner h3, .two-col--forward h3, .steps h3, .quote h3, .team-grid .heading .title, .approach .heading .title { font-size: 28px; }
  .section { padding: 70px 0; }
  .intro { padding: 70px 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .intro-title { margin: 16px 0 36px; min-height: 2.1em; }
  .typed { white-space: normal; }
  .grid-masonry, .grid-masonry--tight { --gap: 20px; grid-template-columns: 1fr; }
  .grid-masonry.is-laid .card { width: 100%; }
  .stats-band, .stats-band--tall { min-height: 460px; }
  .stats-row { gap: 16px; }
  .stat-box { width: auto; flex: 1; min-height: 220px !important; padding: 70px 22px 40px !important; }
  .stat-num { font-size: 34px; }
  .services, .services--2x2 { grid-template-columns: 1fr; gap: 50px; }
  .services--2x2 .service { border-left: 0; padding: 0; }
  .service-title { min-height: 0; margin-bottom: 16px; }
  .service-icon { margin-bottom: 24px; }
  .post-row { grid-template-columns: 1fr; gap: 6px; }
  .cta-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-q { margin-bottom: 14px; }
  .cta-label { margin-bottom: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 60px; }
  .footer-bottom { flex-direction: column; }
  .diff-item { padding-left: 40px; }
  .svc-cards { grid-template-columns: 1fr; }
  .svc-card { padding: 30px 24px; }
  .svc-overview-intro { font-size: 18px; margin-bottom: 40px; }
  .me-help h3, .me-help .heading .title { font-size: 28px; }
  .collab-grid { flex-direction: column; align-items: flex-start; }
  .news-item { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .numbers-grid { grid-template-columns: 1fr; gap: 36px; }
  .number h6 { margin-bottom: 12px; }
  .carousel-track { gap: 16px; padding: 0 7vw; }
  .slide { flex-basis: 86vw; }
  .carousel-btn { display: none; }
  .banner { height: 300px; }
  .process-panel { padding: 70px 24px; }
  .page-head { padding-bottom: 46px; }
  .page-head--display { padding-top: 10px; }
  .contact-banner { height: 140px; }
  .contact-info h4 { font-size: 24px; margin-bottom: 20px; }
  .svc .heading .title { font-size: 32px; }
  .svc-list a { grid-template-columns: 30px 1fr 20px; gap: 10px; }
  .svc-title { font-size: 21px; }
  .contact-q { margin: 24px 0 8px; }
  .post-head { padding: 40px 0 30px; }
  .prose h3 { font-size: 24px; }
  .quote .two-col { padding: 0 var(--gutter); }
  .not-found { padding: 120px 0 100px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 44px; }
}
@media (max-width: 340px) {
  .side-cta { display: none; }
}

@media print {
  .site-header, .fab-search, .scroll-top, .menu, .search, .cursor, .sticky-nav, .lightbox { display: none !important; }
  main, .site-footer { margin: 0; }
  .js [data-anim] { opacity: 1 !important; transform: none !important; }
}
