/* Layout + sections (ported from legacy, normalized) */

.container,
.container--wide {
  box-sizing: border-box;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container {
  max-width: var(--container);
}

.container--wide {
  max-width: var(--container);
}

.measure{ max-width: var(--measure); }
.measure--narrow{ max-width: var(--measureNarrow); }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--nav-h);
  padding: 18px 0;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-transform: none;
  color: rgba(10, 10, 10, 0.86);
  text-decoration: none;
}
.nav-brand:focus-visible {
  outline: 2px solid rgba(26, 107, 92, 0.45);
  outline-offset: 4px;
  border-radius: 4px;
}
.nav-brand-mark {
  flex: 0 0 auto;
  width: 30px;
  height: 34px;
  border-radius: 8px;
  background:
    radial-gradient(130% 100% at 120% 50%, transparent 0 44%, #ffffff 44.5% 100%),
    repeating-linear-gradient(
      90deg,
      rgba(10, 10, 10, 0.9) 0 2px,
      transparent 2px 5px
    );
  box-shadow: inset 0 -8px 12px rgba(255, 255, 255, 0.8);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 28px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.3s var(--ease-arch);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { width: 100%; }

.nav.is-on-dark {
  border-bottom-color: rgba(255, 255, 255, 0.10);
}
.nav.is-on-dark .nav-brand {
  color: rgba(255, 255, 255, 0.92);
}
.nav.is-on-dark .nav-links a {
  color: rgba(255, 255, 255, 0.72);
}
.nav.is-on-dark .nav-links a:hover,
.nav.is-on-dark .nav-links a.active {
  color: rgba(255, 255, 255, 0.95);
}
.nav.is-on-dark .nav-cta {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.82);
  color: rgba(10, 10, 10, 0.92);
}
.nav.is-on-dark .nav-cta:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--white);
  background: var(--ink);
  padding: 11px 22px;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: transparent; color: var(--ink); }
.nav-cta { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }
.nav-cta:focus-visible {
  outline: 2px solid rgba(26, 107, 92, 0.5);
  outline-offset: 3px;
}

/* Left rail (primary navigation) */
.index-rail {
  position: fixed;
  left: var(--gutter);
  top: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  z-index: 900;
  user-select: none;
  pointer-events: auto;
  padding: 10px 0 10px 0;
  transition: opacity 0.2s ease;
  /* Theme cross-fade: long ease so rail matches scroll without snapping */
  --rail-theme-dur: 0.42s;
  --rail-theme-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.index-rail.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.index-rail-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(10, 10, 10, 0.86);
  transition: color var(--rail-theme-dur) var(--rail-theme-ease);
}
.index-rail-brand-text {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color var(--rail-theme-dur) var(--rail-theme-ease);
}
.index-links {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 34px;
}
.index-links::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(10, 10, 10, 0.12);
  transition: background var(--rail-theme-dur) var(--rail-theme-ease);
}
.index-link {
  position: relative;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: rgba(10, 10, 10, 0.62);
  padding: 2px 0;
  border-radius: 0;
  transition: color var(--rail-theme-dur) var(--rail-theme-ease);
}
.index-link::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 50%;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: transparent;
  transition: background var(--rail-theme-dur) var(--rail-theme-ease);
}
.index-num {
  display: none;
}
.index-label {
  font-family: var(--font-body);
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: currentColor;
  transition: color var(--rail-theme-dur) var(--rail-theme-ease);
}
.index-link.is-active .index-label,
.index-link:hover .index-label { color: rgba(10, 10, 10, 0.9); }
.index-link.is-active .index-label { font-weight: 700; }
.index-link.is-active::before { background: #01E6E1; }

.index-rail.is-on-dark .index-rail-brand,
.index-rail.is-on-dark .index-rail-brand-text {
  color: rgba(255, 255, 255, 0.92);
}
.index-rail.is-on-dark .nav-brand-mark {
  background:
    radial-gradient(130% 100% at 120% 50%, transparent 0 44%, #0d0d0d 44.5% 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.95) 0 2px,
      transparent 2px 5px
    );
  box-shadow: inset 0 -8px 12px rgba(13, 13, 13, 0.7);
  transition: box-shadow var(--rail-theme-dur) var(--rail-theme-ease), filter var(--rail-theme-dur) var(--rail-theme-ease);
}
.index-rail.is-on-dark .index-link {
  color: rgba(255, 255, 255, 0.78);
}
.index-rail.is-on-dark .index-links::before {
  background: rgba(255, 255, 255, 0.28);
}
.index-rail.is-on-dark .index-link.is-active .index-label,
.index-rail.is-on-dark .index-link:hover .index-label {
  color: rgba(255, 255, 255, 0.95);
}
.index-rail.is-on-dark .index-link.is-active::before {
  background: #01E6E1;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

body.is-mobile-nav-open {
  overflow: hidden;
}

.mobile-nav-toggle {
  appearance: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(10, 10, 10, 0.88);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-toggle:focus-visible {
  outline: 2px solid rgba(26, 107, 92, 0.55);
  outline-offset: 3px;
}

.mobile-nav-toggle-inner {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.mobile-nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.28s var(--ease-arch), opacity 0.22s ease;
}

.index-rail.is-nav-open .mobile-nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.index-rail.is-nav-open .mobile-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.index-rail.is-nav-open .mobile-nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .mobile-nav-toggle {
    display: none !important;
  }

  .nav-backdrop {
    display: none !important;
  }
}

@media (max-width: 899px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 860px) {
  .index-rail {
    left: var(--gutter);
    top: 18px;
    gap: 16px;
  }
  .index-rail-brand-text {
    font-size: 16px;
  }
  .index-label {
    font-size: clamp(12px, 2.6vw, 15px);
  }
}

@media (pointer: coarse) {
  .index-link {
    min-height: 44px;
    padding-block: 10px;
    align-items: center;
  }
}

/* HERO background layers (grid/dots/blocks) */
.section-hero::before{
  content:'';
  position:absolute;
  inset:-10%;
  background:
    radial-gradient(circle at 18% 22%, rgba(26, 107, 92, 0.06), transparent 52%),
    radial-gradient(circle at 72% 58%, rgba(10, 10, 10, 0.03), transparent 55%),
    repeating-linear-gradient(90deg, rgba(10, 10, 10, 0.02) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(10, 10, 10, 0.018) 0 1px, transparent 1px 22px);
  z-index: 1;
  pointer-events:none;
}
.section-hero::after{
  content:'';
  position:absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 32%, rgba(10, 10, 10, 0.025) 0 1px, transparent 2px 100%),
    radial-gradient(circle at 80% 64%, rgba(10, 10, 10, 0.022) 0 1px, transparent 2px 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.04) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.04) 0 1px, transparent 1px 100%);
  background-size: 24px 24px, 28px 28px, 140px 140px, 140px 140px;
  background-position: 0 0, 8px 14px, 0 0, 0 0;
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
}
.hero-inner { z-index: 2; }

