/* ==========================================================
   TINA FERNÁNDEZ — GLOBAL FOOTER / REDESIGN 03
   Three-column editorial footer.
========================================================== */

:root {
  --footer-black: #111;
  --footer-white: #f7f7f5;
  --footer-muted: rgba(247, 247, 245, .52);
  --footer-reveal-offset: 72px;
  --footer-pad: var(--padding, clamp(18px, 1.65vw, 28px));
  --footer-ease: cubic-bezier(.16, 1, .3, 1);
}

body > main,
.project-page {
  margin-bottom: 0 !important;
}

#globalFooter {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100svh;
  min-height: 700px;
  pointer-events: none;
}

.footer {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1;
  width: 100%;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  background: var(--footer-black);
  color: var(--footer-white);
  pointer-events: auto;
}

.footer-inner {
  --footer-mx: 0;
  --footer-my: 0;

  width: 100%;
  height: 100%;
  padding:
    clamp(112px, 13vh, 148px)
    var(--footer-pad)
    18px;

  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(26px, 3.2vh, 44px);

  transform: translate3d(0, var(--footer-reveal-offset), 0);
  will-change: transform;
}

/* ==========================================================
   THREE COLUMNS
========================================================== */

.footer-columns {
  min-height: 0;
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  column-gap: clamp(18px, 1.65vw, 28px);
  align-items: start;
}

/* ==========================================================
   COLUMN 01 — MANIFESTO
========================================================== */

.footer-manifesto {
  position: relative;
  min-width: 0;
  padding-top: 2px;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.footer-manifesto-line {
  display: block;
  width: fit-content;
  max-width: 100%;

  font-family: var(--font-sans);
  font-size: var(--type-section);
  line-height: .94;
  letter-spacing: var(--tracking-section);
  font-weight: 500;
  white-space: nowrap;

  transform-style: preserve-3d;
  will-change: transform, filter;

  transition:
    transform .8s var(--footer-ease),
    filter .65s var(--footer-ease),
    letter-spacing .8s var(--footer-ease);
}

.footer-manifesto-line-1 {
  margin-left: 0;
  transform:
    translate3d(calc(var(--footer-mx) * -7px), calc(var(--footer-my) * -4px), 0)
    rotateZ(-.35deg);
}

.footer-manifesto-line-2 {
  margin-left: clamp(.35rem, .7vw, .8rem);
  transform:
    translate3d(calc(var(--footer-mx) * 11px), calc(var(--footer-my) * 6px), 14px)
    rotateZ(.22deg);
}

.footer-manifesto-line-3 {
  margin-left: clamp(.7rem, 1.35vw, 1.7rem);
  transform:
    translate3d(calc(var(--footer-mx) * -15px), calc(var(--footer-my) * 8px), 24px)
    rotateZ(-.6deg);
}

.footer-manifesto-line-4 {
  margin-left: clamp(.45rem, .9vw, 1.1rem);
  transform:
    translate3d(calc(var(--footer-mx) * 17px), calc(var(--footer-my) * -7px), 30px)
    rotateZ(.38deg);
}

/* Blurred multicolour censor treatment */
.footer-blur-word {
  position: relative;
  color: transparent;
  background:
    linear-gradient(
      90deg,
      #ff4d8d 0%,
      #ff7a00 18%,
      #ffe600 36%,
      #49e84c 54%,
      #2dc8ff 72%,
      #8b5cff 88%,
      #ff4d8d 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  filter: blur(.11em) saturate(1.15);
  opacity: .96;
}

@media (hover: hover) and (pointer: fine) {
  .footer-manifesto:hover .footer-manifesto-line-1 {
    transform: translate3d(-8px, -4px, 18px) rotateZ(-.8deg);
  }

  .footer-manifesto:hover .footer-manifesto-line-2 {
    transform: translate3d(11px, 4px, 30px) rotateZ(.55deg);
  }

  .footer-manifesto:hover .footer-manifesto-line-3 {
    transform: translate3d(-13px, 7px, 40px) rotateZ(-1deg);
  }

  .footer-manifesto:hover .footer-manifesto-line-4 {
    transform: translate3d(15px, -6px, 50px) rotateZ(.7deg);
  }

  .footer-manifesto:hover .footer-blur-word {
    filter: blur(.075em) saturate(1.25);
  }
}

/* ==========================================================
   COLUMN 02 — INFO
========================================================== */

.footer-info-column {
  min-width: 0;
  padding-top: 5px;
}

.footer-about-grid {
  width: 100%;
  margin: 0;
  display: grid;
  gap: clamp(18px, 2.2vh, 28px);
}

.footer-about-row {
  display: grid;
  grid-template-columns: minmax(82px, .55fr) minmax(0, 1.45fr);
  gap: clamp(18px, 2vw, 32px);
  align-items: baseline;
}

.footer-about-row dt,
.footer-about-row dd {
  margin: 0;
  font-family: var(--font-sans);
}

.footer-about-row dt {
  color: var(--footer-muted);
  font-size: var(--type-meta);
  line-height: var(--leading-meta);
  letter-spacing: var(--tracking-meta);
  font-weight: 400;
}

.footer-about-row dd {
  color: var(--footer-white);
  font-size: var(--type-editorial);
  line-height: var(--leading-editorial);
  letter-spacing: var(--tracking-editorial);
  font-weight: 400;
}

/* ==========================================================
   COLUMN 03 — BUTTONS
========================================================== */

.footer-links-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2vh, 26px);
  padding-top: 3px;
}

