@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/manrope-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: 'Unbounded';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/fonts/unbounded-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;
}

:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --ink: #2b2823;
  --ink-soft: #706a5f;
  --ink-faint: #a39c8e;
  --line: #e9e1d4;
  --accent: #c1653f;
  --accent-dark: #a6512f;
  --accent-soft: #f3e1d3;

  --font-display: 'Unbounded', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(43, 40, 35, 0.05);
  --shadow-md: 0 16px 36px rgba(43, 40, 35, 0.1);

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(.16,1,.3,1);
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent-soft); color: var(--accent-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* -------------------- Typography -------------------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 0.4em 0.9em;
  border-radius: var(--radius-pill);
}
.num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-faint);
  font-size: 0.95rem;
}

/* -------------------- Marquee -------------------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--surface);
  color: var(--ink);
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee__track {
  display: inline-flex;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.4rem);
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}
.marquee__track span::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -------------------- Navigation -------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem var(--gutter);
  background: transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.nav:not(.is-scrolled) .nav__logo,
.nav:not(.is-scrolled) .nav__links a {
  color: #fff;
  text-shadow: 0 1px 16px rgba(30, 36, 24, .28);
}
.nav:not(.is-scrolled) .nav__links a:hover,
.nav:not(.is-scrolled) .nav__links a.is-active { color: #fff; }
.nav:not(.is-scrolled) .nav__links a::after { background: #fff; }
.nav:not(.is-scrolled) .nav__burger span { background: #fff; box-shadow: 0 1px 10px rgba(30, 36, 24, .25); }
.nav:not(.is-scrolled) .nav__links.is-open a { color: var(--ink-soft); }
.nav:not(.is-scrolled) .nav__links.is-open a:hover,
.nav:not(.is-scrolled) .nav__links.is-open a.is-active { color: var(--ink); }
.nav:not(.is-scrolled) .nav__links.is-open a::after { background: var(--accent); }
.nav:not(.is-scrolled) .nav__burger.is-open span { background: var(--ink); }
.nav:not(.is-scrolled).is-menu-open .nav__logo { color: var(--ink); }
.nav--light:not(.is-scrolled) { background: rgba(250, 246, 240, .88); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav--light:not(.is-scrolled) .nav__logo,
.nav--light:not(.is-scrolled) .nav__links a { color: var(--ink-soft); text-shadow: none; }
.nav--light:not(.is-scrolled) .nav__links a:hover,
.nav--light:not(.is-scrolled) .nav__links a.is-active { color: var(--ink); }
.nav--light:not(.is-scrolled) .nav__links a::after { background: var(--accent); }
.nav--light:not(.is-scrolled) .nav__burger span { background: var(--ink); box-shadow: none; }
.nav__logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  z-index: 101;
}
.nav__links {
  display: flex;
  gap: 2.2rem;
}
.nav__links a {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}
.nav__links a.is-active { color: var(--ink); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.nav__cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
  width: 28px;
}
.nav__burger span {
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* -------------------- Section spacing -------------------- */
section { position: relative; }
.section {
  padding: clamp(4rem, 9vw, 8rem) 0;
}
.section--compact { padding-top: 0; }
.section--flush-top { padding-top: 0; }
.section-action { margin-top: 2.5rem; text-align: center; }
.section-label { margin-bottom: 1rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
.section-head p { max-width: 340px; color: var(--ink-soft); font-size: 1.05rem; }

/* -------------------- Gradient rule (signature accent, echoes the hero gradient) -------------------- */
.gradient-rule {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #bfe2ef 0%, #d8ecc6 48%, #9dc37e 100%);
}

/* -------------------- Photo hero (shared: homepage + inner pages) -------------------- */
.photo-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 8rem;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  background: var(--hero-bg, radial-gradient(circle at 22% 18%, rgba(255, 246, 214, .85), transparent 42%), linear-gradient(165deg, #bfe2ef 0%, #d8ecc6 48%, #9dc37e 100%));
  background-size: cover;
  background-position: center;
}
.photo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 26, 20, .2) 0%, rgba(30, 26, 20, .32) 60%, rgba(30, 26, 20, .58) 100%);
  z-index: 0;
}
.photo-hero .container { position: relative; z-index: 1; }
.photo-hero h1, .photo-hero p, .photo-hero .eyebrow { color: #fff; }
.photo-hero .eyebrow { background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.photo-hero .btn--outline { border-color: rgba(255, 255, 255, .55); color: #fff; }
.photo-hero .btn--outline:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

.hero { min-height: 100vh; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  max-width: 16ch;
}
.hero h1 .accent { color: var(--accent); }
.hero__sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  max-width: 46ch;
  color: rgba(255, 255, 255, .85);
}
.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}

/* -------------------- Page hero (inner pages) -------------------- */
.page-hero { min-height: 52vh; }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
.page-hero p {
  margin-top: 1.4rem;
  max-width: 56ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .85);
}