/* HERO */
.section-hero {
  position: relative;
  background: #ffffff;
  min-height: min(100vh, 1200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 32px) 0 calc(var(--section-y-lg) * 0.65);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.48;
  width: 100%;
  height: 100%;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
}

.hero-split {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 48px);
  width: 100%;
  min-width: 0;
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
  min-width: 0;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: clamp(8px, 1.2vw, 14px);
  width: 100%;
  min-height: clamp(220px, 36vh, 380px);
  isolation: isolate;
  z-index: 2;
}

.hero-visual__stack {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-visual__layer {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.35;
}

.hero-visual__layer--base {
  background-image: url(../assets/heroimage.png);
  z-index: 0;
}

.hero-visual__layer--metallic {
  --reveal-x: 50%;
  --reveal-y: 50%;
  --reveal-r: 0px;
  --reveal-feather: 0px;
  background-image: url(../assets/heroimage-metallic-hover.png);
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  -webkit-mask-image: radial-gradient(
    circle calc(var(--reveal-r) + var(--reveal-feather)) at var(--reveal-x) var(--reveal-y),
    #fff 0,
    #fff calc(var(--reveal-r) * 0.35),
    rgba(255, 255, 255, 0.55) calc(var(--reveal-r) + var(--reveal-feather) * 0.28),
    rgba(255, 255, 255, 0.22) calc(var(--reveal-r) + var(--reveal-feather) * 0.62),
    rgba(255, 255, 255, 0.06) calc(var(--reveal-r) + var(--reveal-feather) * 0.88),
    transparent calc(var(--reveal-r) + var(--reveal-feather))
  );
  mask-image: radial-gradient(
    circle calc(var(--reveal-r) + var(--reveal-feather)) at var(--reveal-x) var(--reveal-y),
    #fff 0,
    #fff calc(var(--reveal-r) * 0.35),
    rgba(255, 255, 255, 0.55) calc(var(--reveal-r) + var(--reveal-feather) * 0.28),
    rgba(255, 255, 255, 0.22) calc(var(--reveal-r) + var(--reveal-feather) * 0.62),
    rgba(255, 255, 255, 0.06) calc(var(--reveal-r) + var(--reveal-feather) * 0.88),
    transparent calc(var(--reveal-r) + var(--reveal-feather))
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-established {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--ink-muted);
  display: block;
  margin: 0;
  padding-top: 8px;
  opacity: 0;
  transform: translateY(20px);
}
.hero-stack {
  display: flex;
    flex-direction: column;
    gap: 32px;
}
.hero-title{ grid-column: 1 / -1; }
.hero-title,
.hero-title-line {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(54px, 9vw, 100px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
  display: block;
  overflow: hidden;
  font-style: normal;
}
.hero-title-line span {
  display: block;
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  transform: translateY(110%);
}
.hero-desc {
  margin: 0;
  font-size: clamp(15px, 1.12vw, 17px);
  line-height: 1.72;
  color: rgba(10, 10, 10, 0.72);
  text-align: left;
  opacity: 0;
}

.hero-cta{
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-cta:hover{
  background: transparent;
  color: var(--ink);
  transform: translateY(6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}
.hero-cta:focus-visible{
  outline: 2px solid rgba(26, 107, 92, 0.45);
  outline-offset: 3px;
}

/* Hero — client logos marquee (left → right) */
.hero-brands {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: clamp(28px, 4.5vw, 52px);
  padding: clamp(18px, 2.8vw, 28px) 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
}

.hero-brands__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 7vw, 100px);
  z-index: 2;
  pointer-events: none;
}

.hero-brands__fade--left {
  left: 0;
  background: linear-gradient(90deg, #ffffff 12%, rgba(255, 255, 255, 0));
}

.hero-brands__fade--right {
  right: 0;
  background: linear-gradient(270deg, #ffffff 12%, rgba(255, 255, 255, 0));
}

.hero-brands__viewport {
  overflow: hidden;
}

.hero-brands__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.hero-brands__track--static {
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: clamp(16px, 3vw, 28px);
}

.hero-brands__track--static .hero-brands__list[aria-hidden='true'] {
  display: none;
}

.hero-brands__list {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(36px, 5.5vw, 80px);
  padding: 0 clamp(36px, 5.5vw, 80px);
  margin: 0;
  list-style: none;
}

.hero-brands__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(112px, 14vw, 168px);
  height: clamp(40px, 5.5vw, 60px);
}

.hero-brands__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.hero-brands__logo--screen {
  mix-blend-mode: screen;
}

.hero-brands__logo--ink {
  filter: brightness(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-brands__track:not(.hero-brands__track--static) .hero-brands__list[aria-hidden='true'] {
    display: none;
  }

  .hero-brands__track:not(.hero-brands__track--static) {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    transform: none !important;
  }
}

/* Hero "stair-step" layout (desktop) */
@media (min-width: 900px) {
  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
  }

  .hero-visual {
    min-height: clamp(280px, 60vh, 720px);
    align-self: stretch;
  }

  .hero-title{ grid-column: 1 / -1; }

  .hero-desc{
    grid-column: 1 / 8;
    grid-row: 2;
    max-width: none;
  }
  .hero-cta{
    grid-column: 9 / 13;
    justify-self: end;
    margin-top: 2px;
    transform: translateY(8px);
  }
  .hero-cta:hover{
    transform: translateY(6px);
  }
}

@media (min-width: 900px) {
  .section-hero .measure--narrow{ max-width: none; }
}

/* Sections shared */
.section {
  position: relative;
}
.section[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.section-head {
  padding: 0;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.section-head--editorial {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 28px);
}

.section-head-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 14px);
}

.section-index {
  font-family: var(--font-body);
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 500;
  line-height: 1;
  color: rgba(10, 10, 10, 0.72);
  width: clamp(30px, 2.6vw, 36px);
  height: clamp(30px, 2.6vw, 36px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  user-select: none;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 14px);
  font-family: var(--font-body);
  font-size: clamp(11px, 0.82vw, 13px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.54);
}
.section-label::before {
  content: '';
  width: clamp(40px, 4.2vw, 58px);
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-head--editorial .section-meta {
  margin: 0;
  max-width: 32ch;
  text-align: right;
}

@media (max-width: 640px) {
  .section-head-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head--editorial .section-meta {
    text-align: left;
    max-width: none;
  }
}

.section-head--editorial .section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.1vw, 56px);
  text-transform: none;
  letter-spacing: -0.03em;
  line-height: 1.04;
  max-width: min(36ch, 92vw);
  margin: 0;
}

.reveal-scrub {
  opacity: 0.12;
  transform: translateY(36px);
}

.section-kicker {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.section-meta { margin: 0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.1vw, 56px);
  text-transform: none;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

/* Archive */
.section-archive {
  padding: var(--section-y-lg) 0;
  position: relative;
}

/* Projekti / Our Work — client logos */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
  gap: clamp(14px, 2.2vw, 24px);
}

.brand-tile {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3.2vw, 28px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 14px rgba(10, 10, 10, 0.05);
  transition: box-shadow 0.28s var(--ease-arch);
}

.brand-tile:hover {
  box-shadow: 0 14px 36px rgba(10, 10, 10, 0.14);
}

.brand-tile__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(48px, 10vw, 72px);
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.brand-tile__logo--screen {
  mix-blend-mode: screen;
}

.brand-tile__logo--ink {
  filter: brightness(0);
}

.archive-grid {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(26px, auto);
  column-gap: clamp(18px, 3vw, 44px);
  row-gap: clamp(18px, 3vw, 40px);
  align-items: start;
}
.archive-tile {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}
.archive-tile--a { grid-column: 1 / 7; grid-row: 1 / 7; aspect-ratio: 1/1; }
.archive-tile--b { grid-column: 7 / 10; grid-row: 2 / 4; aspect-ratio: 1/1; transform: translateY(10px) rotate(-0.3deg); }
.archive-tile--c { grid-column: 10 / 13; grid-row: 1 / 5; aspect-ratio: 3/4; transform: translateY(6px) rotate(0.35deg); }
.archive-tile--d { grid-column: 7 / 12; grid-row: 5 / 7; aspect-ratio: 16/6; transform: translateY(-4px) rotate(-0.15deg); }

/* Last 3 tiles are also "hero" tiles (large, collage-like) */
#works .archive-grid > article:nth-child(5) {
  grid-column: 1 / 5;
  grid-row: 7 / 10;
  aspect-ratio: 1 / 1;
  transform: translateY(-6px) rotate(0.2deg);
}
#works .archive-grid > article:nth-child(6) {
  grid-column: 5 / 9;
  grid-row: 7 / 10;
  aspect-ratio: 1 / 1;
  transform: translateY(18px) rotate(-0.25deg);
}
#works .archive-grid > article:nth-child(7) {
  grid-column: 9 / 13;
  grid-row: 7 / 10;
  aspect-ratio: 4 / 3;
  transform: translateY(-8px) rotate(0.15deg);
}

