/* ════════════════════════════════════════════
   Health Collaborative Company
   ════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,300;1,300&display=swap');

/* ── Tokens ── */
:root {
  --serif:   'IBM Plex Serif', Georgia, serif;
  --sans:    'Helvetica Neue', Helvetica, Arial, sans-serif;

  --black:   #161616;
  --white:   #f2f2f2;
  --blue:    #0011b9;
  --muted:   #767676;
  --line:    #d8d8d8;

  --max:     1920px;
  --gap:     10px;   /* home page tight margins only */
  --pad:     32px;   /* standard page margins */
  --pad-text: 64px;  /* text-heavy sections */
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* ── Container ── */
/* Default: 32px sides for inner pages */
.container {
  width: 100%;
  max-width: var(--max);
  padding: 0 var(--pad);
  margin: 0 auto;
}
/* Tight: 10px sides for home header and video only */
.container--tight {
  padding: 0 var(--gap);
}


/* ════════════════════════════════════════════
   HOME PAGE
   ════════════════════════════════════════════ */

/* ── Home: Viewport wrapper ── */
.home-viewport {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ── Home: Grid Nav Hero ── */
.home-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: start;
  padding-top: 32px;
  flex: 1;
}

.home-nav-col {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-info-col {
  grid-column: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-info-text {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  line-height: 1.5;
}

/* ── Home: Bottom logo ── */
.home-brand {
  flex-shrink: 0;
  padding: 0 var(--gap);
  overflow: hidden;
}
.home-copyright {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  white-space: nowrap;
  color: var(--black);
  line-height: 1;
  /* font-size set dynamically by JS to fill full width */
  font-size: 5vw;
}
.home-copyright__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: home-link-in 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.home-copyright__word:nth-child(1) { animation-delay: 0.2s; }
.home-copyright__word:nth-child(2) { animation-delay: 0.5s; }
.home-copyright__word:nth-child(3) { animation-delay: 0.8s; }

.home-link {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s ease;
  opacity: 0;
  transform: translateY(10px);
  line-height: 1.5;
}
.home-link {
  animation: home-link-in 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.home-link:nth-child(1) { animation-delay: 0.2s; }
.home-link:nth-child(2) { animation-delay: 0.45s; }
.home-link:nth-child(3) { animation-delay: 0.7s; }
.home-link:nth-child(4) { animation-delay: 0.95s; }

.home-link:hover { color: var(--blue); }

@keyframes home-link-in {
  to { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--d1 { transition-delay: 0.15s; }
.reveal--d2 { transition-delay: 0.3s; }
.reveal--d3 { transition-delay: 0.45s; }
.reveal--d4 { transition-delay: 0.6s; }


/* ════════════════════════════════════════════
   INNER PAGE: SHARED HEADER
   ════════════════════════════════════════════ */

.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem var(--pad);
  border-bottom: 1px solid var(--line);
}
.page-header__logo {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.page-header__nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.page-header__nav a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  transition: color 0.15s;
}
.page-header__nav a:hover,
.page-header__nav a.is-active {
  color: var(--blue);
}


/* ════════════════════════════════════════════
   WORKS PAGE
   ════════════════════════════════════════════ */

.works-page-title {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.works-page-title h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  padding: var(--gap) 0;
}
.work-card {
  display: block;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s;
}
.work-card:hover {
  border-color: var(--blue);
}
.work-card__image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e8e8;
}
.work-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work-card:hover .work-card__image-wrap img {
  transform: scale(1.03);
}
/* Placeholder when no image */
.work-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: #e0e0e0;
}
.work-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.work-card__meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.work-card__client {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.work-card__tagline {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Two-card row (Mock Brands + Other Works) ── */
.works-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin: var(--gap) 0 4rem;
}
.works-cards-row .other-works-card {
  margin: 0;
}

/* ── Other Works card ── */
.other-works-card {
  display: block;
  border: 1px solid var(--line);
  margin: var(--gap) 0 4rem;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s;
}
.other-works-card:hover {
  border-color: var(--blue);
}

/* Preview image stack */
.other-works-card__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  background: #161616;
  overflow: hidden;
}
.other-works-card__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.08s ease;
}
.other-works-card__preview img.is-active {
  opacity: 1;
}

/* Footer row */
.other-works-card__footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
}
.other-works-card__label {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--black);
}
.other-works-card__sub {
  font-size: 0.82rem;
  color: var(--muted);
  flex: 1;
}
.other-works-card__arrow {
  font-size: 1.1rem;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
.other-works-card:hover .other-works-card__arrow {
  color: var(--blue);
  transform: translateX(4px);
}

/* Empty / loading state */
.works-empty {
  grid-column: span 2;
  padding: 6rem 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.2rem;
  color: var(--muted);
  font-style: italic;
}


/* ════════════════════════════════════════════
   CASE STUDY PAGE
   ════════════════════════════════════════════ */

.case-study-back {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 1.5rem 0;
  transition: color 0.15s;
}
.case-study-back:hover {
  color: var(--blue);
}

.case-study-header {
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4rem;
}
.case-study-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.case-study-client {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 7rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.case-study-tagline {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  line-height: 1.4;
  color: var(--muted);
  max-width: 60ch;
}

.case-study-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--pad) 6rem;
}
.case-study-description {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
}

