@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo/Archivo-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo/Archivo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo/Archivo-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo/Archivo-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gazzetta";
  src: url("assets/fonts/gazzetta/TipoType - Gazzetta Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gazzetta";
  src: url("assets/fonts/gazzetta/TipoType - Gazzetta Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --warm: #fbf8f1;
  --warm-2: #f6f2e9;
  --ink: #222722;
  --muted: #676d66;
  --pine: #043513;
  --moss: #3c8e4a;
  --orange: #ea5f00;
  --line: #d9ddd6;
  --line-dark: rgba(4, 53, 19, 0.22);
  --container: min(100% - 64px, 1360px);
  --header: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--moss); color: var(--white); }

.skip-link {
  position: fixed;
  z-index: 300;
  top: -48px;
  left: 16px;
  padding: 10px 14px;
  background: var(--pine);
  color: var(--white);
}
.skip-link:focus { top: 14px; }

.container { width: var(--container); margin-inline: auto; }
.section-space { padding: clamp(100px, 10vw, 156px) 0; }
.section-grid {
  display: grid;
  grid-template-columns: minmax(96px, 1.35fr) minmax(0, 10.65fr);
  gap: clamp(32px, 4.5vw, 72px);
}
.section-index,
.meta-label,
.eyebrow {
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.section-index { color: var(--muted); padding-top: 7px; }
.eyebrow { color: var(--moss); }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  backdrop-filter: blur(10px);
}
.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 248px; height: auto; }
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.8vw, 42px);
  font-size: 10px;
  letter-spacing: 0.13em;
}
.desktop-nav a { position: relative; padding: 8px 0; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transition: right 0.35s var(--ease);
}
.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after { right: 0; }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px 0 8px 14px;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.13em;
  cursor: pointer;
}
.menu-toggle i { width: 17px; height: 1px; background: currentColor; display: block; }

.mobile-menu {
  overflow: hidden;
  position: fixed;
  z-index: 90;
  inset: 0;
  background: var(--white);
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu-inner {
  min-height: 100%;
  padding: calc(var(--header) + 34px) 0 30px;
  display: flex;
  flex-direction: column;
}
.mobile-menu nav { display: grid; margin-top: 30px; }
.mobile-menu nav a {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu nav span { font-size: 10px; color: var(--muted); }
.mobile-menu nav strong {
  font-family: "Gazzetta", serif;
  font-weight: 400;
  font-size: clamp(32px, 9vw, 54px);
  line-height: 0.9;
}
.mobile-menu p { margin: auto 0 0; max-width: 34ch; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }

.hero {
  position: relative;
  padding: calc(var(--header) + 54px) 0 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  right: -170px;
  top: 40px;
  width: 430px;
  height: 500px;
  background: url("assets/graphics/tree-rings-green.webp") center/contain no-repeat;
  opacity: 0.025;
}
.hero-inner { position: relative; z-index: 1; }
.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(42px, 6vw, 64px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1280px;
}
.hero-copy h1,
.display-title,
.section-heading h2,
.wheel-copy h3,
.studio-copy h2,
.portfolio-title,
.portfolio-cta h2,
.contact-copy h2 {
  font-family: "Gazzetta", serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.hero-copy h1 {
  margin: 14px 0 0;
  max-width: 20ch;
  font-size: clamp(58px, 6.7vw, 102px);
  line-height: 0.88;
}
.hero-copy p {
  max-width: 72ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--pine);
  background: var(--pine);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}
.button:hover,
.button:focus-visible { background: transparent; color: var(--pine); }
.button--ghost { background: transparent; color: var(--pine); }
.button--ghost:hover,
.button--ghost:focus-visible { background: var(--pine); color: var(--white); }
.hero-media { margin: 0; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.hero-media img {
  width: 100%;
  aspect-ratio: 2.2;
  object-fit: cover;
  background: var(--warm-2);
}
.hero-media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 32px 12px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 58px;
  border-top: 1px solid var(--line-dark);
}
.hero-principles article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 3px 14px;
  min-height: 118px;
  padding: 20px 26px 22px 0;
  border-right: 1px solid var(--line);
}
.hero-principles article + article { padding-left: 26px; }
.hero-principles article:last-child { border-right: 0; }
.hero-principles span { grid-row: 1 / 3; color: var(--moss); font-size: 10px; }
.hero-principles strong { font-size: 11px; letter-spacing: 0.12em; }
.hero-principles p { margin: 2px 0 0; color: var(--muted); font-size: 13px; max-width: 33ch; }

.statement { background: var(--warm); border-bottom: 1px solid var(--line); }
.display-title {
  margin: 0;
  max-width: 11.5ch;
  font-size: 100px;
  line-height: 0.91;
}
.display-title em,
.studio-copy em { color: #043513; font-style: normal; }
.statement-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 76px);
  margin-top: 42px;
  max-width: 960px;
}
.statement-copy p { margin: 0; color: var(--muted); font-size: 16px; max-width: 40ch; }
.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 64px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.impact-strip article {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 132px;
  padding: 18px 24px 18px 0;
  border-right: 1px solid var(--line);
}
.impact-strip article + article { padding-left: 24px; }
.impact-strip article:last-child { border-right: 0; }
.impact-strip img { width: 88px; height: 88px; object-fit: contain; }
.impact-strip div { display: grid; gap: 5px; }
.impact-strip strong { font-size: 10px; letter-spacing: 0.12em; }
.impact-strip span { color: var(--muted); font-size: 13px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line-dark);
}
.section-heading h2 {
  margin: 0;
  font-size: 100px;
  line-height: 0.92;
}
.section-heading p { max-width: 39ch; margin: 0; color: var(--muted); font-size: 14px; }

.projects { background: var(--white); }
.projects-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 42px 28px;
  margin-top: 42px;
}
.project--large {
  grid-row: 1 / span 2;
  min-height: 0;
}
.project a { display: block; }
.project--large > a {
  display: flex;
  height: 100%;
  flex-direction: column;
}
.project--large .project-image {
  flex: 1;
  min-height: 0;
}
.project-image { overflow: hidden; background: var(--warm-2); }
.project-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1.37;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.project--large .project-image img {
  height: 100%;
  aspect-ratio: auto;
}
.project-image--technical img { object-fit: contain; padding: 7%; }
.project:hover .project-image img { transform: scale(1.018); }
.project-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 18px;
  align-items: end;
  padding: 13px 0 12px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.project-caption div { display: grid; gap: 3px; }
.project-caption strong { font-family: "Archivo", sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; }
.project-caption > span { color: var(--muted); }