.archive-art{
  position:absolute;
  inset:0;
  background: #ffffff;
  border: 1px solid var(--border);
}
.archive-art--wire{
  background:
    radial-gradient(circle at 30% 18%, rgba(26, 107, 92, 0.07), transparent 60%),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,242,237,0.96));
}
.archive-art--object{
  background:
    radial-gradient(circle at 45% 45%, rgba(0,0,0,0.10), transparent 55%),
    linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0.00) 60%),
    #ffffff;
}
.archive-art--portrait{
  background:
    linear-gradient(180deg, rgba(0,0,0,0.88), rgba(0,0,0,0.65)),
    radial-gradient(circle at 60% 30%, rgba(255,255,255,0.10), transparent 55%);
}
.archive-art--noise{
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.16), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245,242,237,0.92));
  filter: contrast(1.1);
}
.archive-shader {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: multiply;
}
.archive-tile:hover .archive-shader { opacity: 1; }
.archive-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  color: rgba(10, 10, 10, 0.85);
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.archive-name,
.archive-sub{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.archive-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  max-width: 55%;
}
.archive-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ink-muted);
  text-align: right;
  max-width: 45%;
}

/* Portfolio: filter traka + fleksibilna mreža */
.works-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin: -14px 0 clamp(24px, 3.4vw, 40px);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 999px;
  background: rgba(248, 246, 242, 0.95);
}