.footer-contact-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  width: fit-content;
  max-width: 100%;
  min-height: 0;
  padding: 0 0 4px;

  color: var(--footer-white);
  font-family: var(--font-sans);
  font-size: var(--type-editorial);
  line-height: 1.02;
  letter-spacing: var(--tracking-editorial);
  font-weight: 400;
  text-decoration: none;

  transform-origin: left center;
  transition:
    transform .48s var(--footer-ease),
    letter-spacing .48s var(--footer-ease),
    opacity .25s ease;
}

/* Base underline */
.footer-contact-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

/* Reloading underline */
.footer-contact-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .48s var(--footer-ease);
}

.footer-contact-link > span:last-child {
  display: inline-block;
  transition: transform .48s var(--footer-ease);
}

.footer-contact-link.is-pending {
  opacity: .38;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .footer-contact-link:not(.is-pending):hover {
    transform: translate3d(6px, -1px, 0) rotate(-.35deg);
    letter-spacing: -.035em;
  }

  .footer-contact-link:not(.is-pending):hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .footer-contact-link:not(.is-pending):hover > span:last-child {
    transform: translate3d(3px, -2px, 0) rotate(-9deg);
  }
}

/* ==========================================================
   BOTTOM
========================================================== */

.footer-bottom {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: end;

  color: var(--footer-muted);
  font-family: var(--font-sans);
  font-size: var(--type-meta);
  line-height: var(--leading-meta);
  letter-spacing: var(--tracking-meta);
  font-weight: 400;
}

.footer-bottom p:nth-child(2) {
  justify-self: center;
}

.footer-bottom a {
  justify-self: end;
  color: inherit;
  text-decoration: none;
  transition:
    color .25s ease,
    transform .45s var(--footer-ease);
}

@media (hover: hover) and (pointer: fine) {
  .footer-bottom a:hover {
    color: var(--footer-white);
    transform: translate3d(0, -3px, 0);
  }
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {
  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(16px, 2vw, 24px);
  }

  .footer-manifesto-line {
    font-size: clamp(34px, 4vw, 48px);
  }

  .footer-about-row {
    grid-template-columns: minmax(68px, .52fr) minmax(0, 1.48fr);
    gap: 14px;
  }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 800px) {
  :root {
    --footer-reveal-offset: 48px;
  }

  #globalFooter,
  .footer {
    height: 100svh;
    min-height: 820px;
  }

  .footer-inner {
    padding:
      clamp(82px, 11vh, 98px)
      var(--footer-pad)
      14px;
    gap: 24px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    align-content: center;
    gap: clamp(34px, 5vh, 54px);
  }

  .footer-manifesto {
    max-width: 94vw;
  }

  .footer-manifesto-line {
    font-size: var(--type-section);
  }

  .footer-manifesto-line-2 {
    margin-left: 8vw;
  }

  .footer-manifesto-line-3 {
    margin-left: 24vw;
  }

  .footer-manifesto-line-4 {
    margin-left: 14vw;
  }


  .footer-about-grid {
    gap: 12px;
  }

  .footer-about-row {
    grid-template-columns: minmax(72px, .42fr) minmax(0, 1.58fr);
    gap: 14px;
  }

  .footer-links-column {
    gap: 10px;
  }

  .footer-contact-link {
    font-size: var(--type-editorial);
  }

  .footer-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .footer-bottom p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 800px) {
  .footer-portfolio-home .footer-inner {
    padding-top: 118px;
  }
}

/* ==========================================================
   PORTFOLIO FOOTER — SAME COMPOSITION AS RRSS
========================================================== */

.footer-portfolio .footer-inner {
  width: 100%;
  height: 100%;
  padding:
    clamp(92px, 10vh, 122px)
    var(--footer-page-pad)
    18px !important;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#globalFooter.is-portfolio-home,
.footer.footer-portfolio-home {
  height: max(100svh, 860px);
  min-height: 860px;
}

.footer-portfolio-home .footer-portfolio-editorial {
  flex: 0 0 auto;
  margin-bottom: clamp(42px, 6vh, 76px);
}

.footer-portfolio-home .footer-manifesto-line {
  font-size: clamp(52px, 5.1vw, 88px) !important;
  line-height: .86;
}

.footer-portfolio-home .footer-links-column,
.footer-portfolio-home .footer-info-column {
  padding-top: 2px;
}

.footer-portfolio-top {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 8vw, 140px);
  align-items: start;
  margin-bottom: clamp(90px, 14vh, 170px);
}