/* Section blocks */
.section-block {
  margin-bottom: 3rem;
}
.section-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.section-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #333;
}
.section-image {
  width: calc(100% + 0px);
  aspect-ratio: 16 / 9;
  background: #e8e8e8;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-caption {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.section-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 0.5rem;
}
.section-image-pair .section-image {
  margin-bottom: 0;
}

/* Full-bleed images on case study */
.case-study-fullbleed {
  max-width: var(--max);
  padding: 0 var(--gap);
  margin: 3rem auto;
}
.case-study-fullbleed .section-image {
  width: 100%;
  aspect-ratio: 21 / 9;
}

.case-study-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 0 6rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.case-study-footer a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1rem;
  color: var(--blue);
  transition: opacity 0.15s;
}
.case-study-footer a:hover {
  opacity: 0.65;
}
.case-study-not-found {
  padding: 6rem 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--muted);
}


/* ════════════════════════════════════════════
   ABOUT PAGE
   ════════════════════════════════════════════ */

.about-hero {
  padding: 5rem var(--pad) 4rem;
  border-bottom: 1px solid var(--line);
  max-width: 900px;
}
.about-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.about-hero p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #333;
  max-width: 60ch;
}
.about-hero p + p {
  margin-top: 1.25rem;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 5rem;
}
.about-detail {
  padding: 2rem var(--pad) 2.5rem var(--pad);
  border-right: 1px solid var(--line);
}
.about-detail:last-child {
  border-right: none;
}
.about-detail__label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}
.about-detail__value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
}
.about-detail__value a {
  color: var(--blue);
  transition: opacity 0.15s;
}
.about-detail__value a:hover {
  opacity: 0.65;
}


/* ── Services cards ── */
.services-section {
  padding: 5rem 0 5rem 4rem;
  border-top: 1px solid var(--line);
}
.services-label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  display: flex;
  flex-direction: column;
}
.service-card__image {
  height: 320px;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: flex-end;
}
.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  display: block;
}
.service-card__body {
  padding: 0;
}
.service-card__title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--black);
}
.service-card__desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}


/* ════════════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════════════ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 5rem var(--pad) 6rem;
  align-items: start;
}
.contact-left h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.contact-left p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  max-width: 46ch;
  margin-bottom: 2rem;
}
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 2px;
  transition: opacity 0.15s;
}
.contact-email:hover {
  opacity: 0.65;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-field label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #bbb;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--blue);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-field select {
  cursor: pointer;
}
.form-submit {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--black);
  padding: 0.85rem 2rem;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.form-submit:hover {
  background: var(--blue);
}
.form-success {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: 2rem 0;
}


/* ════════════════════════════════════════════
   SEVEN HABITS PAGE
   ════════════════════════════════════════════ */

/* ── Dark theme ── */
body.page-habits {
  background: #161616;
  color: #f2f2f2;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-habits .page-header {
  background: #161616;
  border-bottom-color: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
body.page-habits .page-header__logo,
body.page-habits .page-header__nav a {
  color: rgba(255,255,255,0.55);
}
body.page-habits .page-header__nav a:hover,
body.page-habits .page-header__nav a.is-active {
  color: #f2f2f2;
}

/* ── Two-column layout ── */
.habits-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* ── Left: sticky sidebar ── */
.habits-sidebar {
  width: 42%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(2rem, 4vw, 5rem);
  border-right: 1px solid rgba(255,255,255,0.07);
}
.habits-title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(4.5rem, 8vw, 10rem);
  line-height: 0.9;
  color: #f2f2f2;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.habits-subtitle {
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  color: rgba(255,255,255,0.38);
  max-width: 30ch;
  line-height: 1.75;
  margin-bottom: 3rem;
}
.habits-counter {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
}
.habits-counter__num {
  color: #f2f2f2;
  transition: opacity 0.4s ease;
}