.filter-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(10, 10, 10, 0.66);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  color: rgba(10, 10, 10, 0.86);
  background: rgba(255, 255, 255, 0.78);
}

.filter-btn.is-active {
  color: rgba(255, 255, 255, 0.96);
  background: #0b1130;
  border-color: #0b1130;
  box-shadow: 0 6px 22px rgba(8, 13, 35, 0.24);
}

.filter-btn:focus-visible {
  outline: 2px solid rgba(26, 107, 92, 0.5);
  outline-offset: 2px;
}

/* Works filtered mode: reflow tiles without mosaic gaps */
#works.works--filtered .archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 32px 28px;
  align-items: stretch;
}
#works.works--filtered .archive-grid .archive-tile--a,
#works.works--filtered .archive-grid .archive-tile--b,
#works.works--filtered .archive-grid .archive-tile--c,
#works.works--filtered .archive-grid .archive-tile--d,
#works.works--filtered .archive-grid .archive-tile--square,
#works.works--filtered .archive-grid .archive-tile--wide {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 1 / 1;
  min-height: 240px;
  transform: none;
}
@media (min-width: 900px) {
  #works.works--filtered .archive-grid .archive-tile--wide {
    grid-column: span 2;
    aspect-ratio: 21 / 9;
    min-height: 220px;
  }
}
@media (max-width: 760px) {
  .works-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    margin-top: -8px;
    border-radius: 16px;
  }
  .filter-btn {
    flex: 0 0 auto;
    padding: 9px 16px;
    font-size: 13px;
  }
}

/* O nama */
.section-about {
  padding: var(--section-y-lg) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.about-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.about-content {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 4.8vw, 58px);
}
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.4vw, 55px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: rgba(12, 12, 12, 0.96);
  max-width: none;
}
.about-lead strong {
  font-weight: 800;
}
.about-lead--scroll-reveal .about-lead__word {
  display: inline;
  opacity: 0.1;
}
.about-body {
  column-count: 2;
  column-gap: clamp(28px, 4vw, 56px);
  font-size: clamp(15px, 1.12vw, 17px);
  line-height: 1.72;
  letter-spacing: 0;
  color: rgba(10, 10, 10, 0.72);
  max-width: none;
}
.about-body p {
  margin-top: 0;
  break-inside: avoid;
}
.about-closing {
  font-family: inherit;
  font-weight: 400;
  font-size: inherit;
  letter-spacing: 0;
  color: inherit;
  margin-top: 0;
}