.services { background: var(--warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(38px, 5vw, 76px);
  margin-top: 44px;
  align-items: start;
}
.service-media {
  position: sticky;
  top: calc(var(--header) + 24px);
  margin: 0;
}
.service-media img {
  width: 100%;
  aspect-ratio: 0.88;
  object-fit: cover;
  transition: opacity 0.28s ease, transform 0.45s var(--ease);
}
.service-media.is-changing img { opacity: 0.32; transform: scale(0.985); }
.service-media figcaption {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
}
.service-media figcaption span { color: var(--muted); font-size: 9px; letter-spacing: 0.1em; }
.service-media figcaption strong { font-size: 12px; letter-spacing: 0.07em; font-weight: 500; }
.service-list { border-top: 1px solid var(--line-dark); }
.service-item { border-bottom: 1px solid var(--line-dark); }
.service-item > button {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: baseline;
  padding: 18px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.service-item > button span { color: var(--muted); font-size: 10.5px; }
.service-item > button strong { font-size: clamp(20px, 2vw, 27px); font-weight: 500; letter-spacing: 0.03em; }
.service-item > button i { justify-self: end; font-style: normal; font-size: 26px; font-weight: 300; line-height: 1; }
.service-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.service-panel.is-open { grid-template-rows: 1fr; }
.service-panel-inner { overflow: hidden; min-height: 0; padding: 0 0 0 56px; }
.service-panel.is-open .service-panel-inner { padding-bottom: 24px; }
.service-panel p { margin: 0 0 12px; max-width: 62ch; color: var(--muted); font-size: 18px; line-height: 1.65; }
.service-panel ul {
  margin: 20px 0 0;
  padding-left: 19px;
  display: grid;
  gap: 8px;
  color: #043513;
  font-size: 16px;
  line-height: 1.5;
}


.system { position: relative; background: var(--white); }
.system-intro { padding-top: clamp(100px, 10vw, 150px); }
.system-scroll { height: 640vh; }
.system-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header) + 28px) 0 28px;
  overflow: hidden;
}
.wheel-orb { position: relative; width: min(95vw, 1180px, calc(100svh - var(--header) - 118px)); aspect-ratio: 1; height: auto; margin-inline: auto; }
.wheel-orb-seq {
  position: absolute;
  left: -260px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-rows: repeat(12, 1fr);
  gap: 5px;
  height: 38%;
  z-index: 4;
  opacity: 0.55;
}
.wheel-orb-seq i {
  display: block;
  width: 1px;
  height: 1px;
  align-self: center;
  background: rgba(4, 53, 19, 0.16);
  transition: width 0.35s ease, background 0.35s ease;
}
.wheel-orb-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  aspect-ratio: 1;
  transform-origin: center;
  transition: transform 0.8s var(--ease);
}
.wheel-orb-node {
  position: absolute;
  width: 132px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.wheel-orb-node-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  transform-origin: center;
  transition: transform 0.8s var(--ease);
}
.wheel-orb-node-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(4, 53, 19, 0.16);
  transition: transform 0.45s var(--ease), box-shadow 0.32s ease, background 0.32s ease, border-color 0.32s ease;
}
.wheel-orb-node-icon svg { width: 28px; height: 28px; }
.wheel-orb-node-label {
  max-width: 12ch;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  color: rgba(4, 53, 19, 0.55);
  transition: color 0.3s ease;
}
.wheel-orb-node:focus-visible { outline: 1px solid var(--orange); outline-offset: 6px; border-radius: 50%; }
.wheel-orb-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 50%;
  aspect-ratio: auto;
  border-radius: 50%;
  background: var(--warm);
  border: 1px solid rgba(4, 53, 19, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(28px, 3.2vw, 46px);
  z-index: 5;
}
.wheel-orb-cat { max-width: 60%; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; line-height: 1.3; text-transform: uppercase; text-wrap: balance; }
.wheel-orb-title { margin: 10px 0 10px; font-family: "Gazzetta", serif; font-weight: 400; font-size: clamp(26px, 2.8vw, 34px); line-height: 1; letter-spacing: -0.01em; color: var(--pine); }
.wheel-orb-text { margin: 0; max-width: 23ch; font-size: 15px; line-height: 1.55; color: rgba(4, 53, 19, 0.74); }
.wheel-orb-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; width: 66%; margin-top: 18px; font-size: 10.5px; font-weight: 600; }
.wheel-orb-progress i { height: 1px; background: linear-gradient(90deg, var(--orange), rgba(4, 53, 19, 0.12)); }
.wheel-orb-progress span { color: rgba(4, 53, 19, 0.45); }
.wheel-orb-hint {
  position: absolute;
  right: 0;
  bottom: 3%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(4, 53, 19, 0.45);
}
.wheel-orb-hint span { width: 40px; height: 1px; background: rgba(4, 53, 19, 0.3); }
.wheel-mobile { display: none; }
.wheel-mobile-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid var(--line-dark);
}
.wheel-mobile-item .badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.wheel-mobile-item .eyebrow { display: block; margin-bottom: 4px; }
.wheel-mobile-item h3 { margin: 2px 0 0; font-size: 17px; font-weight: 500; letter-spacing: 0.02em; }
.wheel-mobile-item p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.method { background: var(--warm); border-top: 1px solid var(--line); }
.method-list { margin-top: 42px; border-top: 1px solid var(--line-dark); }
.method-list article {
  display: grid;
  grid-template-columns: 68px minmax(240px, 4fr) 6fr;
  gap: 24px;
  align-items: baseline;
  padding: 25px 0;
  border-bottom: 1px solid var(--line-dark);
}
.method-list article > span { color: var(--moss); font-size: 10px; }
.method-list h3 { margin: 0; font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; letter-spacing: 0.03em; }
.method-list p { margin: 0; color: var(--muted); font-size: 14px; max-width: 62ch; }

.studio { background: var(--white); border-top: 1px solid var(--line); }
.studio-layout {
  display: grid;
  grid-template-columns: minmax(96px, 1.35fr) 5.65fr 5fr;
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
}
.studio-copy h2 {
  margin: 0 0 26px;
  font-size: 100px;
  line-height: 0.9;
}
.studio-copy p { margin: 0 0 14px; max-width: 53ch; color: var(--muted); }
.text-link {
  display: inline-flex;
  justify-content: space-between;
  gap: 38px;
  min-width: 230px;
  margin-top: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  letter-spacing: 0.11em;
}
.text-link span { transition: transform 0.3s var(--ease); }
.text-link:hover span { transform: translate(4px, -4px); }
.studio-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--warm);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.studio-logo { position: relative; z-index: 2; width: 70%; height: 70%; object-fit: contain; }
.studio-rings { position: absolute; right: -70px; bottom: -100px; width: 76%; opacity: 0.15; }

.contact {
  padding: clamp(90px, 9vw, 132px) 0;
  background: var(--pine);
  color: var(--white);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(96px, 1.35fr) 4.35fr 6.3fr;
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}
.contact .section-index { color: rgba(255,255,255,0.55); }
.contact-copy h2 {
  margin: 0 0 20px;
  font-size: 100px;
  line-height: 0.9;
}
.contact-copy p { margin: 0 0 24px; max-width: 34ch; color: rgba(255,255,255,0.72); }
.contact-copy > span { font-size: 10px; letter-spacing: 0.12em; color: rgba(255,255,255,0.58); }
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 22px;
}
.contact-form label { display: grid; gap: 8px; }
.contact-form label span { font-size: 9px; letter-spacing: 0.11em; }
.form-full { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0 0 11px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.44);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
}
.contact-form select option { color: var(--ink); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.45); }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--white); box-shadow: 0 1px 0 var(--white); }
.contact-form button {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--pine);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.11em;
  transition: background 0.25s ease, color 0.25s ease;
}
.contact-form button:hover { background: transparent; color: var(--white); }

