/*
  codeart.lt – one stylesheet for the whole redesigned site.

  Tokens first, then base elements, then components in page order:
  header, hero, project rows, services, steps, about, FAQ, contact,
  footer; then the /portfolio page, the project pages and the CV sheet.
  Desktop and mobile switch at 760px, as in the design handoff.
*/

/* ------------------------------------------------------------------ */
/* Fonts – self-hosted variable fonts, latin + latin-ext (ąčęėįšųūž)   */
/* ------------------------------------------------------------------ */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk/schibsted-grotesk-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk/schibsted-grotesk-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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono/jetbrains-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono/jetbrains-mono-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;
}

/* ------------------------------------------------------------------ */
/* Tokens                                                             */
/* ------------------------------------------------------------------ */

:root {
  --bg-base: #f6f0e6;
  --bg-raised: #fbf7f0;
  --surface: #ffffff;

  --line: #ddd2c1;
  --line-frame: #d3c8b6;
  --line-input: #8f8577;
  --line-strong: #1c1a17;

  --text: #1c1a17;
  --text-body: #36322d;
  --text-muted: #5b544c;
  --text-meta: #6a635a;

  --accent: #a9502f;
  --accent-hover: #8c4229;

  --blob-hero: #ecddc4;
  --blob-sand: #eedfc6;
  --blob-rose: #f2d9d3;
  --blob-lavender: #ebdce1;
  --blob-apricot: #f2ddcb;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --side: 40px;
  --section: 128px;
  --head-gap: 48px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-frame: 0 24px 48px -30px rgba(80, 58, 34, 0.35);
}

@media (max-width: 759px) {
  :root {
    --side: 20px;
    --section: 64px;
    --head-gap: 32px;
  }
}

/* ------------------------------------------------------------------ */
/* Base                                                               */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
}

/* Clear the sticky header when jumping to an anchor. */
[id] {
  scroll-margin-top: 104px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--side);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--side);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}

.grid > * {
  min-width: 0;
}

@media (max-width: 759px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid > * {
    grid-column: 1 / -1 !important;
  }
}

.mono {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--text-meta);
}

.lead {
  font-size: 20px;
  line-height: 32px;
  color: var(--text-body);
}

.small {
  font-size: 15px;
  line-height: 22px;
}

/* Placeholders the owner still has to fill in stay visible on purpose. */
.todo {
  color: var(--text-muted);
}

/* ------------------------------------------------------------------ */
/* Buttons and links                                                  */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn--lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 18px;
}

.btn--md {
  min-height: 48px;
  padding: 0 22px;
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
}

.link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.link-plain {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-weight: 500;
  text-underline-offset: 5px;
}

.link-underline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-weight: 500;
  line-height: 24px;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.link-underline:hover {
  color: var(--accent);
}

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
  text-decoration: none;
}

.lang:hover {
  color: var(--text);
}

.lang b {
  font-weight: 500;
  color: var(--text);
}

/* ------------------------------------------------------------------ */
/* Site header and mobile menu                                        */
/* ------------------------------------------------------------------ */

/* The header stays at the top while scrolling; once the page has moved,
   site.js adds .is-scrolled and a soft shadow separates it from content. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 240, 230, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 200ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -22px rgba(80, 58, 34, 0.45);
}

.site-header__in {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg-base);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-size: 17px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__co {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
  color: var(--accent);
}

@media (max-width: 420px) {
  .brand__surname {
    display: none;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.site-nav__links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.site-nav__links a {
  position: relative;
}

.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out);
}

.site-nav__links a:hover::after,
.site-nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg-base);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__bar {
  min-height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.mobile-menu__nav {
  flex: 1;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  text-decoration: none;
}

.mobile-menu__nav a .mono {
  font-weight: 400;
  letter-spacing: 0;
}

.mobile-menu__nav a[aria-current="page"] {
  color: var(--accent);
}

.mobile-menu__foot {
  padding: 16px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu__foot .btn {
  min-height: 52px;
  font-size: 18px;
}

@media (max-width: 1099px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 759px) {
  .site-header__in {
    min-height: 64px;
  }
}

/* ------------------------------------------------------------------ */
/* Sections                                                           */
/* ------------------------------------------------------------------ */

.section {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
  background: var(--bg-base);
}

.section--raised {
  background: var(--bg-raised);
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: var(--head-gap);
}

.sec-head .mono {
  white-space: nowrap;
}

.sec-head--tight {
  margin-bottom: 0;
}

.h2 {
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -0.025em;
}

@media (max-width: 759px) {
  .h2 {
    font-size: 28px;
    line-height: 32px;
  }
}