@media (max-width: 920px) {
  .about-content{ grid-column: 1 / -1; }
  .about-body {
    column-count: 1;
  }
}

/* Method — David AI–style process (center manifesto + sticky visual + scroll steps) */
.section-method {
  padding: var(--section-y-lg) 0;
  background: var(--bg);
}

.section-method--david {
  background: #f9f9f7;
  padding-top: clamp(100px, 12vw, 140px);
  padding-bottom: clamp(100px, 14vw, 180px);
}

.section-method .section-head--editorial .section-meta {
  max-width: none;
  white-space: nowrap;
}

/* Centered section chrome (matches withdavid.ai “2 — Process — big H2”) */
.davidProcessHead {
  text-align: center;
  max-width: 920px;
  margin: 0 auto clamp(64px, 9vw, 120px);
}

.davidProcessHead-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: clamp(22px, 3vw, 32px);
}

.davidProcessHead-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(10, 10, 10, 0.2);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.davidProcessHead-vline {
  width: 1px;
  height: 20px;
  background: rgba(10, 10, 10, 0.12);
}

.davidProcessHead-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.42);
}

.davidProcessHead-title {
  margin: 0 auto;
  max-width: min(40ch, 94vw);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

/* Two-column process — scroll room + sticky viewport (David-style) */
.methodProcess {
  position: relative;
  margin-top: 0;
}

.methodProcess--david {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* Scroll “stage”: long scroll distance → slower, more intentional motion vs wheel */
.methodProcess-scrollRoom {
  min-height: 400vh;
  min-height: 400svh;
  position: relative;
}

.methodProcess-stickyShell {
  --method-stage-ink: #0f0f0f;
  --method-stage-muted: rgba(42, 42, 42, 0.68);
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding-block: clamp(12px, 3vh, 40px);
  background-color: #f9f9f7;
}

.methodProcess-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  width: 100%;
}

.methodProcess-left {
  min-width: 0;
}

.methodProcess-copyStack {
  position: relative;
  width: 100%;
  min-height: clamp(240px, 36vh, 420px);
}

.methodProcess-step {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin: 0;
  padding: 0;
  min-height: 0;
  border-left: none;
  cursor: pointer;
  color: var(--method-stage-ink, var(--ink));
  opacity: 0.16;
  transform: translateY(-50%);
  will-change: transform, opacity;
  pointer-events: none;
}

.methodProcess-step.is-active {
  pointer-events: auto;
}

.methodProcess-step:focus {
  outline: none;
}

.methodProcess-step:focus-visible {
  outline: 2px solid rgba(10, 10, 10, 0.25);
  outline-offset: 6px;
  border-radius: 2px;
}

.methodProcess-roman {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: inherit;
}

.methodProcess-stepTitle {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: inherit;
}

#method-step-1-title,
#method-step-2-title,
#method-step-3-title {
  font-weight: 800;
  font-size: clamp(26px, 2.8vw, 36px);
}

.methodProcess-stepBody {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  max-width: 44ch;
  color: var(--method-stage-muted, rgba(42, 42, 42, 0.62));
  transition: color 0.12s linear;
}

.methodProcess-aside {
  position: relative;
  align-self: center;
  width: 100%;
}

.methodProcess-visualRail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.methodProcess-frame {
  position: relative;
  width: 100%;
  max-width: min(100%, 420px);
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1;
  border-radius: 2px;
  background: #fafafa;
  border: 1px solid #ebebeb;
  box-shadow: none;
  opacity: 1;
  will-change: opacity;
}

.methodProcess-visuals {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

.methodProcess-visualHost {
  position: absolute;
  inset: 0;
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  place-items: center;
}

.processGeometry-svg {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
}

/* No JS / before motion boot: readable static stack */
.methodProcess:not(.methodProcess--motionReady) .methodProcess-scrollRoom {
  min-height: 0;
}

.methodProcess:not(.methodProcess--motionReady) .methodProcess-stickyShell {
  position: relative;
  height: auto;
  min-height: 0;
  padding-block: 0;
}

.methodProcess:not(.methodProcess--motionReady) .methodProcess-layout {
  align-items: start;
}

.methodProcess:not(.methodProcess--motionReady) .methodProcess-copyStack {
  min-height: 0;
}

.methodProcess:not(.methodProcess--motionReady) .methodProcess-step {
  position: relative;
  top: auto;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  padding: clamp(28px, 5vh, 56px) 0;
}

.blueprint {
  margin-top: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 22px;
  min-height: 220px;
  position: relative;
}
.blueprint::before {
  content: attr(data-coord);
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(0, 0, 0, 0.42);
}
.blueprint svg { width: 100%; height: 100%; }
.draw-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.4s var(--ease-arch); }
.draw-line.drawn { stroke-dashoffset: 0; }

