:root {
  --ink: #222222;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: 'Raleway', system-ui, sans-serif;
  background: #fff;
  color: var(--ink);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Hero ===== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 1.5rem;
  position: relative;
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1rem;
  z-index: 10;
}

.nav a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--ink); }

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.prefix {
  font-size: clamp(2.6rem, 9vw, 8rem);
  font-weight: 200;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 0.35em;
  text-transform: uppercase;
}

.words {
  position: relative;
  width: 100%;
  height: 1.3em;
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  line-height: 1.1;
}

.word {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 1em;
  font-weight: 300;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: fadeLoop 6s ease-in-out infinite;   /* was 9s */
  text-shadow:
    0.35px 0 0 currentColor,
    -0.35px 0 0 currentColor;
}

.word--content,
.word--web,
.word--design { color: var(--ink); }
.word--content { animation-delay: 0s; }
.word--web { animation-delay: 2s; }              /* was 3s */
.word--design { animation-delay: 4s; }

@keyframes fadeLoop {
  0% { opacity: 0; }
  4% { opacity: 1; }                              /* fade in ~0.24s (was 0.27s) */
  30% { opacity: 1; }
  34% { opacity: 0; }                             /* fade out ~0.24s */
  100% { opacity: 0; }
}

/* ===== Intro ===== */
.intro {
  position: relative;
  display: grid;
  padding: 0 clamp(1rem, 3vw, 2.5rem) clamp(3rem, 7vw, 6rem);
}

.intro__media {
  grid-area: 1 / 1;
  overflow: hidden;
  position: relative;
  aspect-ratio: 21 / 9;
  background: #222222;
}

.intro__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 45%);
  z-index: 1;
  pointer-events: none;
}

.intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.intro__text {
  grid-area: 1 / 1;
  z-index: 2;
  align-self: end;
  padding: clamp(1.5rem, 4vw, 3rem);
  font-size: clamp(1.6rem, 5vw, 4rem);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #ffffff;
  max-width: 20ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  margin: 0;
}

/* ===== Sticky stack ===== */
.stack {
  position: relative;
}

.stack-card {
  position: sticky;
  top: 0;
  min-height: 100svh;
  background: #ffffff;
}

/* --- Brand card --- */
.brand-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.brand-name {
  display: block;
  width: 100%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 11vw, 10rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink);
}

/* --- About card --- */
.about {
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-content: center;
  align-items: start;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 2.5vw, 2rem) clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2.5rem);
}

.about__text {
  padding-top: 0;
  max-width: 86ch;
}

.about__media {
  aspect-ratio: 3 / 4;
  width: clamp(220px, 36vw, 460px);
  max-height: 60svh;
  justify-self: end;
  overflow: hidden;
  background: #f2f2f2;
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.6s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.about__media:hover img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

.about__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-bottom: 0.9em;
  color: var(--ink);
}

.about__body {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* --- Industries card --- */
.industries {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-content: center;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2.5rem);
}

.industries__text {
  max-width: none;
  width: 100%;
}

.industries__lead {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 200;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-transform: none;
  text-align: left;
}

.industries__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  justify-self: end;
}

.industries__item {
  font-size: clamp(1.2rem, 2.8vw, 2.4rem);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ff4255;
  white-space: nowrap;
}

/* --- Dark featured section --- */
.dark-section {
  background: #222222;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2.5rem);
}

.dark-section__top {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  left: clamp(1rem, 3vw, 2.5rem);
  z-index: 3;
}

.dark-section__text {
  display: inline-block;
  max-width: 32ch;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #ffffff;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #ffffff;
}

