/* ========================================================================
   HOME: DISCIPLINES EDITORIAL GRID + BIG-NAME FOOTER
   ======================================================================== */

:root {
  --rule: rgba(15, 26, 46, 0.08);
  --rule-strong: rgba(15, 26, 46, 0.14);
}

/* ============ DISCIPLINES ============ */
.disciplines {
  background: #ffffff;
  color: var(--ink, #0f1a2e);
  font-family: 'Galatea', 'Times New Roman', serif;
  padding: clamp(72px, 12vh, 140px) 0 0 0;
  border-top: 1px solid var(--rule);
}

.disciplines__header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
  gap: clamp(16px, 2vw, 32px);
  padding: 0 clamp(32px, 6vw, 96px) clamp(48px, 7vh, 96px);
  border-bottom: 1px solid var(--rule);
}

.disciplines__eyebrow {
  font-family: 'Galatea', 'Times New Roman', serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #666;
}

.disciplines__intro {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 24ch;
  justify-self: end;
  text-align: right;
}

.disciplines__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Each row defines its own natural rhythm, some cells breathe more. */
  grid-auto-rows: minmax(clamp(260px, 36vh, 420px), auto);
}

/* The cells share subtle vertical rules via right borders.
   Horizontal rules come from the row below. */
.discipline {
  padding: clamp(32px, 5vh, 64px) clamp(28px, 3.4vw, 56px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(20px, 4vh, 48px);
  position: relative;
  min-height: 0;
}

/* Rightmost cell per row has no right-rule */
.discipline:nth-child(3n) { border-right: 0; }

.discipline__title {
  margin: 0;
  font-family: 'Galatea', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.92;
  color: var(--ink, #0f1a2e);
}

.discipline__text {
  margin: 0;
  font-family: 'Galatea', 'Times New Roman', serif;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #2a3651;
  max-width: 36ch;
}

/* Asymmetric spans and editorial scale shifts.
   Product + Experience get the big scale and the 2-column spans.
   Branding & Graphic + Art direction are the quieter, single-column cells.
   Row 1: Branding (span 1) + Product (span 2)
   Row 2: Experience (span 2) + Art (span 1) */

.discipline--a {
  grid-column: span 1;
}

.discipline--a .discipline__title {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
}

.discipline--a .discipline__text {
  max-width: 28ch;
}

.discipline--b {
  grid-column: span 2;
}

.discipline--b .discipline__title {
  font-size: clamp(3.4rem, 8vw, 7.4rem);
}

.discipline--b .discipline__text {
  align-self: flex-end;
  justify-self: flex-end;
  margin-left: auto;
  max-width: 36ch;
}

.discipline--c {
  grid-column: span 2;
}

.discipline--c .discipline__title {
  font-size: clamp(3.4rem, 8vw, 7.4rem);
}

.discipline--c .discipline__text {
  max-width: 36ch;
}

.discipline--d {
  grid-column: span 1;
}

.discipline--d .discipline__title {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  text-align: right;
  align-self: flex-end;
  margin-left: auto;
}

.discipline--d .discipline__text {
  max-width: 28ch;
  align-self: flex-end;
  margin-left: auto;
  text-align: right;
}

/* ============ CTA TO WORK ============ */
.work-cta {
  background: #ffffff;
  border-top: 1px solid var(--rule);
  color: var(--ink, #0f1a2e);
}

.work-cta__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(56px, 10vh, 120px) clamp(32px, 6vw, 96px);
  text-decoration: none;
  color: inherit;
  transition: background 260ms ease, color 260ms ease;
}

.work-cta__link:hover {
  background: var(--ink, #0f1a2e);
  color: var(--paper, #ffffff);
}

.work-cta__eyebrow {
  font-family: 'Galatea', 'Times New Roman', serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.work-cta__headline {
  font-family: 'Galatea', 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.015em;
}

.work-cta__arrow {
  font-family: 'Galatea', 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  transition: transform 300ms var(--studio-panel-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.work-cta__link:hover .work-cta__arrow {
  transform: translate(6px, -6px);
}

@media (max-width: 720px) {
  .work-cta__link {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "eyebrow arrow"
      "head    arrow";
    row-gap: 12px;
    padding: clamp(44px, 8vh, 72px) 20px;
  }
  .work-cta__eyebrow { grid-area: eyebrow; }
  .work-cta__headline { grid-area: head; }
  .work-cta__arrow { grid-area: arrow; align-self: center; }
}

/* ============ FOOTER: BIG NAME, DARK ============ */
.site-footer {
  background: var(--ink, #0f1a2e);
  color: var(--paper, #ffffff);
  padding: clamp(72px, 12vh, 140px) clamp(32px, 6vw, 96px) clamp(32px, 5vh, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vh, 56px);
}

.site-footer__name {
  margin: 0;
  font-family: 'Galatea', 'Times New Roman', serif;
  font-weight: 400;
  /* Scales to fit the horizontal space between the two 88px sidebars.
     Tuned so "Gonzalo Lusi Palombarini" never overflows on desktop. */
  font-size: clamp(1.8rem, 6vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--paper, #ffffff);
}

.site-footer__links {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: 'Galatea', 'Times New Roman', serif;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  line-height: 1;
}

.site-footer__links a {
  color: var(--paper, #ffffff);
  text-decoration: none;
  transition: opacity 200ms ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}

.site-footer__links a:hover {
  opacity: 0.6;
}

.site-footer__sep {
  color: rgba(255, 255, 255, 0.35);
}

.site-footer__meta {
  margin-top: clamp(32px, 6vh, 64px);
  padding-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: 'Galatea', 'Times New Roman', serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__meta a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}

.site-footer__meta a:hover { color: var(--paper, #ffffff); }

/* ============ TABLET ============ */
@media (max-width: 1100px) {
  .disciplines__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(clamp(240px, 34vh, 380px), auto);
  }

  .discipline:nth-child(3n) { border-right: 1px solid var(--rule); }
  .discipline:nth-child(2n) { border-right: 0; }

  .discipline--a,
  .discipline--d { grid-column: span 1; }
  .discipline--b,
  .discipline--c { grid-column: span 2; }

  .discipline--b .discipline__title,
  .discipline--c .discipline__title {
    font-size: clamp(3rem, 7.6vw, 5.6rem);
  }

  .discipline--a .discipline__title,
  .discipline--d .discipline__title {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
  }
}

/* ============ MOBILE ============ */
@media (max-width: 720px) {
  .disciplines {
    padding-top: clamp(48px, 8vh, 72px);
  }

  .disciplines__header {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px clamp(32px, 5vh, 48px);
    text-align: left;
  }

  .disciplines__intro {
    justify-self: start;
    text-align: left;
    max-width: none;
  }

  .disciplines__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .discipline,
  .discipline--a,
  .discipline--b,
  .discipline--c,
  .discipline--d {
    grid-column: span 1;
    border-right: 0 !important;
    padding: clamp(28px, 5vh, 44px) 20px;
    gap: 18px;
  }

  .discipline__title,
  .discipline--a .discipline__title,
  .discipline--d .discipline__title {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
    text-align: left;
    align-self: flex-start;
    margin-left: 0;
  }

  .discipline__text,
  .discipline--a .discipline__text,
  .discipline--d .discipline__text {
    align-self: flex-start;
    justify-self: flex-start;
    margin-left: 0;
    max-width: none;
  }

  .site-footer {
    padding: clamp(56px, 10vh, 96px) 20px clamp(28px, 4vh, 40px);
  }

  .site-footer__name {
    white-space: normal;
    font-size: clamp(2.2rem, 11vw, 4rem);
    line-height: 0.98;
  }

  .site-footer__meta {
    flex-direction: column;
    gap: 10px;
  }
}