/* Services */
.section-services {
  padding: 0;
  background: #0b0b0c;
  color: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* JS sets --servicesScroll so scroll distance matches real horizontal travel */
  min-height: calc(100vh + var(--servicesScroll, 0px));
  min-height: calc(100svh + var(--servicesScroll, 0px));
}

.feature-sticky-container {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: clamp(92px, 10vh, 140px) var(--gutter);
  overflow: hidden;
}

.feature-sticky-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}

.feature-header {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-arch), transform 0.7s var(--ease-arch);
}
.section-services.is-entered .feature-header {
  opacity: 1;
  transform: translateY(0);
}

.services-head {
  margin: 0;
  max-width: none;
  padding: 0;
}
.section-services .section-index {
  color: rgba(255, 255, 255, 0.76);
}
.section-services .section-label {
  color: rgba(255, 255, 255, 0.74);
}
.section-services .section-title {
  color: rgba(255, 255, 255, 0.95);
  max-width: min(920px, 100%);
  font-size: clamp(28px, 3.2vw, 44px);
}
.feature-scroll-wrapper{
  position: relative;
  overflow: hidden;
  width: 100%;
}

.services-horizontal { display: contents; }
.services-horizontal.is-pinned { display: contents; }

.services-grid {
  display: flex;
  flex-direction: row;
  gap: clamp(24px, 3vw, 40px);
  width: max-content;
  padding-right: 0;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.service-card {
  flex: 0 0 clamp(320px, 34vw, 420px);
  min-height: clamp(320px, 44vh, 420px);
  padding: clamp(22px, 2.8vw, 32px);
  position: relative;
  cursor: default;
  background: #111112;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.95);
  opacity: 0.72;
  transition:
    border-color 0.35s var(--ease-arch),
    box-shadow 0.35s var(--ease-arch),
    transform 0.35s var(--ease-arch),
    opacity 0.35s var(--ease-arch);
}
.service-card.is-active{
  transform: scale(1);
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
}
.service-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
.service-card:focus-within{
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}
.service-card::before{ content:none; }
.service-num { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.55); }
.service-name { margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.03em; text-transform: none; line-height: 1.02; color: rgba(255, 255, 255, 0.94); }
.service-desc { margin-top: 14px; font-family: var(--font-body); font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 1.78; text-transform: none; color: rgba(255, 255, 255, 0.72); max-width: 44ch; }

.service-tags{
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  max-width: 560px;
}
.service-tags .tag{
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1;
  border-radius: 999px;
}
.service-card:hover .service-tags .tag{
  border-color: rgba(255, 255, 255, 0.18);
}

.services-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 3vw, 28px);
}
.service-block {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.35);
  padding: 28px 28px 32px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-block:hover {
  border-color: rgba(0, 179, 179, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.service-block-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.service-block-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.service-block-list {
  margin: 0;
  padding-left: 1.15rem;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: rgba(17, 17, 17, 0.75);
}
.service-block-list li {
  margin-bottom: 6px;
}

/* Blog */
.section-blog {
  padding: var(--section-y-lg) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

@media (min-width: 900px) {
  .section-blog {
    border-top: none;
  }

  .section-blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--rail-safe-left);
    right: 0;
    height: 1px;
    background: var(--border);
    pointer-events: none;
  }
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 28px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
  transition: none;
}
.blog-card:hover {
  cursor: pointer;
}
.blog-ascii-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.blog-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-body {
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-date {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-muted);
}
.blog-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.2s ease;
}
.blog-title a,
.blog-title a:visited {
  color: inherit;
  text-decoration: none;
}
.blog-title a:hover,
.blog-title a:focus-visible {
  color: var(--ink);
}
.blog-excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(17, 17, 17, 0.68);
}

/* Monolith + Contact */
.section-testimonials {
  padding: var(--section-y-lg) 0;
  background: var(--bg);
}
.section-testimonials .section-title {
  color: #000000;
}
.testimonials-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
.testimonial { grid-column: span 4; border-top: 1px solid var(--border); padding-top: 22px; }
.testimonial blockquote { font-family: var(--font-display); font-size: clamp(16px, 1.25vw, 20px); font-weight: 500; letter-spacing: -0.02em; text-transform: none; line-height: 1.34; color: rgba(10, 10, 10, 0.82); }
.testimonial figcaption { margin-top: 16px; display:flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.t-name { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.02em; text-transform: none; font-size: 14px; }
.t-role { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--ink-muted); }