.footer-portfolio-kicker {
  max-width: 430px;
  margin: 0;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.3;
}

.footer-portfolio-cta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.35);
  color: var(--footer-white);
  font-size: clamp(70px, 10vw, 170px);
  line-height: .78;
  letter-spacing: -.085em;
  font-weight: 430;
  transition: padding-left .55s var(--footer-ease);
}

.footer-portfolio-cta:hover {
  padding-left: 20px;
}

.footer-portfolio-cta span:last-child {
  font-size: .18em;
}

.footer-portfolio-grid {
  margin-top: auto;
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 50px);
  border-top: 1px solid rgba(255,255,255,.18);
}

.footer-portfolio-grid > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-portfolio-label {
  margin-bottom: 12px;
  color: rgba(255,255,255,.38);
  font-size: 10px;
}

.footer-portfolio-grid p,
.footer-portfolio-grid a {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.footer-portfolio-grid a {
  width: fit-content;
}

.footer-portfolio-bottom {
  padding-top: clamp(58px, 8vh, 90px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  color: rgba(255,255,255,.44);
  font-size: 10px;
}

.footer-portfolio-bottom p {
  margin: 0;
}

.footer-portfolio-bottom p:nth-child(2) {
  text-align: center;
}

.footer-portfolio-bottom a {
  justify-self: end;
}

@media (max-width: 800px) {
  #globalFooter.is-portfolio-home,
  .footer-portfolio-home {
    height: max(100svh, 1160px);
    min-height: 1160px;
  }

  .footer-portfolio .footer-inner {
    padding-top: clamp(72px, 9vh, 92px) !important;
    padding-bottom: 16px !important;
  }

  .footer-portfolio-top {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: clamp(52px, 8vh, 76px);
  }

  .footer-portfolio-home .footer-portfolio-editorial {
    gap: 28px;
    margin-bottom: 42px;
  }

  .footer-portfolio-home .footer-manifesto-line {
    font-size: clamp(44px, 13vw, 64px) !important;
  }

  .footer-portfolio-home .footer-links-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px;
  }

  .footer-portfolio-cta {
    font-size: clamp(62px, 19vw, 96px);
  }

  .footer-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 34px;
  }

  .footer-portfolio-bottom {
    padding-top: clamp(38px, 6vh, 58px);
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-portfolio-bottom p:nth-child(2) {
    text-align: left;
  }

  .footer-portfolio-bottom a {
    justify-self: start;
    margin-top: 8px;
  }
}

/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {
  .footer-inner,
  .footer-manifesto-line,
  .footer-contact-link,
  .footer-contact-link::after,
  .footer-contact-link > span {
    transform: none !important;
    transition: none !important;
  }
}


/* ==========================================================
   REDESIGN 04 — TYPOGRAPHIC SCALE + TRUE THREE-COLUMN GRID
========================================================== */

@media (min-width: 801px) {
  .footer-columns {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--footer-pad);
  }

  .footer-manifesto,
  .footer-info-column,
  .footer-links-column {
    width: 100%;
    min-width: 0;
  }

  .footer-manifesto {
    justify-self: stretch;
    padding-left: 0;
  }

  .footer-manifesto-line {
    font-size: var(--type-section);
    line-height: var(--leading-section);
    letter-spacing: var(--tracking-section);
  }

  .footer-about-row dd,
  .footer-contact-link {
    font-size: var(--type-editorial);
    line-height: var(--leading-editorial);
    letter-spacing: var(--tracking-editorial);
  }

  .footer-about-row dt {
    font-size: var(--type-meta);
    line-height: var(--leading-meta);
    letter-spacing: var(--tracking-meta);
  }

  .footer-about-grid {
    gap: clamp(24px, 3vh, 38px);
  }

  .footer-links-column {
    gap: clamp(18px, 2.3vh, 30px);
  }
}

@media (max-width: 800px) {
  .footer-manifesto-line {
    font-size: var(--type-section);
  }

  .footer-about-row dd,
  .footer-contact-link {
    font-size: var(--type-editorial);
    line-height: var(--leading-editorial);
    letter-spacing: var(--tracking-editorial);
  }
}


/* ==========================================================
   REDESIGN 05 — STRONGER MANIFESTO + CONTACT MICRO-LABELS
========================================================== */