/* ------------------------------------------------------------------ */
/* Organic blobs                                                      */
/* ------------------------------------------------------------------ */

.blob {
  position: absolute;
  z-index: 0;
  inset: var(--bt, 0) var(--br, 0) var(--bb, 0) var(--bl, 0);
  transform-origin: 50% 50%;
  transition: transform 400ms ease;
  pointer-events: none;
}

.blob svg {
  display: block;
  width: 100%;
  height: 100%;
}

.blob--sand path {
  fill: var(--blob-sand);
}

.blob--hero path {
  fill: var(--blob-hero);
}

.blob--rose path {
  fill: var(--blob-rose);
}

.blob--lavender path {
  fill: var(--blob-lavender);
}

.blob--apricot path {
  fill: var(--blob-apricot);
}

/* ------------------------------------------------------------------ */
/* Browser frame around screenshots                                   */
/* ------------------------------------------------------------------ */

.frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line-frame);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-frame);
}

.frame__bar {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid #eae3d8;
  background: #faf7f2;
}

.frame__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.frame--dark {
  background: var(--text);
}

.frame__screen {
  aspect-ratio: 19 / 10;
  overflow: hidden;
}

.frame--dark .frame__screen {
  background: var(--text);
}

.frame__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: object-position 1400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Placeholder for a screenshot that is still to be taken. */
.shot-todo {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed #b9ae9e;
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
}

/* ------------------------------------------------------------------ */
/* Home: hero                                                         */
/* ------------------------------------------------------------------ */

.hero {
  padding: 112px 0;
  background: var(--bg-base);
}

.hero__grid {
  row-gap: 56px;
  align-items: center;
}

.hero__copy {
  grid-column: 1 / span 5;
  position: relative;
  z-index: 3;
}