/* -------------------- Cards / Grids -------------------- */
.grid {
  display: grid;
  gap: 1.75rem;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: clamp(2rem, 3.4vw, 2.8rem);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); }
.card__num {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 0.4em 0.9em;
  border-radius: var(--radius-pill);
  margin-bottom: 1.4rem;
}
.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}
.card p { color: var(--ink-soft); font-size: 0.98rem; }

.card--wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.card--wide .card__num { margin-bottom: 0; flex: none; }
.card--wide p { margin: 0; max-width: 62ch; }

/* -------------------- Capabilities -------------------- */
.capability-list { border-top: 1px solid var(--line); }
.capability {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: baseline;
  padding: clamp(1.5rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
}
.capability h3 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
.capability p { max-width: 56ch; color: var(--ink-soft); font-size: clamp(.95rem, 1.3vw, 1.08rem); }

/* -------------------- Work / Portfolio cards -------------------- */
.work-card {
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: block;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.work-card__thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--thumb-bg, var(--accent-soft));
}
.work-card__thumb span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--ink);
  text-align: center;
  padding: 1rem;
}
.work-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-card--screenshot .work-card__thumb { aspect-ratio: 16 / 9; background: #080808; }
.work-card--screenshot .work-card__thumb img { object-fit: contain; object-position: center; }
.home-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  align-items: start;
  gap: 1.5rem;
}
.work-card--home-preview .work-card__thumb {
  aspect-ratio: auto;
  height: clamp(350px, 30vw, 430px);
  display: flex;
  align-items: flex-end;
  padding: clamp(1.6rem, 3vw, 2.8rem);
}
.work-card--arlist .work-card__thumb {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 246, 214, .72), transparent 30%),
    linear-gradient(145deg, #bfe2ef 0%, #d8ecc6 48%, #9dc37e 100%);
}
.work-card--leetcot .work-card__thumb {
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 239, 210, .55), transparent 28%),
    linear-gradient(145deg, #f3e1d3 0%, #df9b76 52%, #c1653f 100%);
}
.work-card__summary { max-width: 34rem; }
.work-card__summary > span {
  position: static;
  inset: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  color: inherit;
  text-align: left;
  margin-bottom: 1.1rem;
  padding: .38rem .75rem;
  border: 1px solid rgba(43, 40, 35, .18);
  border-radius: var(--radius-pill);
  font-size: .76rem;
  font-weight: 700;
}
.work-card__summary h3 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: .8rem;
}
.work-card__summary p { max-width: 31ch; font-size: clamp(.95rem, 1.5vw, 1.08rem); }
.work-card--home-preview:hover .work-card__thumb { filter: saturate(1.06); }
.work-card__info {
  padding: 1.3rem 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  gap: 1rem;
}
.work-card__info h3 { font-size: 1.1rem; font-weight: 700; }
.work-card__info span {
  font-size: 0.82rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* -------------------- Portfolio overview -------------------- */
.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
  gap: 1.75rem;
  align-items: stretch;
}
.portfolio-layout > .featured-work .featured-work__visual { height: 100%; align-items: center; }
.featured-work {
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.featured-work:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.featured-work__visual {
  min-height: clamp(360px, 33vw, 460px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
}
.featured-work__visual--leetcot {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 239, 210, .58), transparent 30%),
    linear-gradient(145deg, #f3e1d3 0%, #df9b76 52%, #c1653f 100%);
}
.portfolio-visual__copy > span {
  display: inline-flex;
  padding: .4rem .8rem;
  border: 1px solid rgba(43, 40, 35, .18);
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 700;
}
.portfolio-visual__copy strong {
  display: block;
  margin: 1.3rem 0 .7rem;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 10vw, 8rem);
  letter-spacing: -.05em;
  line-height: .95;
}
.portfolio-visual__copy p { font-size: clamp(1rem, 1.8vw, 1.3rem); }
.featured-work__info {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1.35rem;
  padding: clamp(2rem, 4vw, 3rem);
}
.featured-work__info h2 { margin-top: 1rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.featured-work__info > p { color: var(--ink-soft); max-width: 48ch; }
.featured-work__info .btn { justify-self: start; }
.portfolio-secondary { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.work-card--portfolio-summary .work-card__thumb {
  min-height: clamp(300px, 26vw, 360px);
  display: flex;
  align-items: flex-end;
  padding: clamp(1.8rem, 4vw, 3rem);
}
.portfolio-note {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.portfolio-note h3 { margin: 1.5rem 0 .8rem; font-size: clamp(1.3rem, 2.5vw, 2rem); }
.portfolio-note > p:last-child { color: var(--ink-soft); max-width: 44ch; }

/* -------------------- Case study -------------------- */
.case-hero { padding: clamp(10rem, 16vw, 14rem) 0 clamp(4rem, 8vw, 7rem); background: var(--bg); }
.case-back { display: inline-block; margin-bottom: clamp(3rem, 7vw, 6rem); color: var(--ink-soft); font-weight: 600; }
.case-back:hover { color: var(--accent-dark); }
.case-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: clamp(3rem, 7vw, 7rem); }
.case-hero h1 { margin-top: 1.2rem; font-size: clamp(4rem, 11vw, 9rem); letter-spacing: -.045em; }
.case-hero__intro > p { max-width: 48ch; color: var(--ink-soft); font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
.case-hero__intro .btn { margin-top: 2rem; }
.case-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.7rem; }
.case-tags span { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink-soft); font-size: .8rem; font-weight: 600; }
.case-showcase { padding-bottom: clamp(3rem, 6vw, 5rem); }
.case-screen { overflow: hidden; background: #0d0c13; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.case-screen img { width: 100%; height: auto; }
.case-screen--hero { border-radius: var(--radius-lg); }
.case-facts { padding: 1rem 0 clamp(4rem, 8vw, 7rem); }
.case-facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-facts__grid > div { padding: 2rem; border-right: 1px solid var(--line); }
.case-facts__grid > div:last-child { border-right: 0; }
.case-facts strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.6rem); color: var(--accent); line-height: 1; }
.case-facts span { display: block; margin-top: .8rem; color: var(--ink-soft); font-size: .88rem; }
.case-section { border-top: 1px solid var(--line); }
.case-section h2 { max-width: 15ch; font-size: clamp(2rem, 5vw, 3.8rem); }
.case-section .eyebrow + h2 { margin-top: 1.4rem; }
.case-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.case-prose p { color: var(--ink-soft); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 52ch; }
.case-prose p + p { margin-top: 1.5rem; }
.case-section--tint { background: var(--accent-soft); }
.product-map { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(166, 81, 47, .18); border-radius: var(--radius-md); overflow: hidden; }
.product-map__item { padding: clamp(1.6rem, 3vw, 2.5rem); background: rgba(255, 255, 255, .42); border-right: 1px solid rgba(166, 81, 47, .18); border-bottom: 1px solid rgba(166, 81, 47, .18); }
.product-map__item:nth-child(3n) { border-right: 0; }
.product-map__item:nth-child(n+4) { border-bottom: 0; }
.product-map__item > span { font-family: var(--font-display); color: var(--accent-dark); font-size: .8rem; }
.product-map__item h3 { margin: 2rem 0 .65rem; font-size: 1.2rem; }
.product-map__item p { color: var(--ink-soft); font-size: .92rem; }
.case-gallery .container { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.case-screen__caption { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; padding: 1.4rem 1.6rem; background: var(--surface); border-top: 1px solid var(--line); }
.case-screen__caption span { font-family: var(--font-display); font-weight: 700; }
.case-screen__caption p { color: var(--ink-soft); max-width: 58ch; font-size: .9rem; }
.case-section--dark { background: #171512; color: #fff; border-top: 0; }
.case-section--dark .eyebrow { background: rgba(255,255,255,.1); color: #fff; }
.case-section--dark .case-prose p { color: rgba(255,255,255,.7); }
.case-result .eyebrow { margin-bottom: 2rem; }
.case-result blockquote { max-width: 31ch; }

/* -------------------- Process steps -------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process__step {
  position: relative;
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.2rem, 2.5vw, 2.4rem) clamp(2.2rem, 4vw, 3.5rem);
  border-right: 1px solid var(--line);
}
.process__step:last-child { border-right: 0; }
.process__step::before {
  content: '';
  display: block;
  width: 2.6rem;
  height: 4px;
  margin-bottom: 2.2rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
}
.process__step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.process__step p { color: var(--ink-soft); font-size: 0.95rem; }

/* -------------------- Calm promises -------------------- */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.promise {
  position: relative;
  padding: 2rem clamp(1rem, 2.5vw, 2rem) 2.2rem;
  border-right: 1px solid var(--line);
}
.promise:last-child { border-right: 0; }
.promise::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(3rem, 45%, 7rem);
  height: 4px;
  background: var(--accent);
}
.promise .num { display: block; margin-bottom: 2rem; }
.promise h3 { font-size: 1.15rem; margin-bottom: 0.65rem; }
.promise p { color: var(--ink-soft); font-size: 0.92rem; }

/* -------------------- Quote -------------------- */
.quote {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--accent-soft);
}
.quote blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  line-height: 1.25;
  max-width: 24ch;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.quote cite {
  display: block;
  margin-top: 1.6rem;
  font-style: normal;
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 0.9rem;
}

/* -------------------- CTA band -------------------- */
.cta-band { padding: clamp(3rem, 6vw, 5rem) 0; }
.cta-band__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  max-width: 18ch;
  margin: 0 auto 1.2rem;
}
.cta-band p { color: var(--ink-soft); max-width: 40ch; margin: 0 auto; }
.cta-band .btn { margin: 1.6rem auto 0; }