.site-footer { padding: 36px 0; background: var(--white); border-top: 1px solid var(--line); }
.footer-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 28px;
  align-items: start;
}
.footer-layout > img {
  width: 245px;
  height: 94px;
  object-fit: cover;
  object-position: center;
}
.footer-layout nav { display: grid; gap: 7px; font-size: 9px; letter-spacing: 0.1em; }
.footer-layout > div { display: grid; justify-items: end; gap: 6px; color: var(--muted); font-size: 9px; letter-spacing: 0.08em; text-align: right; }
.footer-credit {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 5px;
  color: var(--ink);
  white-space: nowrap;
}
.footer-credit-link {
  display: inline-flex;
  align-items: center;
  border-radius: 2px;
}
.footer-credit-link img {
  display: block;
  width: 100px;
  height: auto;
  opacity: 0.86;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-credit-link:hover img,
.footer-credit-link:focus-visible img {
  opacity: 1;
  transform: translateY(-1px);
}
.footer-credit-link:focus-visible {
  outline: 1px solid var(--orange);
  outline-offset: 4px;
}

.reveal,
.reveal-media {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible,
.reveal-media.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  :root { --container: min(100% - 40px, 1360px); }
  .section-heading h2, .display-title, .studio-copy h2, .contact-copy h2 { font-size: clamp(66px, 10vw, 100px); }
  .hero-layout { grid-template-columns: 5fr 7fr; gap: 44px; }
  .hero-copy h1 { font-size: clamp(52px, 7vw, 82px); }
  .services-layout { grid-template-columns: 1fr; }
  .service-media { position: relative; top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .service-media img { aspect-ratio: 1.45; }
  .service-media figcaption { padding: 20px; border: 1px solid var(--line); border-left: 0; }
  .wheel-orb { width: min(90vw, 900px, calc(100svh - var(--header) - 100px)); }
  .studio-layout { grid-template-columns: 100px 1fr 0.9fr; }
  .contact-layout { grid-template-columns: 100px 0.8fr 1.2fr; }
}

@media (max-width: 900px) {
  :root { --header: 68px; --container: min(100% - 32px, 1360px); }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
@media (max-width: 900px) {
  .brand img { width: auto !important; height: 150px; }
}
  .header-row { align-items: center; padding-top: 0; }
  .section-grid,
  .studio-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 16px; }
  .section-index { padding: 0; text-align: center; }
  .section-heading { display: block; text-align: center; }
  .section-heading p { margin: 14px auto 0; max-width: 46ch; }
  .statement-content { text-align: center; }
  .statement-content .statement-copy p { margin-inline: auto; }
  .studio-copy { text-align: center; }
  .studio-copy .text-link { margin-inline: auto; }
  .services-layout { margin-top: 34px; }
  .method-list { margin-top: 34px; }
  .contact-copy { text-align: center; }
  .contact-copy > span { display: block; }
  .wheel-copy { text-align: center; margin-inline: auto; }
  .wheel-copy p { margin-inline: auto; }
  .wheel-counter { justify-content: center; display: flex; }
  .method-list article { justify-items: start; text-align: left; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 13ch; }
  .hero-media img { aspect-ratio: 1.35; }
  .hero-media figcaption { padding-inline: 16px; }
  .hero-principles { grid-template-columns: 1fr; }
  .hero-principles article,
  .hero-principles article + article { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-principles article:last-child { border-bottom: 0; }
  .statement-copy,
  .impact-strip,
  .projects-grid { grid-template-columns: 1fr; }
  .impact-strip article,
  .impact-strip article + article { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .impact-strip article:last-child { border-bottom: 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 14px; }
  .project--large { grid-row: auto; }
  .project--large > a { display: block; height: auto; }
  .project--large .project-image { flex: none; }
  .project--large .project-image img,
  .project-image img { aspect-ratio: 1.35; }
  .system-intro { padding-top: 100px; }
  .system-scroll { height: 480vh; }
  .wheel-orb { width: min(94vw, 820px, calc(100svh - var(--header) - 100px)); }
  .wheel-orb-node { width: 112px; }
  .wheel-orb-node-icon { width: 56px; height: 56px; }
  .wheel-orb-node-icon svg { width: 24px; height: 24px; }
  .wheel-orb-node-label { font-size: 10px; max-width: 10ch; }
  .wheel-orb-center { width: 46%; height: 46%; padding: 22px; }
  .wheel-orb-title { font-size: clamp(21px, 2.8vw, 26px); margin: 10px 0 8px; }
  .wheel-orb-text { font-size: 12.5px; max-width: 20ch; }
  .method-list article { grid-template-columns: 48px 1fr; gap: 16px; }
  .method-list p { grid-column: 2; }
  .studio-visual { min-height: 0; }
  .section-index { margin-bottom: 18px; }
  .contact-form { margin-top: 10px; }
  .footer-layout { grid-template-columns: 1fr; text-align: center; }
  .footer-layout { justify-items: center; }
  .footer-layout nav { justify-items: center; }
  .footer-layout > div { justify-items: center; text-align: center; }
  .footer-credit { justify-content: center; }
}

@media (max-width: 640px) {
  :root { --container: min(100% - 24px, 1360px); }
  .section-grid { gap: 14px; }
  .section-space { padding: 86px 0; }
  .hero-meta { display: grid; gap: 5px; margin-bottom: 24px; }
  .hero-copy h1 { font-size: clamp(44px, 15vw, 66px); }
  .display-title,
  .section-heading h2,
  .studio-copy h2,
  .contact-copy h2 { font-size: clamp(50px, 15vw, 68px); }
  .hero-meta { display: none; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-media figcaption { display: grid; gap: 4px; }
  .project-caption { grid-template-columns: 1fr 18px; }
  .project-caption > span:nth-child(2) { display: none; }
  .service-media { grid-template-columns: 1fr; }
  .service-media figcaption { border-left: 1px solid var(--line); border-top: 0; }
  .service-item > button { grid-template-columns: 32px 1fr 20px; }
  .service-item > button strong { font-size: 14px; }
  .service-panel-inner { padding-left: 0; }
  .method-list article { grid-template-columns: 38px 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .form-full,
  .contact-form button { grid-column: auto; }
  .section-index { margin-bottom: 14px; font-size: 10px; }
  .section-heading p { font-size: 15px; line-height: 1.6; }
  .hero-principles article p { font-size: 15px !important; }
  .service-item > button { padding: 20px 0; }
  .service-panel p { font-size: 16px; }
  .service-panel ul { font-size: 15px; }
  .faq-item > button span { font-size: 16px; }
  .faq-panel-inner p { font-size: 15px; }
  .talks-year { font-size: 22px; }
  .talks-list li strong { font-size: 17px; }
  .talks-list li div > span { font-size: 14px; }
  .system-scroll { height: 400vh; }
  .wheel-orb { width: min(96vw, 460px, calc(100svh - var(--header) - 115px)); }
  .wheel-orb-node { width: 88px; }
  .wheel-orb-node-icon { width: 46px; height: 46px; }
  .wheel-orb-node-icon svg { width: 20px; height: 20px; }
  .wheel-orb-node-label { font-size: 8.5px; max-width: 9ch; }
  .wheel-orb-center { width: 50%; height: 50%; padding: 14px; }
  .wheel-orb-cat { font-size: 9.5px; }
  .wheel-orb-title { font-size: clamp(17px, 4.6vw, 21px); margin: 7px 0 6px; }
  .wheel-orb-text { font-size: 11px; max-width: 18ch; line-height: 1.45; }
  .wheel-orb-progress { width: 80%; margin-top: 12px; }
  .wheel-orb-hint { display: none; }
}

.hero-copy .hero-lead {
  margin: 23px 0 0;
  max-width: 56ch;
  color: var(--ink);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 500;
  line-height: 1.35;
}
.hero-copy .hero-lead + p { margin-top: 15px; }
.display-title { max-width: 760px; }
.display-title span,
.display-title em { display: block; }
.display-title em { margin-top: 4px; }

@media (max-width: 640px) {
  .hero-copy .hero-lead { font-size: 17px; }
  .display-title { max-width: 100%; }
}

.sellos { background: var(--white); border-top: 1px solid var(--line); }
.sellos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 44px; width: 100%; }
.sellos-grid article { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.sellos-grid img { width: 140px; height: 140px; object-fit: contain; }
.sellos-grid p { margin: 0; max-width: 22ch; font-size: 14px; font-weight: 500; color: var(--pine); }

.impact-block { background: var(--warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.impact-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 26px; margin-top: 44px; padding: 0; }
.impact-numbers strong { display: block; font-family: "Gazzetta", serif; font-weight: 400; font-size: clamp(44px, 4.8vw, 66px); line-height: 1.05; color: var(--moss); }
.impact-numbers span { display: block; margin-top: 12px; color: var(--muted); font-size: 19px; line-height: 1.5; max-width: 26ch; }
.impact-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }

.testimonial-band { padding: clamp(90px, 9vw, 132px) 0; background: var(--pine); color: var(--white); text-align: center; }
.testimonial-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.testimonial-band .section-index { padding: 0; margin-bottom: 22px; }
.testimonial-mark { width: 58px; height: auto; margin: 0 auto 30px; filter: brightness(0) invert(1); opacity: 0.9; }
.testimonial-band blockquote { margin: 0; font-family: "Gazzetta", serif; font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.35; letter-spacing: 0.01em; }
.testimonial-name { margin: 32px 0 0; font-size: 14px; font-weight: 600; letter-spacing: 0.03em; }
.testimonial-loc { margin: 6px 0 0; font-size: 13px; color: #7fbf8d; letter-spacing: 0.03em; }

.faq { background: var(--warm); border-top: 1px solid var(--line); }
.faq-heading { max-width: 640px; margin: 0 auto 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.faq-heading h2 { margin: 4px 0 0; font-size: 100px; line-height: 0.92; }
.faq-list { max-width: none; margin: 0; border-top: none; }
.faq-item:first-child { border-top: 1px solid var(--line-dark); }
.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-item > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.faq-item > button span { font-size: 18px; font-weight: 500; letter-spacing: 0.01em; }
.faq-item > button i { font-style: normal; font-size: 24px; font-weight: 300; line-height: 1; color: var(--muted); }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-panel.is-open { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; min-height: 0; }
.faq-panel-inner p { margin: 0; padding: 0 4px 24px; max-width: 74ch; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

.calculator { background: var(--white); border-top: 1px solid var(--line); }
.calculator-heading { max-width: 640px; margin: 0 auto 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.calculator-heading h2 { margin: 4px 0 0; font-size: 100px; line-height: 0.92; }
.calculator-panel { display: grid; grid-template-columns: 1.1fr 0.9fr; border: 1px solid var(--line-dark); max-width: 1080px; margin: 0 auto; }
.calculator-inputs { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 30px; background: var(--warm); }
.calculator-field { display: flex; flex-direction: column; gap: 10px; }
.calculator-field-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.calculator-field-row strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.calculator-field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.calculator-field input[type="range"] { width: 100%; accent-color: var(--moss); }
.calculator-levels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.calculator-levels button { font-size: 12.5px; font-weight: 600; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-dark); background: transparent; color: var(--ink); cursor: pointer; transition: all 0.25s ease; }
.calculator-levels button.is-active { background: var(--pine); color: var(--white); border-color: var(--pine); }
.calculator-levels button i { font-style: normal; margin-left: 7px; opacity: 0.55; }
.calculator-levels button.is-active i { opacity: 0.8; }
.calculator-sublevels { display: none; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-left: 16px; border-left: 1px solid var(--line-dark); }
.calculator-sublevels.is-open { display: flex; }
.calculator-sublevels button { font-size: 11.5px; font-weight: 600; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: all 0.25s ease; }
.calculator-sublevels button:hover { border-color: var(--line-dark); color: var(--ink); }
.calculator-sublevels button.is-active { border-color: var(--moss); color: var(--pine); background: rgba(60, 142, 74, 0.1); }
.calculator-sublevels button em { font-style: normal; margin-left: 6px; opacity: 0.65; }
.calculator-result { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 24px; background: var(--pine); color: var(--white); }
.calculator-result div { display: flex; flex-direction: column; gap: 4px; }
.calculator-result span { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #7fbf8d; }
.calculator-result strong { font-family: "Gazzetta", serif; font-weight: 400; font-size: clamp(30px, 3.4vw, 40px); line-height: 1; }
.calculator-cta { display: inline-flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 6px; padding: 13px 22px; background: var(--white); color: var(--pine); font-size: 10px; letter-spacing: 0.11em; align-self: flex-start; }
.calculator-cta span { transition: transform 0.3s var(--ease); }
.calculator-cta:hover span { transform: translate(4px, -4px); }
.calculator-note { margin: 18px auto 0; max-width: 1080px; color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) {
  .faq-heading h2, .calculator-heading h2 { font-size: clamp(60px, 9vw, 100px); }
}
@media (max-width: 1100px) {
  .impact-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Con menos columnas las cifras se centran para que no queden colgando. */
  .impact-numbers article { text-align: center; }
  .impact-numbers span { margin-inline: auto; }
}
@media (max-width: 900px) {
  .calculator-panel { grid-template-columns: 1fr; }
  .calculator-cta { align-self: stretch; justify-content: space-between; }
}
@media (max-width: 640px) {
  .faq-heading h2, .calculator-heading h2 { font-size: clamp(50px, 15vw, 68px); }
  .sellos-grid { grid-template-columns: 1fr; gap: 30px; }
  .impact-numbers { grid-template-columns: 1fr; gap: 26px; padding: 32px 0; }
}

/* ── Escala tipográfica y proporciones ── */
.hero-principles article strong { font-size: 15px; }
.hero-principles article p { font-size: 15px; line-height: 1.55; }
.impact-strip article img { width: 88px; height: 88px; }
.impact-strip article strong { font-size: 15px; }
.impact-strip article span { font-size: 15px; }
.system-scroll[data-wheel-interactive] { height: auto; }
.system-scroll[data-wheel-interactive] .system-sticky { position: relative; top: 0; height: auto; min-height: 0; padding: 24px 0 40px; overflow: visible; }
.wheel-orb-node { cursor: pointer; }
.sellos .section-grid { justify-items: center; }
.sellos-grid { max-width: 1100px; margin-inline: auto; justify-items: center; }
.sellos-grid img { width: 168px; height: 168px; }
.studio-visual { display: flex; align-items: center; justify-content: center; background: transparent; border: none; padding: 0; overflow: visible; min-height: 0; }
.studio-visual .studio-logo { position: static; width: min(560px, 90%) !important; height: auto !important; inset: auto; }

/* ── Portada ── */
.hero { padding-top: calc(var(--header) + 24px) !important; }
.hero-layout { gap: 32px !important; }
.hero-copy h1 { line-height: 0.94 !important; }
.hero-copy p { font-size: 17px !important; }
.hero-actions { margin-top: 28px !important; }
.hero-principles { margin-top: 34px !important; }
.hero-media img { aspect-ratio: 2 !important; }

/* ── Rueda: indicador de avance y guía táctil ── */
.wheel-orb-seq { gap: 9px !important; height: 48% !important; }
.wheel-orb-seq i { width: 12px; height: 4px; background: rgba(4, 53, 19, 0.18); border-radius: 2px; transition: width 0.4s var(--ease), background 0.4s ease; }
.wheel-orb-hint-top { position: static; z-index: 10; text-align: center; padding: 0 20px; margin: 0 auto 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wheel-orb-hint-top::after { content: '\2193'; font-size: 20px; line-height: 1; color: var(--orange); animation: wheelHintArrow 1.6s ease-in-out infinite; }
@keyframes wheelHintArrow { 0%, 100% { transform: translateY(0); opacity: 0.55; } 50% { transform: translateY(7px); opacity: 1; } }
.wheel-orb-hint-top span { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(4, 53, 19, 0.6); }
.wheel-orb-node .wheel-orb-node-icon { transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease; }
.wheel-orb-node:hover .wheel-orb-node-icon { transform: scale(1.06); }

/* ── Sellos ── */
.sellos .section-grid { display: grid !important; text-align: left; }
.sellos .section-index { display: block; text-align: left; margin-bottom: 0; }
.sellos .section-heading { display: flex !important; text-align: left; }
.sellos #sellos-title { max-width: none; margin-inline: 0; }
.sellos .section-heading p { max-width: 34ch; margin: 0; }

@media (max-width: 900px) {
  .sellos .section-heading { display: block !important; text-align: center !important; }
  .sellos #sellos-title { margin-inline: auto !important; }
  .sellos .section-heading p { margin: 12px auto 0 !important; max-width: 46ch !important; }
}
@media (max-width: 640px) {
  .testimonial-band blockquote { width: auto !important; max-width: 100% !important; font-size: clamp(24px, 7vw, 30px) !important; line-height: 1.4 !important; letter-spacing: 0.02em !important; }
}

.sellos-grid img { width: 188px !important; height: 188px !important; }
.sellos-grid p { font-size: 18px !important; max-width: 24ch !important; line-height: 1.5 !important; }

/* ── Contacto ── */
.contact-copy p { font-size: 18px !important; line-height: 1.6 !important; max-width: 40ch !important; }
.contact-copy > span { font-size: 13px !important; letter-spacing: 0.14em !important; }
.contact-form label > span { font-size: 12px !important; }
.contact-form input,
.contact-form select,
.contact-form textarea { font-size: 15px !important; }

/* ── Calculadora ── */
.calculator-note { font-size: 14.5px !important; line-height: 1.55 !important; color: rgba(4, 53, 19, 0.65) !important; }
.calculator-field-row span { font-size: 14px !important; }
.calculator-field > span { font-size: 14px !important; }
.calculator-levels button { font-size: 13.5px !important; }
.calculator-result span { font-size: 12px !important; }

/* ── Franja de impacto ── */
.impact-strip article strong { font-size: 16px !important; letter-spacing: 0.12em; }
.impact-strip article span { font-size: 14.5px !important; line-height: 1.5; }
.hero-principles article strong { font-size: 16px !important; letter-spacing: 0.12em; }
.hero-principles article p { font-size: 15.5px !important; line-height: 1.6 !important; }

/* ── Rueda: números en cada nodo ── */
.wheel-orb-node-icon { position: relative; }
.wheel-orb-node-num {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid rgba(4, 53, 19, 0.18);
  font-size: 9.5px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.04em;
  color: rgba(4, 53, 19, 0.68);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.wheel-orb-node.is-active .wheel-orb-node-num { background: var(--pine); border-color: var(--pine); color: var(--white); }

/* ── Certificaciones: logos linkeables ── */
.service-certs-row { align-items: center; gap: 26px; }
.service-cert-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 4px;
  opacity: 0.82;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.service-cert-logo:hover { opacity: 1; transform: translateY(-2px); }
.service-cert-logo img { height: 100%; width: auto; object-fit: contain; display: block; }
.service-cert-logo:focus-visible { outline: 1px solid var(--orange); outline-offset: 4px; }

/* ── Disertaciones ── */
.talks { background: var(--white); border-top: 1px solid var(--line); }
.talks-list { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--line-dark); }
.talks-list li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line-dark);
}
.talks-year { font-family: "Gazzetta", serif; font-size: 26px; color: var(--orange); line-height: 1; }
.talks-list li strong { display: block; font-size: 19px; font-weight: 500; letter-spacing: 0.01em; color: var(--ink); }
.talks-list li div > span { display: block; margin-top: 5px; font-size: 14.5px; color: var(--muted); }
.talks-flag { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; color: var(--moss); border: 1px solid rgba(60, 142, 74, 0.4); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.talks-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss); border-bottom: 1px solid rgba(60, 142, 74, 0.35); padding-bottom: 3px; transition: color 0.25s ease, border-color 0.25s ease; }
.talks-link:hover { color: var(--orange); border-color: var(--orange); }
.talks-link > span { transition: transform 0.3s var(--ease); }
.talks-link:hover > span { transform: translate(3px, -3px); }

/* ── Portfolio ── */
.portfolio-hero { padding: calc(var(--header) + 90px) 0 56px; border-bottom: 1px solid var(--line); }
.portfolio-title { margin: 18px 0 0; font-size: clamp(48px, 9vw, 118px); line-height: 0.92; letter-spacing: -0.025em; font-weight: 400; }
.portfolio-lead { margin: 24px 0 0; max-width: 56ch; font-size: 18px; line-height: 1.6; color: var(--muted); }
.portfolio-body { padding: 48px 0 clamp(90px, 10vw, 140px); }
.portfolio-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.portfolio-filter {
  padding: 9px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.portfolio-filter:hover { border-color: var(--pine); }
.portfolio-filter.is-active { background: var(--pine); border-color: var(--pine); color: var(--white); }
.portfolio-count { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; margin-top: 44px; }
.portfolio-card { display: flex; flex-direction: column; gap: 18px; }
.portfolio-card .project-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  /* flex: none mantiene el 4/3 exacto en todas las tarjetas. */
  flex: none;
  overflow: hidden;
  background: var(--warm);
}
.portfolio-card .project-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-image--placeholder { display: grid; place-items: center; border: 1px solid var(--line-dark); background: var(--warm); }
.project-image--placeholder span { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(4, 53, 19, 0.35); text-align: center; padding: 0 20px; }
.portfolio-card-body { display: flex; flex-direction: column; gap: 10px; }
.portfolio-card-top { display: flex; justify-content: space-between; gap: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; }
.portfolio-card-cat { color: var(--moss); }
.portfolio-card-state { color: var(--muted); }
.portfolio-card h3 { margin: 2px 0 0; font-family: "Gazzetta", serif; font-size: clamp(28px, 2.4vw, 36px); font-weight: 400; line-height: 0.98; letter-spacing: -0.015em; }
.portfolio-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.portfolio-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.portfolio-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--pine); border: 1px solid rgba(4, 53, 19, 0.2); border-radius: 999px; padding: 4px 10px; }
.portfolio-empty { margin: 48px 0 0; text-align: center; color: var(--muted); font-size: 15px; }
.portfolio-cta { padding: clamp(70px, 8vw, 110px) 0; background: var(--pine); color: var(--white); }
.portfolio-cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.portfolio-cta h2 { margin: 0; font-size: clamp(30px, 4.6vw, 58px); line-height: 0.95; letter-spacing: -0.025em; font-weight: 400; }
.portfolio-cta .button--solid { background: var(--white); color: var(--pine); border-color: var(--white); }
.projects-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: 38px;
  padding-top: 0;
  border-top: none;
}
.projects-cta .text-link {
  align-items: center;
  min-width: 0;
  min-height: 44px;
  margin-top: 0;
  padding: 0 0 0 16px;
  gap: 16px;
  border: 1px solid var(--pine);
  background: transparent;
  color: var(--pine);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.projects-cta .text-link > span {
  display: grid;
  width: 42px;
  height: 42px;
  align-self: stretch;
  place-items: center;
  background: var(--pine);
  color: var(--white);
  font-size: 13px;
  transition: background-color 0.25s ease;
}
.projects-cta .text-link:hover,
.projects-cta .text-link:focus-visible {
  border-color: var(--pine);
  background: var(--warm);
  color: var(--pine);
}
.projects-cta .text-link:hover > span,
.projects-cta .text-link:focus-visible > span {
  background: var(--orange);
  transform: none;
}

@media (max-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 32px; }
  .projects-cta .text-link { width: min(100%, 280px); justify-content: space-between; }
  .talks-list li { grid-template-columns: 62px 1fr; gap: 14px; }
  .talks-flag { grid-column: 2; justify-self: start; margin-top: 8px; }
  .service-certs-row { gap: 18px; }
  .service-cert-logo { height: 48px; }
}

.mobile-menu[aria-hidden="true"] { visibility: hidden; pointer-events: none; }

/* Viewports bajos: la rueda entera se compacta para no invadir el texto guía */
@media (max-height: 660px) {
  .wheel-orb-node { width: 100px; }
  .wheel-orb-node-icon { width: 42px; height: 42px; }
  .wheel-orb-node-icon svg { width: 18px; height: 18px; }
  .wheel-orb-node-label { display: none; }
  .wheel-orb-node-num { min-width: 17px; height: 17px; font-size: 8.5px; }
  .wheel-orb-node-inner { gap: 6px; }
  .wheel-orb-cat { font-size: 10px; max-width: 62%; }
  .wheel-orb-title { font-size: 21px !important; margin: 8px 0 7px !important; }
  .wheel-orb-text { font-size: 12px !important; max-width: 21ch !important; line-height: 1.4 !important; }
  .wheel-orb-progress { margin-top: 10px; }
  .wheel-orb-hint-top { margin-bottom: 26px; }
  .wheel-orb-hint-top span { font-size: 10px; }
  .wheel-orb-seq { display: grid; left: -210px; }
  .wheel-orb-seq i { width: 12px; height: 4px; }
  .wheel-orb-center { overflow: hidden; padding: 12px 16px; }
  .wheel-orb-cat { line-height: 1.2; }
  .wheel-orb-text { font-size: 12px !important; max-width: 21ch !important; line-height: 1.4 !important; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}

.service-certs { margin-top: 22px; padding-top: 0; border-top: none; display: flex; flex-direction: column; gap: 12px; }
.service-certs-label { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(4, 53, 19, 0.55); }
.service-certs-row { display: flex; flex-wrap: wrap; gap: 10px; }
.service-cert-chip { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid rgba(4, 53, 19, 0.16); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pine); background: #fff; }

/* ── Responsive ──
   Va al final del archivo para ganar en cascada a los bloques sin media query. */
@media (max-width: 900px) {
  .studio-visual .studio-logo { width: min(300px, 62%) !important; height: auto !important; }
  .sellos-grid { margin: 34px auto 0 !important; }
  .talks-list { margin-top: 34px; }
  .calculator-panel { margin-top: 34px; }
  .faq-list { margin-top: 34px; }
}
@media (max-width: 640px) {
  .studio-visual .studio-logo { width: min(240px, 66%) !important; }
}

/* ── Ritmo vertical y alineación ── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

main section[id] { scroll-margin-top: var(--header); }

.hero-copy h1,
.display-title,
.section-heading h2,
.studio-copy h2,
.portfolio-title,
.portfolio-cta h2,
.contact-copy h2,
.testimonial-band blockquote {
  text-wrap: balance;
}

.hero-copy p,
.statement-copy p,
.section-heading p,
.service-panel p,
.method-list p,
.portfolio-lead,
.portfolio-card p,
.contact-copy p,
.faq-panel-inner p {
  text-wrap: pretty;
}

/* El archivo del logo trae aire transparente: se acota el área clicable. */
.brand {
  width: 195px;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.brand img {
  flex: 0 0 195px;
  width: 195px !important;
  height: 195px !important;
  max-width: none;
  object-fit: contain;
  transform: translateX(-9px);
}

.desktop-nav a,
.menu-toggle,
.button,
.text-link,
.calculator-cta,
.contact-form button {
  line-height: 1.2;
}

.button,
.contact-form button,
.calculator-cta {
  min-height: 48px;
}

.hero-copy { width: 100%; }
.hero-copy h1 { max-width: min(100%, 20ch); }
.hero-copy > p:not(.hero-lead) { line-height: 1.65; }
.hero-media { margin-top: clamp(26px, 3vw, 40px) !important; }
.hero-principles article { align-content: start; }
.hero-principles strong,
.impact-strip strong { line-height: 1.3; }
.hero-principles p,
.impact-strip span { line-height: 1.55; }

.section-heading h2,
.display-title,
.studio-copy h2,
.contact-copy h2 { overflow-wrap: normal; }
.section-heading p { line-height: 1.65; }
.statement-copy p { line-height: 1.65; }
.project-caption strong { line-height: 1.45; }

.service-item > button { min-height: 64px; }
.service-item > button strong { line-height: 1.2; }
.service-panel-inner { padding-right: 8px; }

.method-list h3 { line-height: 1.3; }
.method-list p { line-height: 1.65; }

.calculator .section-heading {
  padding-bottom: clamp(44px, 5vw, 80px) !important;
}
.calculator-field-row { gap: 20px; }
.calculator-levels button { min-height: 40px; }
.calculator-sublevels button { min-height: 36px; }

.portfolio-card { min-width: 0; }
.portfolio-card h3 { line-height: 1.25; }
.portfolio-card-body { height: 100%; }
.portfolio-card-meta { margin-top: auto; }

@media (max-width: 1100px) {
  .section-space { padding-block: clamp(96px, 10vw, 124px); }
  .header-row { gap: 24px; }
  .desktop-nav { gap: clamp(18px, 2.2vw, 28px); }
}

@media (max-width: 900px) {
  .brand { width: 150px; }
  .brand img {
    flex-basis: 150px;
    width: 150px !important;
    height: 150px !important;
  }

  .mobile-menu-inner { padding-bottom: max(30px, env(safe-area-inset-bottom)); }
  .mobile-menu nav a { min-height: 58px; }

  .section-space { padding-block: 96px; }
  .section-heading { max-width: 760px; margin-inline: auto; }
  .section-heading p { line-height: 1.65; }
  .statement-content .display-title { margin-inline: auto; }

  .impact-strip article { text-align: left; }
  .projects-grid { gap: 38px; }

  .hero-copy h1 { max-width: min(100%, 13ch); }
  .hero-media img { aspect-ratio: 3 / 2 !important; }

  .wheel-orb-seq { display: none !important; }
  .system { overflow: clip; }

  .contact-copy p { margin-inline: auto; }
  .contact-form { width: min(100%, 760px); margin-inline: auto; }

  .testimonial-band blockquote {
    width: min(100%, 872px) !important;
    max-width: 100% !important;
    font-size: clamp(30px, 5vw, 42px) !important;
    line-height: 1.4 !important;
    letter-spacing: 0.02em !important;
  }
}

@media (max-width: 640px) {
  .section-space { padding-block: 80px; }
  .section-grid { gap: 12px; }
  .section-index { margin-bottom: 16px; }

  .hero { padding-top: calc(var(--header) + 18px) !important; }
  .hero-layout { gap: 24px !important; }
  .hero-copy .eyebrow { font-size: 11px !important; line-height: 1.35; }
  .hero-copy h1 {
    max-width: 100%;
    font-size: min(138px, 31vw) !important;
    line-height: 0.94 !important;
  }
  .hero-copy p { max-width: 36ch; }
  .hero-actions { width: min(100%, 280px); margin-top: 24px !important; }
  .hero-media { margin-top: 24px !important; }
  .hero-media img { aspect-ratio: 4 / 3 !important; }
  .hero-principles { margin-top: 28px !important; }
  .hero-principles article,
  .hero-principles article + article { grid-template-columns: 34px 1fr; gap: 4px 12px; }

  .statement-copy { gap: 24px; margin-top: 32px; }
  .impact-strip { margin-top: 44px; }
  .impact-strip article,
  .impact-strip article + article {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    min-height: 118px;
  }
  .impact-strip article img { width: 80px; height: 80px; }

  .section-heading h2,
  .display-title,
  .studio-copy h2,
  .contact-copy h2 { line-height: 0.96; }

  .projects-grid { margin-top: 32px; gap: 34px; }
  .project-caption { gap: 12px; }
  .project-caption strong { font-size: 11.5px; }

  .services-layout { margin-top: 28px; }
  .service-item > button {
    min-height: 62px;
    gap: 10px;
  }
  .service-item > button strong { font-size: clamp(14px, 4vw, 16px); }
  .service-panel-inner { padding-right: 0; }
  .service-panel p { line-height: 1.65; }

  .system-intro { padding-top: 80px; }
  .system-scroll[data-wheel-interactive] .system-sticky {
    padding: 18px 0 34px;
    overflow: clip !important;
  }
  .wheel-orb-hint-top { margin-bottom: 24px; gap: 10px; }
  .wheel-orb-hint-top span { max-width: 32ch; line-height: 1.5; }
  .wheel-orb {
    width: min(calc(100vw - 32px), 460px);
    max-height: none;
  }
  .wheel-orb-ring { width: 86%; }
  .wheel-orb-node { width: 68px; }
  .wheel-orb-node-label { max-width: 8ch; font-size: 8px; line-height: 1.25; }
  .wheel-orb-center { width: 52%; height: 52%; padding: 14px 12px; }
  .wheel-orb-text { line-height: 1.5; }

  .method-list { margin-top: 28px; }
  .method-list article { padding-block: 22px; }

  .calculator .section-heading { padding-bottom: 24px !important; }
  .calculator-panel { margin-top: 0; }
  .calculator-inputs,
  .calculator-result { padding: 26px 20px; }
  .calculator-field-row { align-items: flex-start; }
  .calculator-levels button { flex: 1 1 auto; }
  .calculator-sublevels button { flex: 1 1 auto; }
  .calculator-cta { padding-inline: 16px; }

  .sellos-grid { gap: 34px; }
  .sellos-grid img {
    width: clamp(148px, 44vw, 176px) !important;
    height: auto !important;
    aspect-ratio: 1;
  }
  .sellos-grid p { font-size: 17px !important; }

  .testimonial-band { padding-block: 80px; }
  .testimonial-band blockquote {
    font-size: clamp(24px, 7vw, 30px) !important;
    line-height: 1.4 !important;
  }
  .faq-list { margin-top: 28px; }
  .faq-item > button { min-height: 64px; }

  .contact { padding-block: 80px; }
  .contact-layout { gap: 12px; }
  .contact-form { gap: 22px; }

  .portfolio-hero { padding: calc(var(--header) + 56px) 0 44px; }
  .portfolio-lead { margin-top: 20px; font-size: 16.5px; }
  .portfolio-body { padding-top: 36px; }
  .portfolio-toolbar { align-items: flex-start; padding-bottom: 24px; }
  .portfolio-filters { gap: 7px; }
  .portfolio-filter { padding: 8px 14px; font-size: 12px; }
  .portfolio-grid { margin-top: 34px; }
  .portfolio-card { gap: 14px; }
}

@media (max-width: 380px) {
  :root { --container: min(100% - 20px, 1360px); }

  .brand { width: 140px; }
  .brand img {
    flex-basis: 140px;
    width: 140px !important;
    height: 140px !important;
  }
  .menu-toggle { padding-left: 8px; }
  .menu-toggle span { font-size: 9px; }

  .hero-copy h1 { font-size: min(132px, 31vw) !important; }
  .hero-copy p { font-size: 16px !important; }
  .hero-principles article,
  .hero-principles article + article { grid-template-columns: 30px 1fr; }

  .wheel-orb { width: min(calc(100vw - 24px), 340px); }
  .wheel-orb-node { width: 58px; }
  .wheel-orb-node-icon { width: 42px; height: 42px; }
  .wheel-orb-node-icon svg { width: 18px; height: 18px; }
  .wheel-orb-node-label { max-width: 7ch; font-size: 7.5px; }
  .wheel-orb-center { padding: 12px 10px; }
  .wheel-orb-text { font-size: 10.5px; }

  .calculator-field-row { flex-wrap: wrap; gap: 6px 14px; }
  .calculator-field-row strong { margin-left: auto; }

  .portfolio-filter { padding-inline: 12px; }
}

/* ── Acentos de color ── */
.service-item > button span {
  color: var(--orange);
  font-weight: 600;
}

.service-item > button i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid rgba(4, 53, 19, 0.24);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contact::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -160px;
  bottom: -220px;
  width: min(44vw, 620px);
  aspect-ratio: 1;
  background: url("assets/graphics/tree-rings-green.webp") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.055;
  pointer-events: none;
}

.contact-layout {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .service-item > button i {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .contact::after {
    right: -180px;
    bottom: -130px;
    width: 430px;
    opacity: 0.045;
  }
}

/* ── Portfolio completo y fichas de proyecto ── */
.portfolio-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  color: inherit;
}

.portfolio-card .project-image {
  transition: background-color 0.3s ease;
}

.portfolio-card:hover .project-image {
  background-color: var(--warm-2);
}

.portfolio-card h3,
.portfolio-card-open {
  transition: color 0.25s ease;
}

.portfolio-card:hover h3,
.portfolio-card:hover .portfolio-card-open {
  color: var(--orange);
}

.portfolio-card-open {
  margin-left: auto;
  color: var(--pine);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.project-image--placeholder {
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  background:
    linear-gradient(135deg, transparent 0 49.5%, rgba(4, 53, 19, 0.08) 49.5% 50.5%, transparent 50.5%),
    var(--warm);
}

.project-image--placeholder .project-placeholder-year {
  color: var(--orange);
  font-family: "Gazzetta", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.project-image--placeholder .project-placeholder-title {
  max-width: 22ch;
  padding: 0;
  color: rgba(4, 53, 19, 0.7);
  font-size: 12px;
  line-height: 1.5;
}

.project-detail-page {
  background: var(--white);
}

.project-detail-loading,
.project-not-found {
  min-height: 70vh;
  padding: calc(var(--header) + 100px) 0 100px;
}

.project-detail-loading p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.project-not-found h1 {
  max-width: 12ch;
  margin: 22px 0;
  font-family: "Gazzetta", serif;
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 400;
  line-height: 0.94;
}

.project-not-found h1 span,
.project-detail-hero h1 > span,
.project-detail-statement h2 > span,
.project-detail-section h3 > span,
.project-gallery-heading h2 > span {
  color: var(--orange);
}

.project-not-found p {
  margin: 0 0 30px;
  color: var(--muted);
}

.project-detail-hero {
  padding: calc(var(--header) + clamp(36px, 4vw, 62px)) 0 clamp(48px, 6vw, 82px);
  border-bottom: 1px solid var(--line);
}

.project-detail-back {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  transition: color 0.25s ease;
}

.project-detail-hero .eyebrow {
  display: block;
}

.project-detail-back:hover {
  color: var(--orange);
}

.project-detail-hero h1 {
  max-width: 18ch;
  margin: 18px 0 0;
  font-family: "Gazzetta", serif;
  font-size: clamp(54px, 9vw, 124px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.project-detail-hero > .container > p {
  max-width: 62ch;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
}

.project-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 36px;
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.project-detail-meta div {
  display: grid;
  gap: 7px;
}

.project-detail-meta span {
  color: var(--moss);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-detail-meta strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

/* Los datos ocupan las dos primeras columnas y el sello la tercera,
   alto de dos celdas, para que se lea sin depender de cuantos datos
   tenga el proyecto. */
.project-detail-meta--con-sellos > div:not(.project-detail-sellos) {
  grid-column: span 1;
}

/* Mas especifico que `.project-detail-meta div`, que si no impone su grid. */
.project-detail-meta .project-detail-sellos {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  align-items: start;
  justify-content: flex-start;
  gap: 18px;
}

.project-detail-meta .project-detail-sellos img {
  display: block;
  width: min(100%, 190px);
  height: auto;
  object-fit: contain;
}

/* Con dos sellos entran uno al lado del otro. El de huella de carbono va
   algo mas grande porque su leyenda es la mas dificil de leer en chico. */
.project-detail-meta .project-detail-sellos img:not(:only-child) { width: min(42%, 140px); }
.project-detail-meta .project-detail-sellos .sello--carbono:not(:only-child) { width: min(45%, 152px); }

.project-detail-visual {
  padding: clamp(30px, 4vw, 56px) 0 0;
}

.project-detail-cover {
  position: relative;
  display: grid;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--warm);
}

.project-detail-cover img {
  display: block;
  width: 100%;
  max-height: min(78vh, 880px);
  /* Con la proporción real de la foto no se recorta nada; 16/9 es el respaldo. */
  aspect-ratio: var(--proporcion-portada, 16 / 9);
  object-fit: contain;
}

.project-detail-cover--contain img {
  object-fit: contain;
  padding: clamp(12px, 2vw, 28px);
}

.project-detail-cover--placeholder {
  align-content: center;
  justify-items: center;
  min-height: min(62vw, 650px);
  padding: 52px;
  border: 1px solid var(--line-dark);
  background:
    radial-gradient(circle at 70% 30%, rgba(60, 142, 74, 0.12), transparent 28%),
    linear-gradient(135deg, transparent 0 49.8%, rgba(4, 53, 19, 0.09) 49.8% 50.2%, transparent 50.2%),
    var(--warm);
}

.project-detail-cover--placeholder > span {
  color: var(--orange);
  font-family: "Gazzetta", serif;
  font-size: clamp(42px, 7vw, 88px);
}

.project-detail-cover--placeholder strong {
  max-width: 22ch;
  margin-top: 8px;
  text-align: center;
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.1;
}

.project-detail-cover--placeholder small {
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.project-detail-body {
  padding: clamp(72px, 9vw, 132px) 0;
}

.project-detail-statements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(42px, 7vw, 108px);
  padding-bottom: clamp(64px, 8vw, 110px);
  border-bottom: 1px solid var(--line-dark);
}

.project-detail-statement > span,
.project-detail-section > span {
  color: var(--orange);
  font-family: "Gazzetta", serif;
  font-size: 24px;
}

.project-detail-statement h2 {
  margin: 24px 0 18px;
  font-family: "Gazzetta", serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 400;
  line-height: 1;
}

.project-detail-statement p,
.project-detail-section p,
.project-source-note p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.project-detail-sections {
  margin-top: 0;
}

.project-detail-section {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(26px, 5vw, 90px);
  padding: clamp(32px, 4vw, 54px) 0;
  border-bottom: 1px solid var(--line-dark);
}

.project-detail-section > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.65fr) minmax(0, 1.5fr);
  gap: clamp(28px, 6vw, 100px);
  align-items: start;
}

.project-detail-section h3 {
  margin: 0;
  font-family: "Gazzetta", serif;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.08;
}

.project-source-note {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 36px;
  margin-top: 44px;
  padding: 28px 32px;
  border-left: 3px solid var(--orange);
  background: var(--warm);
}

.project-source-note > span {
  color: var(--pine);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.project-source-note p {
  font-size: 14px;
}

.project-gallery {
  padding: clamp(76px, 9vw, 130px) 0;
  background: var(--warm);
}

.project-gallery-heading {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 66px);
  text-align: left;
}

.project-gallery-heading h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(56px, 5.1vw, 78px);
  font-weight: 400;
  line-height: 0.94;
  white-space: nowrap;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* Cada celda define su alto según la proporción de su foto. */
  align-items: start;
  gap: clamp(16px, 2.4vw, 32px);
  width: min(92%, 1180px);
  max-width: 1180px;
  margin-inline: auto;
}

#system-title > span {
  display: inline-block;
  margin-left: 0.07em;
}

.calculator-title-green {
  color: var(--pine);
}

.project-gallery-item {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #e3e1db;
}

.project-gallery-item--large {
  grid-column: 1 / -1;
}

.project-gallery-item.project-gallery-item--entera img { object-fit: contain; }

.project-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  /* La celda ya tiene la proporción de la foto: 'cover' la llena sin recortar. */
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.project-gallery-item:hover img {
  transform: scale(1.012);
}

.project-gallery-item > span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--pine);
  color: var(--white);
  font-family: "Gazzetta", serif;
  font-size: 13px;
}





.project-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.project-pagination a {
  display: grid;
  gap: 10px;
  min-height: 140px;
  padding: 28px clamp(32px, 5vw, 72px) 18px;
  align-content: end;
  color: inherit;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.project-pagination a + a {
  border-left: 1px solid var(--line-dark);
  text-align: right;
}

.project-pagination a:hover {
  background: var(--pine);
  color: var(--white);
}

.project-pagination span {
  color: var(--moss);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.project-pagination a:hover span {
  color: rgba(255, 255, 255, 0.65);
}

.project-pagination strong {
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 400;
}

@media (max-width: 900px) {
  .project-detail-hero {
    padding-top: calc(var(--header) + 20px);
  }

  .project-detail-hero h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .project-detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-detail-meta .project-detail-sellos {
    grid-column: 1 / -1;
    grid-row: auto;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }
  .project-detail-meta .project-detail-sellos img { width: min(38%, 150px); }
  .project-detail-meta .project-detail-sellos img:not(:only-child) { width: min(35%, 140px); }

  .project-detail-statements {
    gap: 46px;
  }

  .project-detail-section > div {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-gallery-heading {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .portfolio-card-link {
    gap: 14px;
  }

  .portfolio-card-meta {
    align-items: flex-start;
  }

  .portfolio-card-open {
    flex-basis: 100%;
    margin-left: 0;
    padding-top: 2px;
  }

  .project-detail-hero {
    padding-top: calc(var(--header) + 12px);
  }

  .project-detail-back {
    margin-bottom: 14px;
    line-height: 1.4;
  }

  .project-detail-hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 13vw, 62px);
    overflow-wrap: anywhere;
  }

  .project-detail-hero > .container > p {
    margin-top: 22px;
    font-size: 16px;
  }

  .project-detail-meta {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 38px;
    /* En una sola columna los datos se leen mejor centrados. */
    text-align: center;
  }

  .project-detail-meta .project-detail-sellos {
    gap: 14px;
    justify-content: center;
  }
  .project-detail-meta .project-detail-sellos img,
  .project-detail-meta .project-detail-sellos img:not(:only-child) { width: min(42%, 140px); }

  .project-detail-cover img {
    aspect-ratio: var(--proporcion-portada, 4 / 3);
  }

  .project-detail-cover--placeholder {
    min-height: 420px;
    padding: 32px 24px;
  }

  .project-detail-statements {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .project-detail-section {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
  }

  .project-detail-statement p,
  .project-detail-section p {
    font-size: 15px;
    line-height: 1.7;
  }

  .project-source-note {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .project-gallery-heading h2 {
    font-size: clamp(36px, 11vw, 48px);
    white-space: normal;
  }

  .project-gallery-item--large {
    grid-column: auto;
  }

  .project-gallery-item img {
    min-height: 240px;
    max-height: 520px;
  }

  .project-gallery-item--entera img {
    min-height: 0;
    max-height: none;
    object-fit: contain;
  }



  .project-pagination {
    grid-template-columns: 1fr;
  }

  .project-pagination a {
    min-height: 126px;
    padding: 26px var(--page-pad);
  }

  .project-pagination a + a {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }
}

/* ── Visor de galería (modal) ── */
body.visor-abierto { overflow: hidden; }

.visor {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}
.visor.is-open { opacity: 1; }
.visor[hidden] { display: none; }

.visor-fondo {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 11, 0.86);
  backdrop-filter: blur(22px) saturate(0.9);
  -webkit-backdrop-filter: blur(22px) saturate(0.9);
  cursor: zoom-out;
}
/* Si el navegador no soporta el desenfoque, se compensa con más opacidad. */
@supports not (backdrop-filter: blur(1px)) {
  .visor-fondo { background: rgba(12, 12, 11, 0.955); }
}

.visor-caja {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 26px);
  width: min(1500px, 100% - 32px);
  max-height: calc(100dvh - 120px);
  transform: scale(0.985);
  transition: transform 0.22s var(--ease);
}
.visor.is-open .visor-caja { transform: none; }

.visor-figura {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.visor-figura img {
  max-width: 100%;
  max-height: calc(100dvh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}
.visor-figura figcaption {
  display: flex;
  gap: 18px;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.visor-figura figcaption span:first-child { color: var(--white); }

.visor-nav,
.visor-cerrar {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.visor-nav:hover,
.visor-cerrar:hover,
.visor-nav:focus-visible,
.visor-cerrar:focus-visible { background: rgba(255, 255, 255, 0.14); border-color: var(--white); }

.visor-cerrar { position: absolute; top: -64px; right: 0; z-index: 1; font-size: 26px; }
.visor--unica [data-visor-pos] { display: none; }

/* Normalización de los botones de la galería. */
.project-detail-cover-boton {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.project-detail-cover-boton img { display: block; width: 100%; height: auto; }

button.project-gallery-item {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  cursor: zoom-in;
  width: 100%;
  text-align: left;
}

@media (max-width: 720px) {
  .visor-caja { width: calc(100% - 20px); gap: 6px; }
  .visor-nav, .visor-cerrar { width: 42px; height: 42px; font-size: 17px; }
  .visor-cerrar { top: -54px; }
  .visor-figura img { max-height: calc(100dvh - 200px); }
}

/* ── Formulario de contacto: aviso y trampa antispam ── */
.contact-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-aviso {
  margin: 4px 0 0;
  padding: 12px 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.4);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
}
.contact-aviso[data-estado="error"] { border-left-color: var(--orange); }

/* Selector de idioma */
.idioma {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(4, 53, 19, 0.14), 0 2px 6px rgba(4, 53, 19, 0.08);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: opacity 0.55s var(--ease), visibility 0.55s, transform 0.85s var(--ease), box-shadow 0.85s var(--ease);
}
.idioma:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(4, 53, 19, 0.18), 0 3px 8px rgba(4, 53, 19, 0.1);
}
.idioma:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.idioma__opcion {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  color: var(--pine);
  font-size: 10px;
  letter-spacing: 0.13em;
  transition: background-color 0.55s var(--ease), color 0.55s var(--ease);
}
.idioma__opcion.is-activa { background: var(--pine); color: var(--white); }
body.menu-open .idioma,
body.visor-abierto .idioma { opacity: 0; visibility: hidden; pointer-events: none; }

main,
.site-footer,
.desktop-nav { transition: opacity 0.32s ease; }
.idioma-cambiando main,
.idioma-cambiando .site-footer,
.idioma-cambiando .desktop-nav,
.idioma-en-pendiente main,
.idioma-en-pendiente .site-footer,
.idioma-en-pendiente .desktop-nav { opacity: 0; }

@media (max-width: 640px) {
  .idioma { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .idioma,
  .idioma__opcion,
  main,
  .site-footer,
  .desktop-nav { transition: none; }
}