.section-contactForm {
  padding: var(--section-y-lg) 0;
  padding-bottom: calc(var(--section-y-lg) * 1.1);
  background: #0d0d0d;
  color: rgba(255, 255, 255, 0.94);
}
.section-contactForm .section-index {
  color: rgba(255, 255, 255, 0.76);
}
.section-contactForm .section-label {
  color: rgba(255, 255, 255, 0.62);
}
.section-contactForm .section-head--editorial .section-title {
  color: rgba(255, 255, 255, 0.98);
}
.section-contactForm .section-meta {
  color: rgba(255, 255, 255, 0.45);
}
.section-contactForm .micro-label--cyan {
  color: rgba(140, 210, 195, 0.95);
}
.contactForm-grid {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
.contactForm-copy {
  grid-column: 1 / 6;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
}
.contactForm-body {
  margin-top: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  max-width: var(--measure);
}
.contactForm {
  grid-column: 6 / 13;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
}
.field {
  grid-column: span 6;
  display: grid;
  gap: 12px;
}
.field--full {
  grid-column: 1 / -1;
}
.field-label {
  color: rgba(255, 255, 255, 0.58);
}
.field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.95);
  padding: 12px 0 14px;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease;
}
.field-input:focus {
  border-color: rgba(26, 107, 92, 0.75);
  background: transparent;
}
.field-textarea {
  resize: vertical;
  min-height: 152px;
}
.form-cta {
  grid-column: 1 / -1;
  justify-self: end;
  background: #01E6E1;
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.form-cta:hover { filter: brightness(1.05); }
.form-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}
.contact-tag { color: rgba(255,255,255,0.35); letter-spacing: 0.25em; text-align:center; margin-bottom: 56px; }
.contact-quote { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; font-size: clamp(38px, 5.6vw, 86px); line-height: 1.06; text-align: center; letter-spacing: 0.06em; }
.contact-highlight { color: var(--cyan); }
.contact-cols { margin-top: 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 48px; }
.contact-col { padding-right: 40px; border-right: 1px solid rgba(255,255,255,0.12); }
.contact-col:last-child { border-right: none; padding-left: 40px; padding-right: 0; }
.contact-col-label { color: rgba(255,255,255,0.35); margin-bottom: 18px; }
.contact-body { color: rgba(255,255,255,0.70); line-height: 1.85; max-width: 560px; }
.contact-link { display:block; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.01em; color: rgba(255,255,255,0.95); text-decoration: none; margin-top: 10px; }
.contact-link:hover { color: var(--cyan); }

/* Footer */
.footer {
  padding: clamp(28px, 4vw, 40px) 0;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  justify-content: center;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vw, 18px);
  width: 100%;
  font-family: var(--font-body);
  font-size: clamp(11px, 1.15vw, 13px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
}

.footer-logo {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.03em;
  color: #ffffff;
}

.footer-bar__sep {
  color: rgba(255, 255, 255, 0.28);
  user-select: none;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.45);
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: #01e6e1;
}

.footer-email__icon {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Type marquee */
#type-section { padding: 120px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.type-marquee-wrap { overflow: hidden; }
.type-marquee { display: inline-flex; gap: 72px; will-change: transform; padding: 0 var(--gutter); }
.type-giant {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(80px, 13vw, 200px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,0.28);
}
.type-giant--filled { color: rgba(0,0,0,0.9); -webkit-text-stroke: 0px transparent; }

@media (max-width: 1024px) {
  .archive-tile--a { grid-column: 1 / 13; grid-row: auto; }
  .archive-tile--b { grid-column: 1 / 7; }
  .archive-tile--c { grid-column: 7 / 13; }
  .archive-tile--d { grid-column: 1 / 13; }
  .methodProcess-layout {
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vh, 36px);
    align-items: center;
  }
  .methodProcess-aside {
    display: flex;
    justify-content: center;
    order: -1;
    max-width: none;
  }
  .methodProcess-frame {
    max-width: min(320px, 88vw);
    margin-inline: auto;
  }
  .methodProcess-copyStack {
    min-height: clamp(200px, 30vh, 320px);
  }
  .methodProcess-stickyShell {
    padding-block: clamp(16px, 4vh, 28px);
  }
}
@media (max-width: 768px) {
  /* Services: mobile fallback → vertical stack, no horizontal scroll drive */
  .section-services {
    min-height: 0;
    padding: clamp(72px, 9vw, 126px) 0;
  }
  .feature-sticky-container{
    position: relative;
    height: auto;
    padding: 0 var(--gutter);
    overflow: visible;
  }
  .feature-sticky-inner{
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
    max-width: var(--container);
  }
  .feature-header{
    opacity: 1;
    transform: none;
    transition: none;
  }
  .feature-scroll-wrapper{
    overflow: visible;
  }
  .services-grid{
    width: 100%;
    flex-direction: column;
    gap: 18px;
    padding-right: 0;
    transform: none !important;
  }
  .service-card{
    flex: 0 0 auto;
    min-height: 0;
    transform: none;
    opacity: 1;
  }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial { grid-column: auto; }
  .contactForm-grid { grid-template-columns: 1fr; }
  .contactForm-copy { grid-column: auto; }
  .contactForm { grid-column: auto; grid-template-columns: 1fr; }
  .field { grid-column: auto; }
}