.dark-section__title {
  position: relative;
  z-index: 2;
  font-size: clamp(3rem, 11vw, 10rem);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  width: 100%;
  max-width: none;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.dark-section__media {
  position: absolute;
  top: 50%;
  right: clamp(1rem, 3vw, 2.5rem);
  transform: translateY(-50%);
  width: clamp(200px, 30vw, 380px);
  aspect-ratio: 3 / 4;
  z-index: 1;
  overflow: hidden;
}

.dark-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.dark-section__media:hover img { transform: scale(1.05); }

/* ===== Testimonials ===== */
.testimonials {
  padding: 1.5rem 1rem !important;
  min-height: 0 !important;
  height: auto !important;
  display: block !important;
}

.testimonials__carousel {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
}

.testimonial {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.testimonial.is-active {
  display: block !important;
}

.testimonial__quote {
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  font-weight: 200;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 1rem 0;
}

.testimonial__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.testimonial__author {
  font-style: normal;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.testimonial__position {
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.7;
}

/* ===== Footer ===== */
.footer {
  background: #222222;
  color: #ffffff;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 3vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(5rem, 14vw, 12rem);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: baseline;
}

.footer__nav a {
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer__nav a:hover { opacity: 0.7; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 2.5vw, 2rem);
  flex-wrap: wrap;
}

.footer__brand-name {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.footer__copyright {
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #ffffff;
  opacity: 0.6;
}

.footer__info {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
  margin-left: auto;
  text-align: right;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.footer__item {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer__item:hover { opacity: 0.7; }

/* ===== Microinteractions ===== */
.nav a {
  position: relative;
  transition: opacity 0.3s ease;
  animation: navIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.nav a:nth-child(1) { animation-delay: 0.05s; }
.nav a:nth-child(2) { animation-delay: 0.12s; }
.nav a:nth-child(3) { animation-delay: 0.19s; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a:hover { opacity: 0.75; }
.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.prefix { animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards; }
.words  { animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s backwards; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes navIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.industries__item {
  display: inline-block;
  transition: letter-spacing 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.industries__item:hover {
  letter-spacing: 0.14em;
  transform: translateY(-2px);
}

.footer__nav a {
  position: relative;
  transition: opacity 0.3s ease;
}
.footer__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer__item {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer__item:hover {
  opacity: 0.6;
  transform: translateX(-3px);
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {

  .stack-card {
    position: sticky;
    top: 0;
    min-height: 100svh;
    padding: clamp(1.5rem, 5vw, 2.5rem) 1.25rem;
  }

  .brand-card {
    min-height: 100svh;
    justify-content: center;
    padding: 0 1.25rem;
  }
  .brand-name {
    font-size: clamp(2.4rem, 12vw, 5rem);
    white-space: normal;
    line-height: 1;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-content: center;
    align-items: center;
    min-height: 100svh;
    padding: clamp(1.5rem, 5vw, 2.5rem) 1.25rem;
  }
  .about__text { max-width: 100%; }
  .about__media {
    width: 100%;
    max-width: 300px;
    max-height: 34svh;
    justify-self: center;
  }
  .about__lead {
    font-size: clamp(1.3rem, 6vw, 1.9rem);
    line-height: 1.2;
  }
  .about__body {
    font-size: clamp(1.05rem, 4.4vw, 1.4rem);
    line-height: 1.45;
  }

  .industries {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-content: center;
    min-height: 100svh;
    padding: clamp(1.5rem, 5vw, 2.5rem) 1.25rem;
  }
  .industries__text { max-width: 100%; }
  .industries__lead {
    font-size: clamp(1.8rem, 7.5vw, 2.6rem);
    font-weight: 200;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: var(--ink);
    text-transform: none;
    text-align: left;
  }
  .industries__list {
    justify-self: start;
    gap: 0.6rem;
  }
  .industries__item {
    font-size: clamp(1.6rem, 8vw, 2.8rem);
    white-space: normal;
  }

  .dark-section {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    padding: clamp(1.5rem, 5vw, 2.5rem) 1.25rem;
  }
  .dark-section__top {
    order: 1;
    position: static;
    margin: 0;
  }
  .dark-section__text {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
    max-width: 100%;
  }
  .dark-section__media {
    order: 2;
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 320px;
    max-height: 38svh;
    margin: 0 auto;
    z-index: 1;
    opacity: 1;
  }
  .dark-section__title {
    order: 3;
    position: relative;
    z-index: 2;
    max-width: 100%;
    font-size: clamp(2.6rem, 12vw, 4.5rem);
    line-height: 0.95;
    text-align: center;
  }

  .testimonials {
    padding: 1.5rem 1rem !important;
    min-height: 0 !important;
    height: auto !important;
  }
  .testimonial__quote { font-size: clamp(1.6rem, 7vw, 2.4rem); }

  .footer { gap: clamp(3rem, 10vw, 5rem); }
  .footer__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .footer__nav a { font-size: clamp(2rem, 10vw, 3rem); }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }
  .footer__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .footer__brand-name { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .footer__info {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    text-align: left;
    gap: 1.5rem;
  }
  .footer__col { align-items: flex-start; }
  .footer__item { font-size: clamp(1rem, 4vw, 1.15rem); }
}

@media (max-width: 700px) {
  .prefix { font-size: clamp(2.6rem, 13vw, 5rem); }
  .words { font-size: clamp(2.2rem, 11vw, 4rem); height: 3em; }
  .word { white-space: normal; max-width: 92vw; line-height: 1.15; }

  .intro {
    min-height: 100svh;
    padding: 0;
  }
  .intro__media {
    aspect-ratio: auto;
    height: 100svh;
  }
  .intro__text {
    align-self: center;
    font-size: clamp(2rem, 10vw, 3.4rem);
    max-width: 100%;
    padding: 1.5rem;
    line-height: 1.05;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word { animation: none; opacity: 1; }
  .word--web, .word--design { display: none; }

  .reveal { opacity: 1; transform: none; transition: none; }
  .prefix, .words, .nav a { animation: none; }

  .about__media img,
  .dark-section__media img { transition: none; }
  .about__media:hover img,
  .dark-section__media:hover img { transform: none; }
}

/* ===== Services page ===== */
.services-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.services-intro {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 3vw, 2.5rem) clamp(2rem, 5vw, 3rem);
  font-size: clamp(2rem, 7vw, 5.5rem);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.services-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
  padding: 0 clamp(1rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}

.services-header__left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

.services-header__image {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #f2f2f2;
}

.services-header__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-header__image::before,
.services-header__image::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(0.75rem, 1.5vw, 1.25rem);
  background: #ffffff;
  z-index: 1;
  pointer-events: none;
}

.services-header__image::before {
  top: calc(33.333% - clamp(0.75rem, 1.5vw, 1.25rem) * 0.5);
}

.services-header__image::after {
  top: calc(66.666% - clamp(0.75rem, 1.5vw, 1.25rem) * 0.5);
}

.services-header__text {
  align-self: start;
  justify-self: end;
  max-width: 34ch;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 800px) {
  .services-intro {
    font-size: clamp(1.8rem, 8vw, 3rem);
    padding: clamp(4.5rem, 9vw, 6rem) 1.25rem 2rem;
  }
  .services-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .services-header__left {
    display: contents;
  }
  .services-header__text {
    order: 1;
    align-self: auto;
    justify-self: auto;
    max-width: 100%;
    font-size: clamp(1.3rem, 6vw, 2rem);
  }
  .services-header__image {
    order: 2;
    flex: none;
    aspect-ratio: 16 / 10;
    height: auto;
  }
}

/* ===== Services stack ===== */
.services-stack .stack-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2.5rem);
}

.stack-card.is-reading {
  position: relative;
  min-height: auto;
}
.stack-card.is-reading ~ .stack-card {
  position: relative;
}

.service-card__inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.service-card__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 0.5em;
  text-align: center;
}

.service-card__desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  max-width: 60ch;
  text-align: center;
}

.service-card__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.service-card__table td {
  border: 1px solid rgba(34, 34, 34, 0.25);
  padding: clamp(0.75rem, 1.5vw, 1.15rem) clamp(0.9rem, 2vw, 1.25rem);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
}

.service-card__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 0 auto;
  padding: 0;
  font-family: inherit;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
}

.service-card__toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.service-card__arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card__toggle[aria-expanded="true"] .service-card__arrow {
  transform: rotate(-135deg);
}

.service-card__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card__panel.is-open {
  grid-template-rows: 1fr;
}

.service-card__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.service-card__panel-inner .tier {
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  text-align: center;
}

.service-card__panel-inner .tier + .tier {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid rgba(34, 34, 34, 0.15);
}

.tier__name {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 0.75em;
}

.tier__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 46ch;
  text-align: left;
}

.tier__list li {
  position: relative;
  padding-left: 1.25em;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
}

.tier__list li + li {
  margin-top: 0.35em;
}

.tier__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

@media (max-width: 700px) {
  .service-card__title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .service-card__desc { font-size: clamp(0.95rem, 4vw, 1.05rem); }
  .service-card__table td { font-size: clamp(0.85rem, 3.6vw, 0.95rem); padding: 0.75rem; }
  .tier__list li { font-size: clamp(0.9rem, 4vw, 1rem); }
}

/* ===== Portfolio page ===== */
.portfolio-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.portfolio-intro {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 3vw, 2.5rem) clamp(2rem, 5vw, 3rem);
  font-size: clamp(2rem, 7vw, 5.5rem);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.project {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
}

.project__title {
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #ff4255;
}

.project__strip {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 0 clamp(1rem, 3vw, 2.5rem) clamp(0.75rem, 1.5vw, 1.25rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: clamp(1rem, 3vw, 2.5rem);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 34, 34, 0.3) transparent;
}

.project__strip::-webkit-scrollbar { height: 4px; }
.project__strip::-webkit-scrollbar-track { background: transparent; }
.project__strip::-webkit-scrollbar-thumb {
  background: rgba(34, 34, 34, 0.25);
  border-radius: 2px;
}

.project__strip img {
  flex: 0 0 auto;
  width: clamp(260px, 55vw, 640px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #f2f2f2;
  scroll-snap-align: start;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.project__strip img:hover { transform: scale(1.02); }

.project__desc {
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.project__title a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.project__title a:focus-visible {
  outline: 2px solid #ff4255;
  outline-offset: 6px;
}

@media (max-width: 700px) {
  .portfolio-intro {
    font-size: clamp(1.8rem, 8vw, 3rem);
    padding: clamp(4.5rem, 9vw, 6rem) 1.25rem 2rem;
  }
  .project__title { font-size: clamp(2rem, 9vw, 3.5rem); }
  .project__strip img { width: clamp(240px, 78vw, 340px); }
  .project__desc { font-size: clamp(0.95rem, 4vw, 1.05rem); }
}

/* ===== Contact page ===== */
.contact-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.contact-section {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(6rem, 12vw, 9rem) clamp(1rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 520px;
  width: 100%;
  justify-self: start;
}

.contact-form__field { display: flex; flex-direction: column; gap: 0.4rem; }

.contact-form__field label {
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(34, 34, 34, 0.3);
  outline: none;
  transition: border-color 0.25s ease;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-bottom-color: var(--ink);
}

.contact-form__field textarea { resize: vertical; min-height: 6rem; }

.contact-form__submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.85rem 0;
  font-family: inherit;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: letter-spacing 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.contact-form__submit:hover { letter-spacing: 0.24em; opacity: 0.7; }

.contact-form__submit:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.contact-text {
  justify-self: end;
  align-self: center;
  max-width: 22ch;
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-align: left;
}

.feedback-section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 3vw, 2.5rem) clamp(6rem, 12vw, 10rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feedback-section__title {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #ff4255;
  margin-bottom: 0.5em;
  text-align: center;
}

.feedback-section__text {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-align: center;
  max-width: 60ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
  max-width: 640px;
}

.feedback-form__field { display: flex; flex-direction: column; gap: 0.4rem; }

.feedback-form__field label {
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.feedback-form__field input,
.feedback-form__field textarea {
  width: 100%;
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(34, 34, 34, 0.3);
  outline: none;
  transition: border-color 0.25s ease;
}

.feedback-form__field input:focus,
.feedback-form__field textarea:focus {
  border-bottom-color: var(--ink);
}

.feedback-form__field textarea { resize: vertical; min-height: 7rem; }

.feedback-form__submit {
  align-self: center;
  margin-top: 0.5rem;
  padding: 0.85rem 0;
  font-family: inherit;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: letter-spacing 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.feedback-form__submit:hover { letter-spacing: 0.24em; opacity: 0.7; }

.feedback-form__submit:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (max-width: 800px) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: clamp(5rem, 10vw, 7rem) 1.25rem clamp(2rem, 5vw, 3rem);
  }
  .contact-form { max-width: 100%; order: 2; }
  .contact-text {
    order: 1;
    justify-self: start;
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 3.2rem);
  }
  .feedback-section__title { font-size: clamp(2rem, 10vw, 3.5rem); }
  .feedback-section__text { font-size: clamp(0.95rem, 4vw, 1.05rem); }
}

/* ===== 404 page ===== */
.error-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.error-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}

.error-code {
  margin: 0;
  font-size: clamp(6rem, 28vw, 22rem);
  font-weight: 200;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: #ff4255;
}

.error-message {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.error-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 0;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink);
  transition: letter-spacing 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.error-link:hover { letter-spacing: 0.24em; opacity: 0.7; }

.error-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .error-code { font-size: clamp(6rem, 34vw, 12rem); }
  .error-message { font-size: clamp(1.1rem, 5vw, 1.4rem); }
}

/* ===== Privacy page ===== */
.privacy-hero {
  min-height: auto;
  padding-top: clamp(5rem, 9vw, 7rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.privacy-header { padding: 0 clamp(1rem, 3vw, 2.5rem); }

.privacy-title {
  margin: 0 0 0.35em;
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #ff4255;
}

.privacy-date {
  margin: 0;
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  opacity: 0.6;
}

.privacy-body {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: 900px;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem) clamp(6rem, 12vw, 10rem);
}

.privacy-section__title {
  margin: 0 0 1em;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.privacy-section p {
  margin: 0 0 0.9em;
  max-width: 68ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 0.5em 0 0;
  max-width: 68ch;
}

.privacy-list li {
  position: relative;
  padding-left: 1.25em;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.privacy-list li + li { margin-top: 0.35em; }

.privacy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.privacy-contact {
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-left: 3px solid #ff4255;
  background: #f7f7f7;
}

.privacy-contact p {
  margin: 0 0 0.5em;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
}

.privacy-contact p:last-child { margin-bottom: 0; }

.privacy-contact .privacy-contact__name {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75em;
}

.privacy-contact a {
  color: #ff4255;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.privacy-contact a:hover { opacity: 0.7; }

@media (max-width: 700px) {
  .privacy-title { font-size: clamp(2rem, 11vw, 3.5rem); }
  .privacy-section__title { font-size: clamp(0.85rem, 3.6vw, 0.95rem); }
  .privacy-section p,
  .privacy-list li { font-size: clamp(0.95rem, 4vw, 1.05rem); }
}

.portal-body {
  background: #fff;
  min-height: 100vh;
}

.portal {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2.5rem) clamp(4rem, 10vw, 8rem);
}

.portal > * {
  animation: portalFade 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.portal > *:nth-child(1) { animation-delay: 0s; }
.portal > *:nth-child(2) { animation-delay: 0.1s; }
.portal > *:nth-child(3) { animation-delay: 0.2s; }
.portal > *:nth-child(4) { animation-delay: 0.3s; }
.portal > *:nth-child(5) { animation-delay: 0.4s; }

@keyframes portalFade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Header */
.portal__header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.portal__brand {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff4255;
  margin: 0 0 1rem;
}

.portal__greeting {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.4em;
}

.portal__intro {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.7;
  max-width: 50ch;
  margin: 0;
}

/* Stats */
.portal__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(34, 34, 34, 0.15);
  border-bottom: 1px solid rgba(34, 34, 34, 0.15);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.portal-stat {
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  border-right: 1px solid rgba(34, 34, 34, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portal-stat:last-child { border-right: none; }

.portal-stat__label {
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  opacity: 0.7;
}

.portal-stat__value {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Sections */
.portal__section {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.portal__section:last-child { margin-bottom: 0; }

.portal__section-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}

/* Projects */
.portal__projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.portal-project {
  border-top: 1px solid rgba(34, 34, 34, 0.2);
  padding-top: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-project__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.portal-project__name {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

.portal-project__status {
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ff4255;
  white-space: nowrap;
}

.portal-project__desc {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.75;
  margin: 0;
}

.portal-project__progress {
  height: 2px;
  background: rgba(34, 34, 34, 0.15);
  overflow: hidden;
  margin: 0.5rem 0;
}

.portal-project__bar {
  height: 100%;
  background: #ff4255;
  width: var(--p, 0%);
  animation: portalProgress 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes portalProgress {
  from { width: 0; }
  to   { width: var(--p, 0%); }
}

.portal-project__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.portal-project__meta {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0.65;
}

.portal-project__link {
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  transition: letter-spacing 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.portal-project__link:hover {
  letter-spacing: 0.24em;
  opacity: 0.7;
}

.portal-project__link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* Invoices */
.portal-invoices {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(34, 34, 34, 0.15);
}

.portal-invoice {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1rem, 2vw, 1.35rem) 0;
  border-bottom: 1px solid rgba(34, 34, 34, 0.15);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 300;
  color: var(--ink);
}

.portal-invoice__id {
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.portal-invoice__desc {
  font-weight: 300;
}

.portal-invoice__amount {
  font-weight: 400;
}

/* Actions group — status + download side by side, no box */
.portal-invoice__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.portal-invoice__status {
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.portal-invoice__status--paid { color: #22935d; }
.portal-invoice__status--due  { color: #ff4255; }

.portal-invoice__download {
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: letter-spacing 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.portal-invoice__download:hover {
  letter-spacing: 0.22em;
  opacity: 0.7;
}

.portal-invoice__download:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* Messages */
.portal-messages {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(34, 34, 34, 0.15);
}

.portal-message {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  padding: clamp(1rem, 2vw, 1.35rem) 0;
  border-bottom: 1px solid rgba(34, 34, 34, 0.15);
}

.portal-message__from {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink);
}

.portal-message__time {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--ink);
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  align-self: center;
}

.portal-message__preview {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 300;
  color: var(--ink);
  opacity: 0.7;
  line-height: 1.6;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}

/* Mobile */
@media (max-width: 700px) {
  .portal__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .portal-stat:nth-child(2) { border-right: none; }
  .portal-stat:nth-child(1),
  .portal-stat:nth-child(2) {
    border-bottom: 1px solid rgba(34, 34, 34, 0.15);
  }

  .portal__projects {
    grid-template-columns: 1fr;
  }

  .portal-invoice {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 1rem;
  }
  .portal-invoice__id       { grid-column: 1; grid-row: 1; }
  .portal-invoice__actions  { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .portal-invoice__desc     { grid-column: 1 / -1; grid-row: 2; opacity: 0.75; }
  .portal-invoice__amount   { grid-column: 1; grid-row: 3; font-weight: 300; }

}

@media (prefers-reduced-motion: reduce) {
  .portal > *,
  .portal-project__bar {
    animation: none;
  }
}



/* ===== Client Portal — Auth (sign in) ===== */
.portal--auth {
  max-width: 480px;
  margin: clamp(3rem, 8vw, 6rem) auto;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  padding-right: clamp(1rem, 3vw, 2.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.portal--auth .portal__header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.portal--auth .portal__greeting {
  font-size: clamp(2rem, 5vw, 3rem);
}

/* Error banner — pink accent, no harsh red */
.auth-error {
  display: block;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  border-left: 3px solid #ff4255;
  background: rgba(255, 66, 85, 0.08);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.auth-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-form__field label {
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.auth-form__field input {
  width: 100%;
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(34, 34, 34, 0.3);
  outline: none;
  transition: border-color 0.25s ease;
}

.auth-form__field input:focus {
  border-bottom-color: var(--ink);
}

/* Submit — borderless, letter-spacing hover like every other button */
.auth-form__submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.85rem 0;
  font-family: inherit;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: letter-spacing 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.auth-form__submit:hover {
  letter-spacing: 0.24em;
  opacity: 0.7;
}

.auth-form__submit:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .portal--auth {
    margin-top: 2rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-form__submit {
    transition: none;
  }
}

/* ===== Portal header with action ===== */
.portal__header--with-action {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.portal__logout-form {
  margin: 0;
  flex-shrink: 0;
}

.portal__logout {
  padding: 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: letter-spacing 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.portal__logout:hover {
  letter-spacing: 0.24em;
  opacity: 0.7;
}

.portal__logout:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .portal__header--with-action {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
/* ===== Image lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transform: scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  padding: 1rem;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
}

.lightbox__close:focus-visible,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
}

.lightbox__prev {
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox__next {
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  font-size: 3rem;
}

/* Hide arrows when there's only one image in the group */
.lightbox--single .lightbox__prev,
.lightbox--single .lightbox__next {
  display: none;
}

/* Cursor hint on portfolio images */
.project__strip img {
  cursor: zoom-in;
}

@media (max-width: 700px) {
  .lightbox {
    padding: 1rem;
  }
  .lightbox__prev,
  .lightbox__next {
    font-size: 2.25rem;
    padding: 0.5rem;
  }
  .lightbox__close {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox__img {
    transition: none;
  }
}

/* ===== Contact wizard (multi-step form) ===== */
.contact-wizard {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 520px;
  width: 100%;
  justify-self: start;
  align-self: start;
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.contact-step {
  display: none;
}

.contact-step.is-active {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  animation: contactStepIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes contactStepIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

.contact-step__question {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 clamp(0.5rem, 1vw, 0.75rem);
}

.contact-step__empty {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  opacity: 0.7;
  margin: 0;
}

.contact-choices {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-choice {
  display: block;
  width: 100%;
  padding: 1rem 0;
  font-family: inherit;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 400;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(34, 34, 34, 0.2);
  cursor: pointer;
  transition: letter-spacing 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease,
              border-color 0.3s ease,
              padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-choice:hover {
  letter-spacing: 0.04em;
  padding-left: 0.4rem;
  border-bottom-color: var(--ink);
}

.contact-choice:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .contact-wizard { transition: none; }
  .contact-step.is-active { animation: none; }
  .contact-choice { transition: none; }
}

/* Multi-select additions */
.contact-step__hint {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.55;
  margin: -0.5rem 0 0.5rem;
}

.contact-choice.is-selected {
  font-weight: 600;
  border-bottom-color: var(--ink);
}

/* Disabled Continue button */
.contact-wizard .contact-form__submit:disabled,
.contact-wizard .contact-form__submit:disabled:hover {
  opacity: 0.35;
  cursor: not-allowed;
  letter-spacing: 0.14em;
}

/* Phone field error message */
.contact-form__error {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #ff4255;
}

.contact-form__error[hidden] {
  display: none;
}

/* Invalid input — pink underline */
.contact-form__field input[aria-invalid="true"] {
  border-bottom-color: #ff4255;
}

/* ===== Django messages ===== */
.messages {
  max-width: 520px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  position: relative;
  z-index: 20;
}

.message {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink);
  border-left: 3px solid var(--ink);
  background: rgba(34, 34, 34, 0.05);
}

.message--success { border-left-color: #22935d; }
.message--error   { border-left-color: #ff4255; }

.message + .message { margin-top: 0.5rem; }

/* Contact wizard success state */
.contact-success {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
  width: 100%;
  justify-self: start;
  align-self: start;
}

.contact-success__msg {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--ink);
  opacity: 0.8;
  margin: 0 0 0.5rem;
}

/* Feedback messages — now positioned below the feedback form */
.messages {
  width: 100%;
  max-width: 640px;
  margin: 1.5rem auto 0;
}

.message {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink);
  border-left: 3px solid var(--ink);
  background: rgba(34, 34, 34, 0.05);
}

.message--success { border-left-color: #22935d; }
.message--error   { border-left-color: #ff4255; }

.message + .message { margin-top: 0.5rem; }

/* Error shown above the wizard */
.contact-wizard .contact-form__error {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #ff4255;
}

/* ===== Article page ===== */
.article { max-width: 100%; }

.article__hero {
  width: 100%;
  height: clamp(240px, 55vh, 620px);
  overflow: hidden;
  background: #f2f2f2;
}

.article__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article__header {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  text-align: left;
}

.article__title {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.65;
}

.article__author { font-weight: 400; }
.article__dot { opacity: 0.5; }

.article__body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem) clamp(4rem, 10vw, 8rem);
}

.article__body p {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0 0 1.5em;
}

/* Drop cap — intro paragraph only */
.article__body > p.article__intro::first-letter {
  float: left;
  font-size: 5em;
  line-height: 0.85;
  font-weight: 200;
  padding-right: 0.08em;
  padding-top: 0.05em;
  color: var(--ink);
}

.article__body h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: clamp(2rem, 4vw, 3rem) 0 clamp(1rem, 2vw, 1.25rem);
}

.article__figure {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
  width: min(900px, 100%);
  margin-left: 50%;
  transform: translateX(-50%);
}

.article__figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #f2f2f2;
}

.article__caption {
  margin-top: 0.75rem;
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--ink);
  opacity: 0.6;
  text-align: left;
}

/* ===== Articles index (listing) ===== */
.articles-index {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 3vw, 2.5rem) clamp(4rem, 10vw, 8rem);
}

.articles-index__header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.articles-index__title {
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.4em;
}

.articles-index__intro {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.7;
  max-width: 55ch;
  margin: 0;
}

.articles-index__empty {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 300;
  color: var(--ink);
  opacity: 0.6;
}

.articles-index__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

.article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.article-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f2f2f2;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-card:hover .article-card__media img {
  transform: scale(1.04);
}

.article-card__date {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  opacity: 0.55;
  margin-bottom: 0.5rem;
}

.article-card__title {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  transition: letter-spacing 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.article-card:hover .article-card__title {
  opacity: 0.7;
}

/* Mobile */
@media (max-width: 700px) {
  .article__header { padding-top: 2rem; }

  .article__body > p.article__intro::first-letter {
    font-size: 3.6em;
    padding-right: 0.06em;
  }

  .article__figure {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .articles-index__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article__figure { transform: none; }
  .article-card__media img,
  .article-card__title { transition: none; }
}
/* Pull quote */
.article__quote {
  margin: clamp(3.5rem, 7vw, 5rem) 0;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid rgba(34, 34, 34, 0.15);
  border-bottom: 1px solid rgba(34, 34, 34, 0.15);
  text-align: center;
}

.article__body .article__quote-text {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 auto 1.5rem;
  max-width: 22ch;
}

.article__body .article__quote-text::before {
  content: '“';
  display: block;
  font-size: 2.5em;
  line-height: 0.4;
  font-weight: 200;
  color: var(--ink);
  opacity: 0.12;
  margin-bottom: 0.5em;
}

.article__quote-author {
  display: block;
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  opacity: 0.6;
  margin: 0;
}

/* Mobile */
@media (max-width: 700px) {
  .article__body .article__quote-text {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
}
/* =============================================================================
   CASE STUDY PAGE
   ============================================================================= */

/* Section number counters — auto-increment only for rendered sections,
   so missing optional sections are skipped without manual renumbering. */
.cs-page {
  counter-reset: cs-section;
}
.cs-section,
.cs-video {
  counter-increment: cs-section;
}
.cs-section__num::before,
.cs-video__label-num::before {
  content: counter(cs-section, decimal-leading-zero);
}

/* ===== Hero ===== */
.cs-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  min-height: 72vh;
}
.cs-hero__text {
  grid-column: 1;
  grid-row: 1;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
  align-self: start;
}
.cs-meta__kicker {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
}
.cs-meta__title {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
}
.cs-meta__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cs-meta__tags li {
  position: relative;
  padding-left: 1.25rem;
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.4;
}
.cs-meta__tags li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1.5px;
  background: var(--pink);
}
.cs-hero__image {
  grid-column: 2;
  grid-row: 1 / 3;
  overflow: hidden;
  background: #111;
  min-height: 500px;
}
.cs-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-hero__facts {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
.cs-fact__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  margin-bottom: 0.4rem;
}
.cs-fact__value {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
}

/* ===== Sections ===== */
.cs-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem);
}
.cs-section__label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cs-section__num {
  color: var(--pink);
}
.cs-section__name {
  color: var(--ink);
  font-weight: 500;
}
.cs-section__heading {
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  max-width: 22ch;
  color: var(--ink);
}
.cs-section__body {
  max-width: 720px;
}
.cs-section__body p {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0 0 1.5em;
}
.cs-section__body p:last-child { margin-bottom: 0; }
.cs-section__body strong { font-weight: 500; color: var(--ink); }

/* ===== Before / After ===== */
.cs-beforeafter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
.cs-beforeafter__item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cs-beforeafter__label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
}
.cs-beforeafter__label--after { color: var(--pink); opacity: 1; }
.cs-beforeafter__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f2f2;
  border: 1px solid var(--rule);
}
.cs-beforeafter__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Palette ===== */
.cs-palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
.cs-swatch { display: flex; flex-direction: column; }
.cs-swatch__chip {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}
.cs-swatch__name {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.cs-swatch__hex {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.55;
}

/* ===== Typography ===== */
.cs-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
}
.cs-type__item { display: flex; flex-direction: column; }
.cs-type__label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  margin-bottom: 0.75rem;
  font-family: 'Raleway', system-ui, sans-serif;
}
.cs-type__name {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.cs-type__aa {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 0.9;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.cs-type__specimen {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.cs-type__alphabet {
  font-size: 0.85rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0.65;
  margin: 0;
}

/* ===== UI Components ===== */
.cs-components {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
}
.cs-component { display: flex; flex-direction: column; gap: 0.75rem; }
.cs-component__label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
}
.cs-component__stage {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
}
.cs-btn {
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: default;
  background: var(--ink);
  color: #fff;
}
.cs-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.cs-input {
  width: 100%;
  max-width: 240px;
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  outline: none;
}
.cs-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--ink);
  color: var(--ink);
}

/* ===== Video ===== */
.cs-video {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem) clamp(4rem, 8vw, 7rem);
}
.cs-video__label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cs-video__label-num { color: var(--pink); }
.cs-video__label-name { color: var(--ink); font-weight: 500; }
.cs-video__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.cs-video__el {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* ===== CTA ===== */
.cs-cta {
  background: #222222;
  color: #ffffff;
  padding: clamp(5rem, 12vw, 9rem) clamp(1rem, 3vw, 2.5rem);
  text-align: center;
}
.cs-cta__inner { max-width: 780px; margin: 0 auto; }
.cs-cta__heading {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0 0 clamp(1rem, 2.5vw, 1.75rem);
}
.cs-cta__text {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: #ffffff;
  opacity: 0.7;
  max-width: 55ch;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.cs-cta__button {
  display: inline-block;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: letter-spacing 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-bottom-color 0.3s ease,
              opacity 0.3s ease;
}
.cs-cta__button:hover {
  letter-spacing: 0.24em;
  border-bottom-color: #ffffff;
  opacity: 0.85;
}
.cs-cta__button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 6px;
}

/* ===== Portfolio listing: View Case Study button ===== */
.project__case-study {
  display: inline-block;
  margin-top: 1.25rem;
  margin-left: clamp(1rem, 3vw, 2.5rem);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(34, 34, 34, 0.3);
  padding-bottom: 0.3rem;
  transition: letter-spacing 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-bottom-color 0.3s ease,
              opacity 0.3s ease;
}
.project__case-study:hover {
  letter-spacing: 0.24em;
  border-bottom-color: var(--ink);
  opacity: 0.75;
}
.project__case-study:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* ===== Mobile ===== */
@media (max-width: 800px) {
  .cs-hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }
  .cs-hero__text {
    order: 1;
    padding: 1.75rem 1.25rem 1.25rem;
    align-self: stretch;
  }
  .cs-meta__kicker {
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
  }
  .cs-meta__title {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
  }
  .cs-meta__tags { gap: 0.55rem; }
  .cs-meta__tags li {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
  .cs-meta__tags li::before { width: 7px; top: 0.6em; }

  .cs-hero__image {
    order: 2;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .cs-hero__facts {
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem 1.25rem 2.5rem;
    margin-top: 0;
    border-top: 1px solid var(--rule);
  }
  .cs-hero__facts > div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1rem;
    align-items: baseline;
  }
  .cs-fact__label {
    font-size: 0.65rem;
    margin-bottom: 0;
    letter-spacing: 0.12em;
  }
  .cs-fact__value {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .cs-beforeafter { grid-template-columns: 1fr; }
  .cs-palette { grid-template-columns: repeat(2, 1fr); }
  .cs-type { grid-template-columns: 1fr; }
  .cs-components { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-cta__button,
  .project__case-study { transition: none; }
}
/* ===== Saimon AI Floating Widget (Bottom-Right) ===== */
.saimon-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-family: inherit;
}

.saimon-trigger-wrap {
  cursor: pointer;
  display: inline-block;
}

.saimon-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.saimon-logo-img:hover {
  transform: scale(1.08);
}

.saimon-drawer {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 380px;
  height: 520px;
  background: #ffffff;
  border: 1px solid rgba(34, 34, 34, 0.25);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.saimon-drawer.hidden {
  display: none;
}

.saimon-header {
  background: var(--ink);
  color: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.saimon-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.saimon-close:hover {
  opacity: 1;
}

.saimon-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fafafa;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.5;
}

.saimon-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  word-break: break-word;
}

.saimon-msg--bot {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(34, 34, 34, 0.15);
  align-self: flex-start;
}

.saimon-msg--user {
  background: var(--ink);
  color: #ffffff;
  align-self: flex-end;
}

.saimon-form {
  border-top: 1px solid rgba(34, 34, 34, 0.2);
  padding: 0.85rem 1rem;
  background: #ffffff;
  display: flex;
  gap: 0.75rem;
}

.saimon-input {
  flex: 1;
  padding: 0.6rem 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(34, 34, 34, 0.3);
  outline: none;
  transition: border-color 0.25s ease;
}

.saimon-input:focus {
  border-bottom-color: var(--ink);
}

.saimon-submit {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.saimon-submit:hover {
  opacity: 0.7;
}

@media (max-width: 600px) {
  .saimon-widget {
    bottom: 20px;
    right: 20px;
  }
  .saimon-drawer {
    width: 300px;
    height: 440px;
  }
}
/* ===== Mobile Adjustment for Saimon Widget & Reach Out CTA ===== */
@media (max-width: 768px) {
  .saimon-widget {
    bottom: 85px; /* Floats safely above the bottom reach-out CTA */
    right: 20px;
  }
}