.hero__title {
  font-size: 56px;
  line-height: 60px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__lead {
  margin-top: 24px;
  max-width: 30em;
}

.hero__ctas {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}

.hero__note {
  margin-top: 40px;
  color: var(--text-muted);
}

.hero__stage {
  grid-column: 6 / span 7;
  position: relative;
  padding: 64px 0 40px 128px;
  --bl: 72px;
  --br: -56px;
  --bt: 0;
  --bb: -24px;
}

.hero__plant {
  position: absolute;
  z-index: 1;
  left: -88px;
  bottom: 34px;
  width: auto;
  height: 400px;
  max-width: none;
}

.laptop {
  position: relative;
  z-index: 2;
}

.laptop__lid {
  padding: 10px 10px 12px;
  border: 1.5px solid #cfc8bc;
  border-radius: 16px 16px 4px 4px;
  background: #232220;
  box-shadow: 0 2px 0 #e4dfd6 inset;
}

.laptop__lid img {
  width: 100%;
  border-radius: 3px;
}

.laptop__base {
  position: relative;
  height: 14px;
  margin: 0 -7%;
  border-radius: 2px 2px 14px 14px / 2px 2px 10px 10px;
  background: linear-gradient(180deg, #eeebe6 0%, #d8d3cb 60%, #c6c0b6 100%);
  box-shadow: 0 34px 44px -22px rgba(80, 58, 34, 0.38),
    0 2px 3px rgba(80, 58, 34, 0.12);
}

.laptop__base::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 15%;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: #cbc5bb;
}

@media (max-width: 759px) {
  .hero {
    padding: 48px 0;
  }

  .hero__title {
    font-size: 36px;
    line-height: 40px;
  }

  .hero__stage {
    padding: 24px 8px 32px;
    --bl: -12px;
    --br: -12px;
    --bt: 0;
    --bb: 8px;
  }

  .hero__plant {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Home: project rows                                                 */
/* ------------------------------------------------------------------ */

.work {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  row-gap: 48px;
  align-items: center;
}

.work:first-of-type {
  border-top-color: var(--line-strong);
}

.work:last-of-type {
  border-bottom: 1px solid var(--line);
}

.work__text {
  grid-column: 1 / span 4;
  position: relative;
  z-index: 2;
}

.work__title {
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.02em;
}

.work__title a {
  text-decoration: none;
}

.work__desc {
  margin-top: 20px;
  color: var(--text-body);
}

.work__tags {
  margin-top: 20px;
}

.work__text .link {
  margin-top: 12px;
}

.work__media {
  grid-column: 6 / span 7;
  position: relative;
}

.work--a .work__media {
  --bl: -64px;
  --br: -48px;
  --bt: -56px;
  --bb: -64px;
  --turn: -2deg;
}

.work--b .work__media {
  --bl: -56px;
  --br: -64px;
  --bt: -64px;
  --bb: -48px;
  --turn: 2deg;
}

.work--c .work__media {
  --bl: -72px;
  --br: -40px;
  --bt: -48px;
  --bb: -72px;
  --turn: -1.5deg;
}

.work-all {
  margin-top: 32px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .work:hover .blob {
    transform: rotate(var(--turn, 0deg)) scale(1.025);
  }

  .work:hover .frame__screen img {
    object-position: center bottom;
  }
}

@media (max-width: 759px) {
  .work {
    padding: 48px 0 56px;
  }

  .work__title {
    font-size: 24px;
    line-height: 30px;
  }

  .work--a .work__media,
  .work--c .work__media {
    --bl: -14px;
    --br: -14px;
    --bt: -20px;
    --bb: -24px;
  }

  .work--b .work__media {
    --bl: -14px;
    --br: -14px;
    --bt: -24px;
    --bb: -20px;
  }
}

/* ------------------------------------------------------------------ */
/* Home: services and steps                                           */
/* ------------------------------------------------------------------ */

.services {
  row-gap: 40px;
}

.service {
  grid-column: span 4;
  padding: 24px 16px 0 0;
  border-top: 1px solid var(--line-strong);
}

.service h3 {
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.015em;
}

.service__fit {
  margin-top: 12px;
  color: var(--text-muted);
}

.service__text {
  margin-top: 16px;
  color: var(--text-body);
}

.steps {
  list-style: none;
  padding: 0;
  row-gap: 32px;
}

.step {
  grid-column: span 3;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.step h3 {
  margin-top: 8px;
  font-size: 20px;
  line-height: 28px;
}

.step p {
  margin-top: 8px;
  color: var(--text-body);
}

@media (max-width: 759px) {
  .service {
    padding-right: 0;
  }
}

/* ------------------------------------------------------------------ */
/* Home: about                                                        */
/* ------------------------------------------------------------------ */

.about {
  row-gap: 56px;
  align-items: center;
}

.about__media {
  grid-column: 1 / span 4;
  position: relative;
  padding: 24px 28px 32px 20px;
}



/* Photos are cut to the same organic shape as the blobs, so they are never
   plain rectangles; an apricot blob behind them shows around the edges. */
.organic {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M46 3C58 0 71 4 82 6C93 8 99 17 98 30C97 42 92 50 95 62C98 75 96 88 85 94C74 100 62 96 50 98C37 100 22 101 12 94C2 87 4 74 3 62C2 50 7 41 4 29C1 17 6 6 18 4C28 2 36 5 46 3Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M46 3C58 0 71 4 82 6C93 8 99 17 98 30C97 42 92 50 95 62C98 75 96 88 85 94C74 100 62 96 50 98C37 100 22 101 12 94C2 87 4 74 3 62C2 50 7 41 4 29C1 17 6 6 18 4C28 2 36 5 46 3Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.about__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}

.about__media .blob {
  inset: 10% -2% -2% 14%;
  transform: rotate(-6deg);
}

.about__text {
  grid-column: 6 / span 7;
}

.about__text .lead {
  margin-top: 24px;
  max-width: 32em;
}

.facts {
  list-style: none;
  margin-top: 32px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
}

.about__text .link {
  margin-top: 16px;
}

@media (max-width: 759px) {
  .about__media {
    padding: 20px;
  }
}

/* ------------------------------------------------------------------ */
/* Home: FAQ                                                          */
/* ------------------------------------------------------------------ */

.faq-wrap {
  grid-column: 3 / span 8;
}

.faq {
  border-top: 1px solid var(--line-strong);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq__btn {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.faq__btn svg {
  flex: none;
  transition: transform 240ms ease;
}

.faq__btn[aria-expanded="true"] svg {
  transform: rotate(45deg);
}

.faq__a {
  max-width: 40em;
  padding-bottom: 24px;
  color: var(--text-body);
}

/* ------------------------------------------------------------------ */
/* Home: contact                                                      */
/* ------------------------------------------------------------------ */

.contact {
  row-gap: 40px;
}

.contact__text {
  grid-column: 1 / span 5;
}

.contact__text .lead {
  margin-top: 20px;
  max-width: 26em;
}

.contact__links {
  list-style: none;
  margin-top: 32px;
  padding: 0;
}

.contact__links a {
  overflow-wrap: anywhere;
}

.form {
  grid-column: 7 / span 6;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.field {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
}

/* Outside a row the form is a column: the 220px basis must not become height. */
.form > .field {
  flex: none;
}

.field input,
.field textarea {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-input);
  border-radius: 6px;
  background: var(--surface);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
}

.field textarea {
  padding: 12px 14px;
  line-height: 28px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  min-height: 28px;
  color: var(--text-body);
}

.form__status.is-error {
  color: #9b2c1f;
}

.form .btn {
  min-height: 52px;
  padding: 0 32px;
  font-size: 18px;
}

.form .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ------------------------------------------------------------------ */
/* Home footer                                                        */
/* ------------------------------------------------------------------ */

.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--line);
}

.site-footer__in {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
}

.site-footer__links .muted-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__links .muted-link:hover {
  color: var(--text);
}

/* ------------------------------------------------------------------ */
/* /portfolio (CV summary for employers)                              */
/* ------------------------------------------------------------------ */

.page-cv {
  background: var(--bg-raised);
  font-size: 16px;
  line-height: 24px;
}

.page-cv .container {
  padding: 0 clamp(20px, 3vw, 40px);
}

.cv-head {
  background: var(--bg-base);
  border-bottom: 1px solid var(--line);
}

.cv-head .container {
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(24px, 3vw, 32px);
}

.cv-head__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-muted);
  text-decoration: none;
}

.back:hover {
  color: var(--text);
}

.cv-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
}

.cv-head__row > div {
  min-width: 0;
}

.cv-head h1 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cv-head__role {
  margin-top: 8px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text-body);
}