/* -------------------- Footer -------------------- */
.footer {
  background: var(--surface);
  color: var(--ink);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.footer__brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  max-width: 10ch;
}
.footer__cols {
  display: flex;
  gap: clamp(2.5rem, 6vw, 5rem);
  flex-wrap: wrap;
}
.footer__col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}
.footer__col a, .footer__col p, .footer__col .copy-email {
  display: flex;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.footer__col a:hover { color: var(--accent); }

/* -------------------- Copy-to-clipboard email -------------------- */
.copy-email {
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex-wrap: wrap;
}
.copy-email__btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  padding: 0.25em 0.8em;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.copy-email__btn:hover { background: var(--accent); color: #fff; }
.copy-email__btn.is-copied { background: var(--accent); color: #fff; }
.footer .copy-email__btn { background: rgba(0,0,0,.04); }
.footer .copy-email__btn:hover, .footer .copy-email__btn.is-copied { background: var(--accent); color: #fff; }
.photo-hero .copy-email__btn { background: rgba(255,255,255,.16); color: #fff; }
.photo-hero .copy-email__btn:hover, .photo-hero .copy-email__btn.is-copied { background: #fff; color: var(--accent-dark); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.8rem;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.footer__bottom a { text-decoration: underline; }

/* -------------------- Reveal animation -------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- Values grid -------------------- */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* -------------------- Services list (services page) -------------------- */
.service-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 2.5rem;
  padding: clamp(2rem, 4vw, 2.8rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.service-row:first-child { border-top: 1px solid var(--line); }
.service-row .num { font-size: 1.3rem; }
.service-row h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.01em; }
.service-row p { color: var(--ink-soft); margin-top: 0.8rem; max-width: 50ch; }
.service-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.service-row__tags span {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
}

/* -------------------- Contact page -------------------- */
.contact-copy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(2rem, 5vw, 4rem);
}
.contact-copy__email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}
.contact-copy__email > span {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact-copy__hint { max-width: 62ch; margin-top: 1.8rem; color: var(--ink-soft); }
.contact-note {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1.25rem;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.contact-note > div { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.4rem); }
.contact-note .num { display: block; margin-bottom: 1.5rem; }
.contact-note h3 { margin-bottom: 0.65rem; font-size: 1.1rem; }
.contact-note p { color: var(--ink-soft); font-size: 0.92rem; }

/* -------------------- Responsive -------------------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process__step:nth-child(2) { border-right: 0; }
  .process__step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .promise:nth-child(2) { border-right: 0; }
  .promise:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .values { grid-template-columns: 1fr; }
  .contact-note { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 60px 1fr; }
  .service-row > div:last-child { grid-column: 2; }
  .footer__top { flex-direction: column; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16 / 9; max-height: 360px; }
  .featured-work__info { grid-template-columns: 1fr 1fr; }
  .featured-work__info .btn { justify-self: start; }
  .case-facts__grid { grid-template-columns: repeat(2, 1fr); }
  .case-facts__grid > div:nth-child(2) { border-right: 0; }
  .case-facts__grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .portfolio-layout { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 100;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.4rem; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .capability { grid-template-columns: 1fr; gap: .65rem; }
  .home-work-grid { grid-template-columns: 1fr; }
  .work-card--home-preview .work-card__thumb { height: auto; min-height: 310px; }
  .process { grid-template-columns: 1fr; }
  .process__step, .process__step:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .process__step:last-child { border-bottom: 0; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise, .promise:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .promise:last-child { border-bottom: 0; }
  .contact-copy__email { align-items: flex-start; flex-direction: column; }
  .service-row { grid-template-columns: 1fr; gap: 0.8rem; }
  .service-row .num { font-size: 1.1rem; }
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .page-hero h1 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  .featured-work__visual { aspect-ratio: 4 / 3; }
  .portfolio-layout .featured-work__visual { min-height: 310px; }
  .featured-work__info, .portfolio-secondary, .case-hero__grid, .case-columns { grid-template-columns: 1fr; }
  .featured-work__info { align-items: start; gap: 1.4rem; }
  .case-hero { padding-top: 8rem; }
  .case-back { margin-bottom: 3rem; }
  .case-hero h1 { font-size: clamp(3.4rem, 20vw, 5.5rem); }
  .case-facts__grid, .product-map { grid-template-columns: 1fr; }
  .case-facts__grid > div, .case-facts__grid > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-facts__grid > div:last-child { border-bottom: 0; }
  .product-map__item, .product-map__item:nth-child(3n), .product-map__item:nth-child(n+4) { border-right: 0; border-bottom: 1px solid rgba(166, 81, 47, .18); }
  .product-map__item:last-child { border-bottom: 0; }
  .case-screen__caption { align-items: flex-start; flex-direction: column; gap: .6rem; }
}