/* ── Right: scrollable habit panels ── */
.habits-main {
  flex: 1;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.habits-main::-webkit-scrollbar {
  display: none;
}

.habit-slide {
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding: 0 clamp(2.5rem, 5vw, 6rem);
}
.habit-slide__inner {
  max-width: 600px;
}

/* ── Text animations ── */
.habit-slide .habit-num,
.habit-slide .habit-name,
.habit-slide .habit-desc {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.habit-slide .habit-name { transition-delay: 0.2s; }
.habit-slide .habit-desc { transition-delay: 0.42s; }

.habit-slide.is-active .habit-num,
.habit-slide.is-active .habit-name,
.habit-slide.is-active .habit-desc {
  opacity: 1;
  transform: translateY(0);
}

/* ── Slide typography ── */
.habit-slide .habit-num {
  display: block;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.28);
  margin-bottom: 1.75rem;
}
.habit-slide .habit-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 5.5vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #f2f2f2;
  margin-bottom: 2rem;
}
.habit-slide .habit-desc {
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  max-width: 50ch;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  body.page-habits { overflow: auto; height: auto; }
  .habits-layout { flex-direction: column; overflow: visible; }
  .habits-sidebar {
    width: 100%;
    padding: 3rem var(--pad) 2rem;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .habits-title { font-size: clamp(3.5rem, 14vw, 6rem); }
  .habits-main {
    overflow-y: visible;
    scroll-snap-type: none;
    height: auto;
  }
  .habit-slide {
    height: auto;
    min-height: 70vh;
    scroll-snap-align: none;
    padding: 3rem var(--pad);
  }
  .habit-slide .habit-num,
  .habit-slide .habit-name,
  .habit-slide .habit-desc {
    opacity: 1;
    transform: none;
  }
}


/* ════════════════════════════════════════════
   SHARED FOOTER
   ════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.footer-email {
  font-size: 0.72rem;
  color: var(--muted);
  transition: color 0.15s, opacity 0.2s;
}
.footer-email:hover {
  color: var(--blue);
}

/* ── Copy-to-clipboard email links ── */
.copy-email {
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.copy-email--copied {
  color: var(--blue) !important;
  border-bottom-color: var(--blue);
}


/* ════════════════════════════════════════════
   MOBILE NAV OVERLAY
   ════════════════════════════════════════════ */

.page-header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: inherit;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: #161616;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 1rem var(--pad) 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.nav-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
}
.nav-overlay__logo {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}
.nav-overlay__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
  line-height: 1;
}
.nav-overlay__close:hover { color: #f2f2f2; }
.nav-overlay__links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 0.1rem;
}
.nav-overlay__links a {
  font-family: var(--sans);
  font-size: 2.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.nav-overlay__links a:hover,
.nav-overlay__links a.is-active { color: #f2f2f2; }


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

@media (max-width: 900px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
  .works-cards-row {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .works-empty {
    grid-column: span 1;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 0 4rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .about-details {
    grid-template-columns: 1fr 1fr;
  }
  .about-detail:nth-child(2) {
    border-right: none;
  }
  .about-detail:nth-child(3) {
    border-top: 1px solid var(--line);
  }
  .section-image-pair {
    grid-template-columns: 1fr;
  }
  .case-study-footer {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  /* ── Home: stacked mobile nav ── */
  .home-brand { order: -1; }
  .home-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--pad) var(--pad);
    gap: 2rem;
  }
  .home-nav-col { display: contents; }
  .home-info-col {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }
  .home-link {
    font-size: 1.4rem;
    opacity: 0;
    transform: translateY(10px);
  }
  .home-info-text { font-size: 0.9rem; }

  /* 5 — Logo: stack words + separator line */
  .home-brand {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1.25rem var(--gap) 1.5rem;
  }
  .home-copyright { font-size: 11vw; }
  .home-copyright__word { display: block; }

  /* 2 — Hide inline nav, show hamburger */
  .page-header__nav { display: none; }
  .page-header__menu-btn { display: flex; }
  .about-details {
    grid-template-columns: 1fr;
  }
  .about-detail {
    border-right: none;
    border-top: 1px solid var(--line);
    padding: 1.5rem 0;
  }
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}