@media (min-width: 801px) {

  /*
     The first column is deliberately more expressive than the
     other two. It may breathe a little into the column gutter,
     but it never changes the underlying three-column grid.
  */
  .footer-manifesto {
    overflow: visible;
    z-index: 2;
  }

  .footer-manifesto-line {
    max-width: none;
    font-size: clamp(48px, 4.65vw, 78px);
    line-height: .91;
    letter-spacing: -.066em;
  }

  .footer-manifesto-line-2 {
    margin-left: clamp(.7rem, 1.35vw, 1.65rem);
  }

  .footer-manifesto-line-3 {
    margin-left: clamp(1.7rem, 3vw, 3.8rem);
  }

  .footer-manifesto-line-4 {
    margin-left: clamp(1rem, 2vw, 2.5rem);
  }

  /*
     Contact repeats the information architecture of column 02:
     a quiet micro-label + a large actionable value.
  */
  .footer-links-column {
    width: 100%;
    gap: clamp(22px, 2.7vh, 36px);
  }

  .footer-contact-row {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(82px, .55fr) minmax(0, 1.45fr);
    gap: clamp(18px, 2vw, 32px);
    align-items: baseline;
  }

  .footer-contact-label {
    color: var(--footer-muted);
    font-family: var(--font-sans);
    font-size: var(--type-meta);
    line-height: var(--leading-meta);
    letter-spacing: var(--tracking-meta);
    font-weight: 400;
  }

  .footer-contact-link {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 1100px) and (min-width: 801px) {
  .footer-manifesto-line {
    font-size: clamp(40px, 4.6vw, 58px);
  }

  .footer-contact-row {
    grid-template-columns: minmax(68px, .52fr) minmax(0, 1.48fr);
    gap: 14px;
  }
}

@media (max-width: 800px) {
  .footer-manifesto-line {
    font-size: clamp(38px, 11vw, 58px);
    line-height: .92;
    letter-spacing: -.06em;
  }

  .footer-contact-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(72px, .42fr) minmax(0, 1.58fr);
    gap: 14px;
    align-items: baseline;
  }

  .footer-contact-label {
    color: var(--footer-muted);
    font-family: var(--font-sans);
    font-size: var(--type-meta);
    line-height: var(--leading-meta);
    letter-spacing: var(--tracking-meta);
    font-weight: 400;
  }

  .footer-contact-link {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* ==========================================================
   REDESIGN 06 — OVERSIZED MANIFESTO + CONTACT TAXONOMY
   The manifesto deliberately owns a bespoke scale and may
   trespass slightly into the gutter between columns 01 and 02.
========================================================== */

:root {
  --footer-manifesto-size: clamp(68px, 5.65vw, 104px);
}

@media (min-width: 801px) {
  .footer-columns {
    overflow: visible;
  }

  .footer-manifesto {
    width: calc(100% + clamp(72px, 7vw, 132px));
    max-width: none;
    overflow: visible;
    z-index: 3;
    pointer-events: auto;
  }

  .footer-manifesto-line {
    max-width: none;
    font-size: var(--footer-manifesto-size) !important;
    line-height: .84 !important;
    letter-spacing: -.074em !important;
    font-weight: 500;
  }

  .footer-manifesto-line-1 {
    margin-left: 0;
  }

  .footer-manifesto-line-2 {
    margin-left: clamp(.7rem, 1.25vw, 1.55rem);
  }

  .footer-manifesto-line-3 {
    margin-left: clamp(2rem, 3.25vw, 4.2rem);
  }

  .footer-manifesto-line-4 {
    margin-left: clamp(1.15rem, 2vw, 2.65rem);
  }

  /* Keep the information architecture readable beneath the overlap. */
  .footer-info-column,
  .footer-links-column {
    position: relative;
    z-index: 4;
  }

  .footer-contact-row {
    grid-template-columns: minmax(92px, .55fr) minmax(0, 1.45fr);
  }

  .footer-contact-label {
    white-space: nowrap;
  }

  .footer-contact-link {
    white-space: nowrap;
  }
}

@media (min-width: 801px) and (max-width: 1180px) {
  :root {
    --footer-manifesto-size: clamp(54px, 5.45vw, 72px);
  }

  .footer-manifesto {
    width: calc(100% + clamp(36px, 4vw, 64px));
  }
}

@media (max-width: 800px) {
  :root {
    --footer-manifesto-size: clamp(42px, 12.5vw, 64px);
  }

  .footer-manifesto {
    width: 100%;
    max-width: 100%;
  }

  .footer-manifesto-line {
    max-width: none;
    font-size: var(--footer-manifesto-size) !important;
    line-height: .87 !important;
    letter-spacing: -.068em !important;
  }

  .footer-contact-label {
    white-space: nowrap;
  }
}


/* ==========================================================
   REDESIGN 07 — EXTREME MANIFESTO + BALANCED CONTACT GRID
   Authoritative footer refinements.
========================================================== */

@media (min-width: 801px) {

  /*
     Deliberately oversized, independent of text.css.
     The first column behaves as a graphic object and is allowed
     to trespass substantially into the second column.
  */
  :root {
    --footer-manifesto-size: clamp(96px, 8.3vw, 150px);
  }

  .footer-manifesto {
    width: calc(100% + clamp(180px, 14vw, 270px));
    max-width: none;
    overflow: visible;
    z-index: 3;
  }

  .footer-manifesto-line {
    max-width: none !important;
    font-size: var(--footer-manifesto-size) !important;
    line-height: .78 !important;
    letter-spacing: -.082em !important;
    white-space: nowrap;
  }

  .footer-manifesto-line-1 {
    margin-left: 0;
  }

  .footer-manifesto-line-2 {
    margin-left: clamp(18px, 1.8vw, 34px);
  }

  .footer-manifesto-line-3 {
    margin-left: clamp(58px, 5.2vw, 96px);
  }

  .footer-manifesto-line-4 {
    margin-left: clamp(28px, 2.8vw, 52px);
  }

  /*
     Keep column 02 readable above the intentional manifesto overlap.
  */
  .footer-info-column,
  .footer-links-column {
    position: relative;
    z-index: 5;
  }

  /*
     CONTACT / SOCIAL: reproduce the same label → value rhythm
     as Based → Madrid, Spain, but with a little more air because
     the right-hand values are interactive and visually heavier.
  */
  .footer-contact-row {
    width: 100%;
    display: grid;
    grid-template-columns: clamp(112px, 8vw, 148px) minmax(0, 1fr) !important;
    column-gap: clamp(24px, 2.2vw, 38px) !important;
    align-items: baseline;
  }

  .footer-contact-label {
    justify-self: start;
    white-space: nowrap;
  }

  .footer-contact-link {
    justify-self: start;
    width: fit-content;
    max-width: 100%;
  }
}

/* Keep the oversized intention on medium desktop without crushing columns 02/03. */
@media (min-width: 801px) and (max-width: 1180px) {
  :root {
    --footer-manifesto-size: clamp(72px, 7.5vw, 100px);
  }

  .footer-manifesto {
    width: calc(100% + clamp(90px, 10vw, 150px));
  }

  .footer-contact-row {
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr) !important;
    column-gap: 18px !important;
  }
}

@media (max-width: 800px) {
  :root {
    --footer-manifesto-size: clamp(48px, 14.5vw, 72px);
  }

  .footer-manifesto-line {
    font-size: var(--footer-manifesto-size) !important;
    line-height: .82 !important;
  }

  .footer-contact-row {
    grid-template-columns: minmax(86px, 30%) minmax(0, 1fr) !important;
    column-gap: 18px !important;
  }
}


/* ==========================================================
   REDESIGN 08 — COLUMN ORDER + GLOBAL ALIGNMENT
   01 manifesto / 02 contact / 03 profile information
========================================================== */

:root {
  /* Uses exactly the same horizontal inset as the rest of the site. */
  --footer-page-pad: var(--padding, clamp(18px, 1.65vw, 28px));
}

.footer-inner {
  padding-left: var(--footer-page-pad) !important;
  padding-right: var(--footer-page-pad) !important;
}

.footer-columns,
.footer-bottom {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* The manifesto starts exactly on the site's global left margin. */
.footer-manifesto {
  justify-self: start;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.footer-manifesto-line-1 {
  margin-left: 0 !important;
}

/* Bottom metadata respects the same left/right page inset. */
.footer-bottom {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.footer-bottom > :first-child {
  justify-self: start;
}

.footer-bottom > :last-child {
  justify-self: end;
}

/* ==========================================================
   DESKTOP — CONTACT SECOND / INFO THIRD
========================================================== */

@media (min-width: 801px) {

  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--footer-page-pad);
    align-items: start;
  }

  /* Contact keeps the same label/value rhythm as the info column. */
  .footer-contact-row,
  .footer-about-row {
    display: grid;
    grid-template-columns: clamp(112px, 8vw, 148px) minmax(0, 1fr) !important;
    column-gap: clamp(24px, 2.2vw, 38px) !important;
    align-items: baseline;
  }

  /* Third-column values sit on the right edge of their own column. */
  .footer-about-row dd {
    justify-self: end;
    text-align: right;
    max-width: 100%;
  }

  .footer-about-row dt {
    justify-self: start;
    text-align: left;
  }

  /* Contact values remain left aligned inside column 02 for usability. */
  .footer-contact-link {
    justify-self: start;
  }

  /* Keep the manifesto's intentional overspill, but anchor it to the true page margin. */
  .footer-manifesto {
    width: calc(100% + clamp(180px, 14vw, 270px));
    transform-origin: left top;
  }

  .footer-manifesto-line-1,
  .footer-manifesto-line-2,
  .footer-manifesto-line-3,
  .footer-manifesto-line-4 {
    margin-left: 0 !important;
  }
}

/* ==========================================================
   TABLET
========================================================== */

@media (min-width: 801px) and (max-width: 1180px) {
  .footer-contact-row,
  .footer-about-row {
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr) !important;
    column-gap: 18px !important;
  }
}

/* ==========================================================
   MOBILE
   Large values / buttons align right; micro-labels stay left.
========================================================== */

@media (max-width: 800px) {

  .footer-inner {
    padding-left: var(--footer-page-pad) !important;
    padding-right: var(--footer-page-pad) !important;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: clamp(34px, 5vh, 54px);
  }

  .footer-contact-row,
  .footer-about-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(86px, 30%) minmax(0, 1fr) !important;
    column-gap: 18px !important;
    align-items: baseline;
  }

  .footer-contact-label,
  .footer-about-row dt {
    justify-self: start;
    text-align: left;
  }

  .footer-contact-link,
  .footer-about-row dd {
    justify-self: end;
    text-align: right;
    max-width: 100%;
  }

  .footer-contact-link {
    display: inline-flex;
    justify-content: flex-end;
  }

  .footer-bottom {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ==========================================================
   PORTFOLIO HOME — FINAL MOBILE TWO-COLUMN FOOTER
========================================================== */
@media (max-width: 800px) {
  #globalFooter.is-portfolio-home,
  .footer.footer-portfolio-home {
    height: auto;
    min-height: 100svh;
  }

  .footer-portfolio-home .footer-inner {
    padding-top: clamp(204px, 24svh, 238px) !important;
    padding-bottom: 18px !important;
    height: auto;
    min-height: 100svh;
  }

  .footer-portfolio-home .footer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 18px;
    align-content: start;
  }

  .footer-portfolio-home .footer-manifesto {
    grid-column: 1 / -1;
  }

  .footer-portfolio-home .footer-manifesto-line {
    font-size: clamp(36px, 10.5vw, 50px) !important;
    line-height: .88;
  }

  .footer-portfolio-home .footer-links-column,
  .footer-portfolio-home .footer-info-column {
    grid-column: auto;
    min-width: 0;
  }

  .footer-portfolio-home .footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer-portfolio-home .footer-contact-row,
  .footer-portfolio-home .footer-about-row {
    display: block;
  }

  .footer-portfolio-home .footer-contact-row {
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(247, 247, 245, .22);
  }

  .footer-portfolio-home .footer-contact-link::before,
  .footer-portfolio-home .footer-contact-link::after {
    display: none;
  }

  .footer-portfolio-home .footer-contact-label,
  .footer-portfolio-home .footer-about-row dt {
    display: block;
    margin-bottom: 4px;
    font-size: 9px;
    text-align: left;
  }

  .footer-portfolio-home .footer-contact-link {
    justify-self: start;
    justify-content: flex-start;
    font-size: clamp(21px, 6.4vw, 30px);
    text-align: left;
  }

  .footer-portfolio-home .footer-about-row dd {
    justify-self: start;
    font-size: clamp(14px, 4vw, 18px);
    line-height: 1.08;
    text-align: left;
  }

  .footer-portfolio-home .footer-links-column .footer-contact-row:nth-child(5),
  .footer-portfolio-home .footer-links-column .footer-contact-row:nth-child(6) {
    display: none;
  }

  .footer-portfolio-home .footer-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: clamp(34px, 5svh, 54px);
    padding-top: 14px;
    border-top: 0;
    position: relative;
  }

  .footer-portfolio-home .footer-portfolio-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 1px;
    transform: translateX(-50%);
    background: rgba(247, 247, 245, .18);
    pointer-events: none;
  }

  .footer-portfolio-home .footer-portfolio-grid > div {
    display: none;
  }

  .footer-portfolio-home .footer-portfolio-grid > div:nth-child(1),
  .footer-portfolio-home .footer-portfolio-grid > div:nth-child(2) {
    display: flex;
  }

  .footer-portfolio-home .footer-portfolio-grid p {
    font-size: 10px;
    line-height: 1.35;
  }

  .footer-portfolio-home .footer-portfolio-label {
    margin-bottom: 5px;
    font-size: 8px;
  }

  .footer-portfolio-home .footer-portfolio-bottom {
    margin-top: clamp(46px, 7svh, 70px);
    padding-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    position: relative;
  }

  .footer-portfolio-home .footer-portfolio-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 1px;
    transform: translateX(-50%);
    background: rgba(247, 247, 245, .18);
    pointer-events: none;
  }

  .footer-portfolio-home .footer-portfolio-bottom p:first-child {
    justify-self: start;
  }

  .footer-portfolio-home .footer-portfolio-bottom p:nth-child(2) {
    display: none;
  }

  .footer-portfolio-home .footer-portfolio-bottom a {
    justify-self: end;
    margin-top: 0;
    text-align: right;
  }
}