/* Mobile-only (max-width: 899px): nav shell, spacing, hero, works grid, process stack, footer */
@media (max-width: 899px) {
  .index-rail {
    left: 14px;
    right: 14px;
    top: 12px;
    width: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: 14px;
    border: 1px solid rgba(10, 10, 10, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
  }

  .index-rail.is-on-dark {
    background: rgba(14, 14, 14, 0.88);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  }

  .index-rail.is-on-dark .mobile-nav-toggle {
    color: rgba(255, 255, 255, 0.92);
  }

  .index-rail-brand-text {
    font-size: 16px;
  }

  .index-links {
    position: fixed;
    top: 72px;
    right: 14px;
    left: auto;
    width: min(320px, calc(100vw - 28px));
    padding: 14px 12px;
    padding-left: 12px;
    gap: 4px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.65);
    z-index: 920;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.28s var(--ease-arch),
      visibility 0.28s,
      transform 0.28s var(--ease-arch);
  }

  .index-rail.is-on-dark .index-links {
    background: rgba(22, 22, 22, 0.82);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .index-links::before {
    display: none;
  }

  .index-rail.is-nav-open .index-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .index-link {
    color: var(--ink);
    padding: 12px 14px;
    border-radius: 10px;
    min-height: 48px;
  }

  .index-link::before {
    display: none;
  }

  .index-label {
    font-size: 15px;
    font-weight: 500;
  }

  .index-rail.is-on-dark .index-link {
    color: rgba(255, 255, 255, 0.94);
  }

  .index-link:active {
    background: rgba(10, 10, 10, 0.06);
  }

  .index-rail.is-on-dark .index-link:active {
    background: rgba(255, 255, 255, 0.08);
  }

  .index-link.is-active {
    background: rgba(1, 230, 225, 0.14);
  }

  .index-rail.is-on-dark .index-link.is-active {
    background: rgba(1, 230, 225, 0.2);
  }

  .index-link.is-active .index-label,
  .index-link:hover .index-label {
    color: var(--ink);
  }

  .index-rail.is-on-dark .index-link.is-active .index-label,
  .index-rail.is-on-dark .index-link:hover .index-label {
    color: rgba(255, 255, 255, 0.98);
  }

  /* Hero */
  .section-hero {
    min-height: 0;
    padding-top: clamp(92px, 24vw, 120px);
    padding-bottom: clamp(36px, 8vw, 56px);
  }

  #hero-canvas {
    opacity: 0.26;
  }

  .hero-visual {
    min-height: clamp(140px, 250vw, 250px);
    max-height: 250px;
  }

  .hero-visual__stack {
    will-change: auto;
  }

  .hero-visual__layer--metallic {
    display: none !important;
  }

  .hero-visual__layer--base {
    opacity: 1 !important;
  }

  /* Portfolio: max two tiles per row */
  #works .archive-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    column-gap: 12px !important;
    row-gap: 12px !important;
  }

  #works .archive-grid > article {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 1 / 1 !important;
    transform: none !important;
    min-height: 0 !important;
  }

  #works.works--filtered .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  #works.works--filtered .archive-grid .archive-tile--a,
  #works.works--filtered .archive-grid .archive-tile--b,
  #works.works--filtered .archive-grid .archive-tile--c,
  #works.works--filtered .archive-grid .archive-tile--d,
  #works.works--filtered .archive-grid .archive-tile--square,
  #works.works--filtered .archive-grid .archive-tile--wide {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    transform: none !important;
  }

  #works.works--filtered .archive-grid .archive-tile--wide {
    grid-column: span 2 !important;
    aspect-ratio: 21 / 9 !important;
    min-height: 120px !important;
  }

  /* Process: desktop scroll room hidden; mobile stack shown via JS class */
  .methodProcess-scrollRoom {
    display: none !important;
  }

  .methodProcess-mobileOnly {
    display: none;
  }

  .methodProcess-mobileOnly.is-visible {
    display: block;
  }

  .methodProcess-mobileStack {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 6vw, 40px);
    margin-top: 12px;
  }

  .method-mobile-step {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .method-mobile-visualWrap {
    width: 100%;
    max-width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
  }

  .methodProcess-frame--mobile {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .method-mobile-copy {
    padding-top: clamp(16px, 3vw, 22px);
    max-width: min(100%, 520px);
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .method-mobile-title {
    margin: 0 0 10px;
    font-size: clamp(20px, 4.8vw, 26px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.15;
  }

  .method-mobile-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.72;
    color: rgba(42, 42, 42, 0.72);
  }

  .processGeometry-svg--mobile {
    width: 100%;
    height: auto;
    display: block;
  }

  .footer {
    padding: clamp(28px, 6vw, 40px) 0 calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .footer-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px 12px;
    font-size: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-inline: 4px;
  }

  .footer-bar::-webkit-scrollbar {
    display: none;
  }

  .footer-logo,
  .footer-copy,
  .footer-email {
    flex-shrink: 0;
  }
}