.cv-head__where {
  font-size: 15px;
  line-height: 22px;
  color: var(--text-muted);
}

.cv-head__links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
}

.cv-head__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.cv-head__links a:hover {
  color: var(--accent-hover);
}

.cv-facts {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.cv-facts dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px 24px;
}

.cv-facts dt,
.label-mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--text-meta);
}

.cv-facts dd {
  margin-top: 4px;
  font-weight: 500;
}

.cv-sec {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line-strong);
}

.cv-sec--works {
  padding: 48px 0 56px;
  border-top: 0;
}

.cv-sec__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.cv-sec--works .cv-sec__head {
  margin-bottom: 40px;
}

.cv-sec__head h2 {
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.015em;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 32px;
}

.card {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.card__media {
  position: relative;
  margin: 8px 12px 0;
}

.card .frame {
  border-radius: 10px;
  box-shadow: 0 16px 32px -22px rgba(80, 58, 34, 0.35);
}

.card .frame__bar {
  height: 20px;
  gap: 5px;
  padding: 0 10px;
}

.card .frame__bar span {
  width: 6px;
  height: 6px;
}

.card .frame__screen {
  aspect-ratio: 16 / 10;
}

.card .frame__screen img {
  object-position: left top;
}

.card--b .frame__screen img {
  object-position: center top;
}

.card--a .card__media {
  --bl: -20px;
  --br: -16px;
  --bt: -16px;
  --bb: -22px;
}

.card--b .card__media {
  --bl: -16px;
  --br: -22px;
  --bt: -20px;
  --bb: -16px;
}

.card--c .card__media {
  --bl: -22px;
  --br: -14px;
  --bt: -14px;
  --bb: -22px;
}

.card h3 {
  margin-top: 36px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.card__facts {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  line-height: 22px;
}

.card__facts div {
  display: flex;
  gap: 8px;
}

.card__facts dt {
  flex: none;
  color: var(--text-muted);
}

.tags {
  list-style: none;
  margin-top: 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags li,
.tag {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--text-muted);
}

.card__links {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.others {
  margin-top: 56px;
}

.others h3 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 24px;
}

.rows {
  list-style: none;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.rows > li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 24px;
}

.rows .r-name {
  flex: 0 0 180px;
  font-weight: 600;
}

.rows .r-desc {
  flex: 1 1 340px;
  min-width: 0;
  color: var(--text-body);
}

.rows .r-stack {
  flex: 0 1 260px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 24px;
  color: var(--text-muted);
}

.rows .r-year {
  flex: 0 0 40px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 24px;
  color: var(--text-muted);
}

.rows .r-links {
  flex: 0 0 170px;
  display: flex;
  gap: 0 14px;
  font-size: 15px;
}

.timeline {
  list-style: none;
  padding: 0;
}

.timeline li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 2px 24px;
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline .t-date {
  flex: 0 0 200px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 24px;
  color: var(--text-muted);
}

.timeline .t-role {
  flex: 0 1 340px;
  min-width: 0;
  font-weight: 600;
}

.timeline .t-what {
  flex: 1 1 320px;
  min-width: 0;
  color: var(--text-body);
}

.timeline .is-past .t-role,
.timeline .is-past .t-what {
  color: var(--text-muted);
}

.stack-list {
  display: flex;
  flex-direction: column;
}

.stack-list > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.stack-list > div:first-child {
  border-top: 1px solid var(--line);
}

.stack-list dt {
  flex: 0 0 200px;
  font-weight: 500;
}

.stack-list dd {
  flex: 1 1 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-list .tag {
  color: var(--text-body);
}

.cv-foot {
  background: var(--bg-base);
  border-top: 1px solid var(--line);
}

.cv-foot .container {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}

.cv-foot p {
  font-size: 15px;
  line-height: 22px;
  color: var(--text-body);
}

.cv-foot strong {
  font-weight: 600;
  color: var(--text);
}

.cv-foot__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.cv-foot__actions .link-plain {
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* Project pages                                                      */
/* ------------------------------------------------------------------ */

.page-project .container {
  padding: 0 clamp(20px, 3vw, 40px);
}

.p-intro {
  padding: clamp(48px, 6vw, 96px) 0 clamp(48px, 6vw, 64px);
}

.p-intro__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.p-intro h1 {
  margin-top: 16px;
  max-width: 18ch;
  font-size: clamp(36px, 3.9vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.03em;
}

.p-meta {
  margin-top: 12px;
  font-size: 20px;
  line-height: 32px;
  color: var(--text-muted);
}

.p-summary {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.p-summary > div {
  min-width: 0;
}

.p-summary > div:first-child {
  flex: 2 1 480px;
}

.p-summary > div:last-child {
  flex: 1 1 240px;
}

.p-summary dd {
  margin-top: 8px;
  max-width: 40em;
  font-size: 20px;
  line-height: 32px;
  color: var(--text-body);
}

.p-features {
  padding: clamp(56px, 7vw, 112px) 0;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.p-features .container {
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 9vw, 128px);
}

.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 64px;
}

.feature--flip {
  flex-direction: row-reverse;
}

.feature__text {
  flex: 1 1 340px;
  min-width: 0;
}

.feature__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.feature__head .mono,
.cv-sec__head .mono {
  flex: none;
  white-space: nowrap;
}

.feature__head h2,
.p-tech h2 {
  font-size: 28px;
  line-height: 32px;
  letter-spacing: -0.02em;
}

.feature__text .lead {
  margin-top: 20px;
}

.feature__list {
  margin-top: 20px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-body);
}

.feature__media {
  flex: 1.7 1 560px;
  min-width: 0;
  position: relative;
  --bl: -48px;
  --br: -40px;
  --bt: -52px;
  --bb: -44px;
}

.feature--flip .feature__media {
  --bl: -44px;
  --br: -48px;
  --bt: -40px;
  --bb: -52px;
}

.feature:nth-child(3) .feature__media {
  --bl: -40px;
  --br: -48px;
  --bt: -48px;
  --bb: -40px;
}

.feature__media .frame__bar {
  height: 28px;
  border-bottom-color: #e8e1d6;
}

.feature__media .frame--dark {
  box-shadow: 0 24px 48px -30px rgba(80, 58, 34, 0.45);
}

@media (max-width: 759px) {
  .feature__media {
    flex-basis: 100%;
    --bl: -14px !important;
    --br: -14px !important;
    --bt: -20px !important;
    --bb: -24px !important;
  }
}

.p-tech {
  padding: clamp(48px, 6vw, 96px) 0;
  border-top: 1px solid var(--line);
}

.p-tech .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.p-tech__title {
  flex: 0 0 282px;
}

.p-tech__body {
  flex: 1 1 600px;
  min-width: 0;
}

.tech-list > div {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.tech-list > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.tech-list > div:last-child {
  padding-bottom: 0;
}

.tech-list dt {
  flex: 0 0 160px;
  font-weight: 600;
}

.tech-list dd {
  flex: 1 1 340px;
  min-width: 0;
  color: var(--text-body);
}

.tech-list ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-list strong {
  font-weight: 600;
  color: var(--text);
}

.tech-list .tech-stack {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 24px;
}

.p-tech__note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.p-foot {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.p-foot .container {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.next {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.next strong {
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.next:hover strong {
  color: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Reveal on scroll                                                   */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms ease, transform 700ms var(--ease-out);
    transition-delay: var(--d, 0ms);
  }

  .js [data-reveal="far"] {
    transform: translateY(32px);
    transition-duration: 900ms;
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* Stagger inside a group: 100 ms per step. */
.d1 {
  --d: 100ms;
}

.d2 {
  --d: 200ms;
}

.d3 {
  --d: 300ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}

/* ------------------------------------------------------------------ */
/* CV sheet (A4, also printed to the PDF)                             */
/* ------------------------------------------------------------------ */

.page-sheet {
  background: #e9e3d8;
  font-size: 12.5px;
  line-height: 1.5;
}

.sheet {
  width: 794px;
  min-height: 1123px;
  margin: 40px auto;
  padding: 56px 60px 44px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 20px 50px -30px rgba(80, 58, 34, 0.5);
}

.sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.sheet__head h1 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.sheet__role {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
}

.sheet__where {
  margin-top: 2px;
  color: var(--text-muted);
}

.sheet__contacts {
  flex: none;
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-body);
}

.sheet__contacts a {
  text-decoration: none;
}

.sheet__facts {
  margin-top: 22px;
  padding: 12px 0;
  border-top: 1.5px solid var(--line-strong);
  border-bottom: 1px solid #cfc5b6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sheet__facts dt,
.sheet .m {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

.sheet__facts dd {
  margin-top: 2px;
  font-weight: 500;
}

.sheet section {
  margin-top: 26px;
}

.sheet h2 {
  font-size: 15px;
}

.sheet h2 .m {
  font-weight: 400;
}

.sheet__works {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sheet__works article {
  padding-top: 10px;
  border-top: 1px solid #cfc5b6;
}

.sheet__works h3 {
  font-size: 14px;
}

.sheet__works p {
  margin-top: 2px;
}

.sheet__works p.gap {
  margin-top: 8px;
}

.sheet__works .lbl {
  color: var(--text-muted);
}

.sheet__more {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.sheet table {
  margin-top: 10px;
  width: 100%;
  border-collapse: collapse;
}

.sheet tr {
  border-top: 1px solid #cfc5b6;
}

.sheet tr:last-child {
  border-bottom: 1px solid #cfc5b6;
}

.sheet td {
  padding: 7px 12px 7px 0;
  vertical-align: top;
}

.sheet td:last-child {
  padding-right: 0;
}

.sheet td.d {
  width: 140px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

.sheet td.r {
  width: 200px;
  font-weight: 600;
}

.sheet tr.is-past td {
  color: var(--text-muted);
}

.sheet__stack {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sheet__stack div {
  display: flex;
  gap: 12px;
}

.sheet__stack dt {
  flex: 0 0 140px;
  font-weight: 500;
}

.sheet__stack dd {
  flex: 1;
  font-family: var(--mono);
  font-size: 12px;
}

.sheet__edu {
  padding-top: 12px;
  border-top: 1.5px solid var(--line-strong);
}

.sheet__foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  .page-sheet {
    background: #fff;
  }

  .sheet {
    margin: 0;
    box-shadow: none;
    height: 1123px;
  }
}

/* ------------------------------------------------------------------ */
/* Shared small pieces                                                */
/* ------------------------------------------------------------------ */

.ico {
  flex: none;
}

.dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: #4f8a5b;
  box-shadow: 0 0 0 4px rgba(79, 138, 91, 0.16);
  vertical-align: middle;
}

.hero__note {
  display: flex;
  align-items: baseline;
}

.hero__note .dot {
  transform: translateY(-1px);
}

/* A line icon on a small organic blob. */
.ico-blob {
  flex: none;
  position: relative;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.ico-blob__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ico-blob .ico {
  position: relative;
}

.ico-blob--sand path { fill: var(--blob-sand); }
.ico-blob--rose path { fill: var(--blob-rose); }
.ico-blob--lavender path { fill: var(--blob-lavender); }
.ico-blob--apricot path { fill: var(--blob-apricot); }

.label-mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--text-meta);
}

/* ------------------------------------------------------------------ */
/* Inner page intro                                                   */
/* ------------------------------------------------------------------ */

.page-intro {
  padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 80px);
  background: var(--bg-base);
}

.page-intro__eyebrow {
  margin-bottom: 16px;
}

.page-intro h1 {
  max-width: 20ch;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-intro__lead {
  margin-top: 24px;
  max-width: 36em;
}

.page-intro--about .about__text h1 {
  font-size: clamp(32px, 3.4vw, 48px);
}

.about__paras {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-body);
  max-width: 36em;
}

.about__links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

.about__links .link {
  gap: 8px;
  margin-top: 0;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.facts .ico {
  color: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Service cards                                                      */
/* ------------------------------------------------------------------ */

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.service-card:hover {
  border-color: var(--line-frame);
  box-shadow: 0 24px 40px -32px rgba(80, 58, 34, 0.45);
}

.service-card h3 {
  margin-top: 20px;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.015em;
}

.service-card__fit {
  margin-top: 8px;
  color: var(--text-muted);
}

.service-card__text {
  margin-top: 16px;
  color: var(--text-body);
}

.service-card__inc {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.service-card__tags {
  margin-top: 10px;
}

.service-card__link {
  margin-top: auto;
  padding-top: 16px;
}

@media (max-width: 999px) {
  .service-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ */
/* Timeline                                                           */
/* ------------------------------------------------------------------ */

.tl {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 32px 24px;
  counter-reset: none;
}

.tl--3 {
  --cols: 3;
}

.tl__step {
  position: relative;
}

/* The line runs from each dot to the next one. */
.tl__step::before {
  content: "";
  position: absolute;
  left: 52px;
  right: -24px;
  top: 22px;
  height: 1px;
  background: var(--line-frame);
}

.tl__step:last-child::before {
  display: none;
}

.tl__num {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  background: var(--bg-base);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}

.section--raised .tl__num {
  background: var(--bg-raised);
}

.tl__step h3 {
  margin-top: 20px;
  font-size: 20px;
  line-height: 28px;
}

.tl__step p {
  margin-top: 8px;
  max-width: 22em;
  color: var(--text-body);
}

.tl-cta {
  margin-top: 56px;
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  border-radius: 16px;
  background: var(--blob-sand);
}

.tl-cta p {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-body);
}

@media (max-width: 899px) {
  .tl,
  .tl--3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .tl__step {
    padding: 0 0 32px 64px;
  }

  .tl__num {
    position: absolute;
    left: 0;
    top: 0;
  }

  .tl__step h3 {
    margin-top: 8px;
  }

  .tl__step::before {
    left: 22px;
    right: auto;
    top: 52px;
    bottom: 8px;
    width: 1px;
    height: auto;
  }
}

/* ------------------------------------------------------------------ */
/* Info cards, checklist, principles, values                          */
/* ------------------------------------------------------------------ */

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.info-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.info-card h3 {
  margin-top: 20px;
  font-size: 22px;
  line-height: 28px;
}

.info-card p {
  margin-top: 12px;
  color: var(--text-body);
}

.info-card--list h3 {
  margin-top: 0;
}

.checklist {
  list-style: none;
  margin-top: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-body);
}

.checklist .ico {
  margin-top: 5px;
  color: var(--accent);
}

@media (max-width: 999px) {
  .info-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.principle {
  display: flex;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.principle h3 {
  font-size: 20px;
  line-height: 28px;
}

.principle p {
  margin-top: 8px;
  color: var(--text-body);
}

.values {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  border-top: 1px solid var(--line-strong);
}

.value {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.value__ico {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blob-sand);
}

.value h3 {
  font-size: 18px;
  line-height: 26px;
}

.value p {
  margin-top: 4px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-body);
}

@media (max-width: 899px) {
  .principles,
  .values {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ */
/* Experience on the About page                                       */
/* ------------------------------------------------------------------ */

.jobs {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.job {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.job h3 {
  font-size: 20px;
  line-height: 28px;
}

.job__org {
  font-weight: 500;
  color: var(--text-muted);
}

.job__meta {
  margin-top: 4px;
}

.job__text {
  margin-top: 12px;
  max-width: 44em;
  color: var(--text-body);
}

@media (max-width: 759px) {
  .job {
    grid-template-columns: minmax(0, 1fr);
  }
}

.edu {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.edu__block {
  display: flex;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.edu__ico {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blob-apricot);
}

.edu h3 {
  font-size: 18px;
  line-height: 26px;
}

.edu p {
  margin-top: 4px;
  color: var(--text-body);
}

.langs {
  list-style: none;
  margin-top: 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.langs li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

@media (max-width: 759px) {
  .edu {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ */
/* Contacts with icons                                                */
/* ------------------------------------------------------------------ */

.contact-list {
  list-style: none;
  margin-top: 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
}

.contact-list__ico {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
}

.contact-list__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-list__label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--text-meta);
}

.contact-list__body a,
.contact-list__body > span:last-child {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list__body a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-list li:has(a:hover) .contact-list__ico {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-list--compact {
  margin-top: 0;
}

.contact-list--compact li {
  min-height: 48px;
  gap: 12px;
}

.contact-list--compact .contact-list__ico {
  width: 36px;
  height: 36px;
}

.contact-list--compact .contact-list__body a,
.contact-list--compact .contact-list__body > span:last-child {
  font-size: 15px;
}

.contact__form {
  grid-column: 7 / span 6;
}

.contact__form .form {
  grid-column: auto;
}

.contact--page .contact__text {
  grid-column: 1 / span 5;
}

.contact__h {
  font-size: 24px;
  line-height: 30px;
}

.contact--page .contact-list {
  margin-top: 16px;
}

.contact__meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-body);
}

.contact__meta p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact__meta .dot {
  margin: 0 5px;
}

.contact--page .contact__form {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

@media (max-width: 759px) {
  .contact--page .contact__form {
    padding: 20px;
  }
}

/* ------------------------------------------------------------------ */
/* /portfolio header pieces                                           */
/* ------------------------------------------------------------------ */

.cv-head__where {
  display: flex;
  align-items: center;
}

.cv-head__links a {
  gap: 8px;
}

.cv-head .btn .ico,
.about__links .btn .ico {
  margin-right: 8px;
}

.cv-edu__line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-body);
}

/* ------------------------------------------------------------------ */
/* Closing call to action                                             */
/* ------------------------------------------------------------------ */

.cta-band {
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.cta-band__in {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: clamp(32px, 4vw, 56px);
  border-radius: 24px;
  background: var(--blob-sand);
  overflow: hidden;
  max-width: calc(1280px - 2 * var(--side));
  margin: 0 var(--side);
}

@media (min-width: 1280px) {
  .cta-band__in {
    margin: 0 auto;
  }
}

.cta-band__blob {
  position: absolute;
  right: -60px;
  top: -80px;
  width: 360px;
  height: 320px;
  opacity: 0.9;
}

.cta-band__blob .blob {
  inset: 0;
}

.cta-band__text {
  position: relative;
  max-width: 36em;
}

.cta-band__text .lead {
  margin-top: 12px;
}

.cta-band .btn {
  position: relative;
  gap: 10px;
}

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */

.footer {
  background: var(--text);
  color: #d9d1c4;
}

.footer a {
  color: #f6f0e6;
}

/* Two classes on purpose: page rules such as .page-cv .container reset
   container padding and must not win over the footer's own spacing. */
.footer .footer__grid {
  padding-top: 72px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px 32px;
}

.footer .brand {
  color: #f6f0e6;
}

.footer .brand__mark {
  background: #f6f0e6;
  color: var(--text);
}

.footer .brand__co {
  color: #e39a78;
}

.footer__brand p {
  margin-top: 16px;
  max-width: 24em;
  font-size: 15px;
  line-height: 24px;
}

.footer__status {
  display: flex;
  align-items: center;
}

.socials {
  margin-top: 20px;
  display: flex;
  gap: 8px;
}

.social {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 240, 230, 0.22);
  border-radius: 50%;
  transition: background-color 160ms ease, color 160ms ease;
}

.social:hover {
  background: #f6f0e6;
  color: var(--text) !important;
}

.footer__h {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a79e91;
}

.footer__links ul {
  list-style: none;
  padding: 0;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 15px;
  text-decoration: none;
}

.footer__links a:hover,
.footer__bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer .contact-list__ico {
  border-color: rgba(246, 240, 230, 0.22);
  background: transparent;
  color: #f6f0e6;
}

.footer .contact-list__label {
  color: #a79e91;
}

.footer .contact-list__body a,
.footer .contact-list__body > span:last-child {
  color: #f6f0e6;
}

.footer__quick .small {
  margin-bottom: 12px;
}

.quick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick input,
.quick textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(246, 240, 230, 0.28);
  border-radius: 6px;
  background: rgba(246, 240, 230, 0.06);
  color: #f6f0e6;
  font-size: 15px;
  resize: vertical;
}

.quick input::placeholder,
.quick textarea::placeholder {
  color: #a79e91;
}

.quick input:focus-visible,
.quick textarea:focus-visible,
.footer :focus-visible {
  outline: 2px solid #f6f0e6;
  outline-offset: 2px;
}

.quick .btn {
  align-self: flex-start;
}

.footer .form__status {
  min-height: 22px;
  color: #d9d1c4;
}

.footer .form__status.is-error {
  color: #f0a58a;
}

.footer__bottom {
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid rgba(246, 240, 230, 0.14);
  font-size: 14px;
  line-height: 22px;
  color: #a79e91;
}

.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
}

.footer__bottom a {
  text-decoration: none;
}

.footer .lang {
  color: #a79e91;
}

.footer .lang b {
  color: #f6f0e6;
}

@media (max-width: 1099px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 56px;
  }
}

/* ------------------------------------------------------------------ */
/* /portfolio: photo next to the name                                 */
/* ------------------------------------------------------------------ */

.cv-head__id {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.cv-head__photo {
  position: relative;
  flex: none;
  width: 148px;
  padding: 6px 10px 12px 4px;
}

.cv-head__photo .blob {
  inset: 10% -4% -2% 12%;
  transform: rotate(-6deg);
}

.cv-head__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}

@media (max-width: 640px) {
  .cv-head__id {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cv-head__photo {
    width: 112px;
  }
}