/* ==========================================================
   MOBILE — EDITORIAL ROW SYSTEM
   01 Manifesto
   02 Labels / contact actions
   03 Base information / profile stack
   04 Credits
========================================================== */
@media (max-width: 800px) {
  .footer-portfolio-home .footer-inner {
    display: grid;
    min-height: 100svh;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto minmax(28px, 1fr) auto;
    column-gap: 18px;
    row-gap: 0;
  }

  /* Release the children of the former editorial wrapper onto
     the footer's shared two-column grid. */
  .footer-portfolio-home .footer-columns {
    display: contents;
  }

  .footer-portfolio-home .footer-manifesto {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: clamp(34px, 5svh, 48px) !important;
  }

  /* Row 02: every quiet label occupies column 01 and its large
     action occupies column 02. */
  .footer-portfolio-home .footer-links-column {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 10px;
    margin-bottom: clamp(38px, 5.5svh, 56px) !important;
  }

  .footer-portfolio-home .footer-contact-row {
    display: contents;
  }

  .footer-portfolio-home .footer-contact-label {
    grid-column: 1;
    align-self: baseline;
    justify-self: start;
    margin: 0;
    padding-top: 5px;
    text-align: left;
  }

  .footer-portfolio-home .footer-contact-link {
    grid-column: 2;
    align-self: baseline;
    justify-self: start;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 5px;
    font-size: clamp(22px, 6.5vw, 31px);
    text-align: left;
  }

  .footer-portfolio-home .footer-contact-link::before,
  .footer-portfolio-home .footer-contact-link::after {
    display: block;
  }

  .footer-portfolio-home .footer-links-column .footer-contact-row:nth-child(5),
  .footer-portfolio-home .footer-links-column .footer-contact-row:nth-child(6) {
    display: contents;
  }

  /* Row 03, column 01: location, languages and disciplines. */
  .footer-portfolio-home .footer-info-column {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
  }

  .footer-portfolio-home .footer-about-grid {
    gap: 14px;
  }

  .footer-portfolio-home .footer-about-row {
    display: block;
  }

  .footer-portfolio-home .footer-about-row dt,
  .footer-portfolio-home .footer-about-row dd {
    justify-self: start;
    text-align: left;
  }

  /* Row 03, column 02: Profile and Especially now form one
     vertical editorial stack instead of two horizontal cards. */
  .footer-portfolio-home .footer-portfolio-grid {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3.5svh, 34px);
    margin: 0 !important;
    padding: 0;
    border: 0;
  }

  .footer-portfolio-home .footer-portfolio-grid::before {
    display: none;
  }

  .footer-portfolio-home .footer-portfolio-grid > div:nth-child(1),
  .footer-portfolio-home .footer-portfolio-grid > div:nth-child(2) {
    display: flex;
  }

  .footer-portfolio-home .footer-portfolio-grid > div:nth-child(n+3) {
    display: none;
  }

  /* Flexible breathing room preserves the current footer height. */
  .footer-portfolio-home .footer-portfolio-bottom {
    grid-column: 1 / -1;
    grid-row: 5;
    align-self: end;
    margin-top: clamp(24px, 3.5svh, 36px) !important;
  }
}

/* Definitive iPhone override: the footer must not be a black fixed
   viewport behind the cream page, because Safari samples that layer. */
@media (max-width: 800px) {
  #globalFooter {
    height: auto !important;
    min-height: 100svh;
    background: #111;
    pointer-events: auto;
  }

  .footer,
  .footer.footer-portfolio-home {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    min-height: 100svh;
  }

  .footer .footer-inner {
    transform: none !important;
  }
}

/* ==========================================================
   MOBILE — ALIGN FOOTER CONTENT TO THE GLOBAL PAGE GRID
   Decorative rules can remain full-bleed; all readable content
   shares the exact horizontal inset used by Work and About.
========================================================== */
@media (max-width: 800px) {
  #globalFooter,
  .footer {
    --footer-page-pad: var(--padding, clamp(14px, 4vw, 20px));
  }

  .footer .footer-inner {
    width: 100%;
    margin-inline: 0 !important;
    padding-left: var(--footer-page-pad) !important;
    padding-right: var(--footer-page-pad) !important;
  }

  .footer .footer-columns,
  .footer .footer-manifesto,
  .footer .footer-links-column,
  .footer .footer-info-column,
  .footer .footer-portfolio-grid,
  .footer .footer-portfolio-bottom,
  .footer .footer-bottom {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ==========================================================
   MOBILE — FINAL COMPACT PORTFOLIO FOOTER
   Shared by index.html and project.html. This final block is
   intentionally last so older responsive experiments cannot
   override the mobile composition.
========================================================== */
@media (max-width: 800px) {
  #globalFooter.is-portfolio-home,
  .footer.footer-portfolio-home {
    min-height: 100svh;
  }

  .footer-portfolio-home .footer-inner {
    box-sizing: border-box;
    min-height: 100svh;
    height: auto;
    padding:
      clamp(154px, 19svh, 188px)
      var(--footer-page-pad)
      var(--footer-page-pad) !important;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .footer-portfolio-home .footer-columns {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    align-content: start;
  }

  .footer-portfolio-home .footer-manifesto {
    grid-column: 1 / -1;
    margin: 0 0 clamp(34px, 5svh, 48px) !important;
  }

  .footer-portfolio-home .footer-manifesto-line {
    font-size: clamp(28px, 8.2vw, 38px) !important;
    line-height: .88 !important;
    letter-spacing: -.055em;
  }

  .footer-portfolio-home .footer-links-column,
  .footer-portfolio-home .footer-info-column {
    align-self: start;
  }

  /* Base information leads; contact and social links follow. */
  .footer-portfolio-home .footer-info-column {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-portfolio-home .footer-links-column {
    grid-column: 2;
    grid-row: 2;
  }

  .footer-portfolio-home .footer-links-column {
    gap: 10px;
  }

  .footer-portfolio-home .footer-contact-link {
    font-size: clamp(20px, 5.9vw, 27px);
  }

  .footer-portfolio-home .footer-about-row dd {
    font-size: clamp(13px, 3.7vw, 17px);
  }

  .footer-portfolio-home .footer-portfolio-grid {
    flex: 0 0 auto;
    margin-top: clamp(28px, 4svh, 40px) !important;
    padding-top: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(247, 247, 245, .18);
  }

  .footer-portfolio-home .footer-portfolio-grid::before,
  .footer-portfolio-home .footer-portfolio-bottom::before {
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
  }

  .footer-portfolio-home .footer-portfolio-bottom {
    flex: 0 0 auto;
    width: 100%;
    margin-top: auto !important;
    padding-top: var(--footer-page-pad);
    padding-bottom: 0;
  }
}

/* Project pages do not load style.css, so their mobile footer must
   receive the same explicit page inset as the Index footer. */
@media (max-width: 800px) {
  .footer-portfolio-home .footer-inner {
    padding-left: var(--footer-page-pad) !important;
    padding-right: var(--footer-page-pad) !important;
    padding-bottom: var(--footer-page-pad) !important;
  }
}

/* Final mobile composition: manifesto / actions / information / credits. */
@media (max-width: 800px) {
  .footer-portfolio-home .footer-inner {
    display: grid;
    min-height: 100svh;
    padding-top: clamp(88px, 12svh, 108px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto minmax(28px, 1fr) auto;
    column-gap: 18px;
    row-gap: 0;
  }

  .footer-portfolio-home .footer-columns { display: contents; }

  .footer-portfolio-home .footer-manifesto {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: clamp(34px, 5svh, 48px) !important;
  }

  .footer-portfolio-home .footer-links-column {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 10px;
    margin-bottom: clamp(38px, 5.5svh, 56px) !important;
  }

  .footer-portfolio-home .footer-contact-row { display: contents; }

  .footer-portfolio-home .footer-contact-label {
    grid-column: 1;
    align-self: baseline;
    justify-self: start;
    margin: 0;
    padding-top: 5px;
    text-align: left;
  }

  .footer-portfolio-home .footer-contact-link {
    grid-column: 2;
    align-self: baseline;
    justify-self: start;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 5px;
    font-size: clamp(22px, 6.5vw, 31px);
    text-align: left;
  }

  .footer-portfolio-home .footer-contact-link::before,
  .footer-portfolio-home .footer-contact-link::after { display: block; }

  .footer-portfolio-home .footer-links-column .footer-contact-row:nth-child(5),
  .footer-portfolio-home .footer-links-column .footer-contact-row:nth-child(6) {
    display: contents;
  }

  .footer-portfolio-home .footer-info-column {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
  }

  .footer-portfolio-home .footer-about-grid { gap: 14px; }
  .footer-portfolio-home .footer-about-row { display: block; }

  .footer-portfolio-home .footer-about-row dt,
  .footer-portfolio-home .footer-about-row dd {
    justify-self: start;
    text-align: left;
  }

  .footer-portfolio-home .footer-portfolio-grid {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3.5svh, 34px);
    margin: 0 !important;
    padding: 0;
    border: 0;
  }

  .footer-portfolio-home .footer-portfolio-grid::before { display: none; }
  .footer-portfolio-home .footer-portfolio-grid > div:nth-child(1),
  .footer-portfolio-home .footer-portfolio-grid > div:nth-child(2) { display: flex; }
  .footer-portfolio-home .footer-portfolio-grid > div:nth-child(n+3) { display: none; }

  .footer-portfolio-home .footer-portfolio-bottom {
    grid-column: 1 / -1;
    grid-row: 5;
    align-self: end;
    margin-top: clamp(24px, 3.5svh, 36px) !important;
  }
}
