/* Space Grotesk en formato web; se descarga junto con la página. */
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

/* Para elegir tipografías, cambiá las variables de abajo. */
:root {
  --font-titles: "Space Grotesk", Arial, sans-serif;
  --font-body: "Arial", sans-serif;
  --font-labels: "Courier New", monospace;
  --body-text-increase: 2pt;
  --paper: #eeeeee;
  --paper-deep: #e2e2e2;
  --ink: #1e1e1e;
  --muted: #686868;
  --line: rgba(30, 30, 30, .16);
  --green: #17e26d;
  --purple: #a259ff;
  --header-height: 76px;
  --page: min(1440px, calc(100% - 96px));
}

* { box-sizing: border-box; }
html { height: 100%; }
body { height: 100%; margin: 0; overflow: hidden; background: var(--paper); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
button { color: inherit; font: inherit; }
::selection { background: var(--green); color: var(--ink); }

.skip-link { position: fixed; z-index: 30; top: 12px; left: 12px; padding: 12px 16px; background: var(--green); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { height: var(--header-height); padding: 0 max(32px, calc((100vw - 1440px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 10; background: var(--paper); }
.brand { padding: 0; display: inline-flex; align-items: center; border: 0; background: transparent; text-align: left; cursor: pointer; }
.brand-logo { width: clamp(112px, 12vw, 158px); height: auto; mix-blend-mode: multiply; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.3vw, 34px); }
.main-nav button { padding: 10px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #555555; font: 700 10px var(--font-body); text-transform: uppercase; letter-spacing: .035em; cursor: pointer; transition: color .2s, border-color .2s; }
.main-nav button:hover, .main-nav button[aria-current="page"] { color: var(--ink); border-color: var(--green); }
.main-nav button:last-child span { padding-left: 5px; color: var(--purple); }
.app-main { height: calc(100svh - var(--header-height)); min-height: 0; }
.page-panel { display: none; height: 100%; padding: 28px max(32px, calc((100vw - 1440px) / 2)) 24px; overflow: hidden; }
.page-panel.is-active { display: block; }
.page-panel[hidden] { display: none !important; }
.eyebrow { margin: 0 0 12px; display: flex; align-items: center; gap: 9px; color: var(--muted); font: 9px var(--font-labels); letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 100%; background: var(--green); box-shadow: 0 0 0 4px rgba(23, 226, 109, .16); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-titles); }
.green-dot { color: var(--green); }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 0 18px; border: 0; font: 700 10px var(--font-body); cursor: pointer; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark span { color: var(--green); font-size: 16px; }

/* Welcome screen */
.welcome-panel { padding-top: clamp(24px, 5vh, 56px); padding-bottom: clamp(24px, 5vh, 56px); display: none; grid-template-columns: 1fr 1fr; align-items: center; gap: 6vw; position: relative; }
.welcome-panel.is-active { display: grid; }
.welcome-copy { position: relative; z-index: 1; max-width: 660px; }
.welcome-copy .eyebrow { color: var(--ink); font-size: calc(9px + 2pt); }
.flag-emoji { font-family: var(--font-body); font-size: 13px; line-height: 1; }
.welcome-logo { width: clamp(48px, 6vw, 74px); height: clamp(48px, 6vw, 74px); margin: 0 0 16px; object-fit: contain; mix-blend-mode: multiply; }
.welcome-copy h1 { max-width: 690px; margin: 0 0 19px; font: 600 clamp(50px, 6.7vw, 92px)/.96 var(--font-titles); letter-spacing: -.085em; }
.welcome-intro { max-width: 440px; margin-bottom: 28px; color: #565656; font-size: calc(13px + var(--body-text-increase)); line-height: 1.75; }
.welcome-image { height: min(68vh, 650px); min-height: 270px; position: relative; background: var(--paper-deep); }
.welcome-image::after { content: ""; position: absolute; top: -12px; right: -12px; width: 60px; height: 60px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.welcome-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82); }
.welcome-image-label { position: absolute; bottom: 0; left: 0; padding: 14px 18px; background: var(--green); font: 700 11px var(--font-body); }
.welcome-image-index { position: absolute; top: 14px; left: 14px; padding: 8px 10px; background: var(--paper); font: 8px var(--font-labels); }
.welcome-side-note { position: absolute; right: 16px; bottom: 30px; writing-mode: vertical-rl; color: var(--muted); font: 8px var(--font-labels); letter-spacing: .12em; text-transform: uppercase; }

/* Fixed screens */
.panel-heading { min-height: 72px; margin-bottom: 14px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.panel-heading .eyebrow { margin-bottom: 7px; }
.panel-heading h1 { margin: 0; font: 600 clamp(38px, 4vw, 57px)/.98 var(--font-titles); letter-spacing: -.075em; }
.panel-heading > p { max-width: 350px; margin: 0 1% 3px 0; color: var(--muted); font-size: calc(11px + var(--body-text-increase)); line-height: 1.65; }

/* Qué soy */
.about-panel { padding-top: clamp(22px, 4vh, 40px); }
.about-panel .panel-heading { margin-bottom: clamp(14px, 2.8vh, 28px); }
.about-layout { min-height: 0; height: calc(100% - 100px); display: grid; grid-template-columns: minmax(220px, .75fr) minmax(300px, 1.15fr) minmax(300px, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.about-carousel { min-width: 0; width: 100%; margin-top: clamp(32px, 5vh, 52px); }
.about-carousel-images { width: 100%; }
.about-carousel-image { width: 100%; height: auto; max-height: min(62vh, 560px); aspect-ratio: .72; object-fit: cover; object-position: center 28%; background: var(--paper-deep); }
.about-carousel-image[hidden] { display: none; }
.about-carousel-controls { min-height: 42px; padding-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.about-carousel-controls button { width: 28px; height: 28px; padding: 3px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; transition: width .2s, height .2s, transform .2s; }
.about-carousel-controls button img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; opacity: .72; }
.about-carousel-controls button[aria-pressed="true"] { width: 40px; height: 40px; }
.about-carousel-controls button[aria-pressed="true"] img { opacity: 1; }
.about-copy { max-width: 700px; }
.about-copy > .eyebrow, .about-services > .eyebrow { font-size: calc(9px + 2pt); line-height: 1; }
.about-copy > .eyebrow { margin-bottom: 22px; }
.about-services-intro { margin: 28px 0 6px; color: var(--muted); font: calc(8px + 2pt) var(--font-labels); letter-spacing: .08em; text-transform: uppercase; }

.about-copy h2 { max-width: 660px; margin: 0 0 18px; font: 600 clamp(32px, 4vw, 56px)/1.02 var(--font-titles); letter-spacing: -.075em; }
.about-copy p { max-width: 630px; margin-bottom: 12px; color: #5d5d5d; font-size: calc(12px + var(--body-text-increase)); line-height: 1.75; }
.about-copy .about-lead { color: var(--ink); font-size: calc(14px + var(--body-text-increase)); }
.about-copy .about-signature { margin-top: 18px; color: var(--purple); font: 10px var(--font-labels); letter-spacing: .06em; text-transform: uppercase; }
.about-services { max-width: 470px; justify-self: end; width: 100%; }
.about-services > .eyebrow { margin-bottom: 0; }
.capability-list { border-top: 1px solid var(--line); }
.capability-list article { min-height: 65px; padding: 10px 0; display: grid; grid-template-columns: 1fr; gap: 2px 12px; align-content: center; border-bottom: 1px solid var(--line); }

.capability-list h3 { margin: 0 0 3px; font: 700 13px var(--font-titles); letter-spacing: -.025em; }
.capability-list p { margin: 0; color: var(--muted); font-size: calc(10px + var(--body-text-increase)); line-height: 1.45; }
.about-credit { margin: 15px 0 0; color: var(--muted); text-align: right; font: calc(8px + 2pt) var(--font-labels); }

/* Qué hago — tres grupos con cuatro portadas cuadradas visibles por subsección */
.work-panel.is-active { display: grid; grid-template-columns: minmax(220px, .78fr) minmax(0, 2.3fr); grid-template-rows: auto; align-content: start; align-items: start; gap: 0 clamp(26px, 4vw, 62px); }
.work-panel.has-extra-projects { overflow-y: auto; scrollbar-color: var(--purple) transparent; scrollbar-width: thin; }
.work-heading { min-height: 0; margin: clamp(26px, 7vh, 72px) 0 0; }
.project-section-tabs { display: none; }
.project-grid { min-width: 0; margin-top: clamp(26px, 7vh, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(14px, 2vw, 28px); }
.project-section { min-width: 0; }
.project-section > h2 { margin: 0 0 14px; font: 500 clamp(15px, 1.55vw, 25px)/1.1 var(--font-titles); letter-spacing: -.035em; }
.project-slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: min-content; align-items: start; gap: clamp(12px, 1.4vw, 20px) clamp(9px, 1vw, 15px); }
.project-card { min-width: 0; container-type: inline-size; }
.project-open { width: 100%; padding: 0; display: block; border: 0; background: transparent; text-align: left; cursor: pointer; }
.project-card-image { width: 100%; aspect-ratio: 1; position: relative; display: block; overflow: hidden; background: var(--paper-deep); }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-open:hover .project-card-image img, .project-open:focus-visible .project-card-image img { transform: scale(1.035); }
.project-card-arrow { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 27px; height: 27px; background: var(--green); font-size: 15px; }
.project-card-copy { min-width: 0; padding: 7px 0 0; display: flex; flex-direction: column; gap: 4px; }
.project-category { margin: 0; color: var(--muted); font: calc(8px + 1pt) var(--font-labels); letter-spacing: .06em; text-transform: uppercase; }
.project-card-title { display: block; max-width: 100%; font: 600 clamp(14px, 14cqi, 26px)/1 var(--font-titles); letter-spacing: -.055em; overflow-wrap: anywhere; }
.project-detail-panel { padding-bottom: 0; }
.project-detail-heading { min-height: 65px; display: flex; align-items: center; justify-content: space-between; }
.project-back { padding: 8px 0; display: flex; align-items: center; gap: 9px; border: 0; background: transparent; font: 700 10px var(--font-body); cursor: pointer; }
.project-back span { color: var(--purple); font-size: 17px; }
.project-detail-heading .eyebrow { margin: 0; }
.project-detail-scroll { height: calc(100% - 65px); padding: 0 8px 35px 0; }
.project-detail-intro { max-width: 870px; padding: 6px 0 24px; }
.project-detail-copy { max-width: 870px; padding: 24px 0 30px; }
.project-detail-intro h1 { margin: 0 0 7px; font: 600 clamp(42px, 6vw, 76px)/.98 var(--font-titles); letter-spacing: -.075em; }
.project-detail-intro .project-category { margin-bottom: 12px; font-size: calc(8px + 3pt); }
.project-detail-intro .project-subtitle { max-width: 780px; margin-bottom: 0; font-size: calc(13px + var(--body-text-increase)); line-height: 1.6; }
.project-detail-copy .project-description { max-width: 720px; }
.project-contribution { max-width: 740px; padding-top: 15px; border-top: 1px solid var(--line); }
.project-contribution strong { font: calc(11px + var(--body-text-increase) + 3pt) var(--font-labels); letter-spacing: .06em; text-transform: uppercase; }
.project-contribution p { margin: 8px 0 0; color: var(--muted); font-size: calc(8px + 3pt); line-height: 1.7; }
.project-detail-gallery { max-width: 1200px; margin: 0 0 4px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.project-detail-gallery figure { min-width: 0; margin: 0; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-deep); }
.project-detail-gallery figure:first-child { grid-column: 1 / -1; }
.project-detail-gallery img { width: 100%; height: 100%; object-fit: cover; }

.project-detail-gallery figcaption { position: absolute; right: 10px; bottom: 10px; padding: 7px 9px; background: var(--paper); font: 8px var(--font-labels); }
.panel-scroll { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--purple) transparent; scrollbar-width: thin; }
.project-description { margin-bottom: 15px; color: #5d5d5d; font-size: calc(11px + var(--body-text-increase)); line-height: 1.75; }
.project-facts { margin: 14px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.project-fact { min-height: 50px; padding: 8px; display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: center; border: 1px solid var(--line); }
.project-fact img { width: 22px; height: 22px; object-fit: contain; }
.project-fact span { display: block; }
.project-fact strong { display: block; margin-bottom: 3px; font: calc(8px + 2pt) var(--font-labels); color: var(--muted); text-transform: uppercase; }
.project-fact small { display: block; font-size: calc(9px + var(--body-text-increase) + 2pt); line-height: 1.35; }
.project-fact.project-team-fact { grid-template-columns: 1fr; }
.project-team-fact ul { margin: 0; padding-left: 16px; font-size: calc(9px + var(--body-text-increase) + 2pt); line-height: 1.4; }
.project-more { border-top: 1px solid var(--line); font-size: calc(10px + var(--body-text-increase)); }
.project-more summary { padding: 12px 0; display: flex; justify-content: space-between; cursor: pointer; font-weight: 700; list-style: none; }
.project-more summary::-webkit-details-marker { display: none; }
.project-more summary span { color: var(--purple); font-size: 15px; }
.project-more p { margin: 0 0 12px; color: var(--muted); font-size: calc(10px + var(--body-text-increase)); line-height: 1.7; }

/* Qué pienso — opinion pieces scroll inside this screen */
.thoughts-panel { padding-bottom: 0; }
.thoughts-heading { min-height: 86px; margin-bottom: 10px; }
.thoughts-scroll { height: calc(100% - 96px); padding: 0 8px 22px 0; }
.journal-list { border-top: 1px solid var(--line); }
.journal-article { border-bottom: 1px solid var(--line); }
.journal-item { min-height: 96px; display: grid; grid-template-columns: 120px minmax(0, 1fr) 28px; gap: 16px; align-items: center; transition: background .2s; }
.journal-item:hover { background: rgba(255,255,255,.45); }
.journal-article summary { list-style: none; cursor: pointer; }
.journal-article summary::-webkit-details-marker { display: none; }
.journal-date { color: var(--muted); font: calc(8px + 2pt) var(--font-labels); }
.journal-title strong { display: block; margin-bottom: 5px; font: 700 16px var(--font-titles); letter-spacing: -.025em; }
.journal-title small { color: var(--muted); font-size: 15px; line-height: 1.45; }
.journal-arrow { justify-self: center; color: var(--purple); font-size: 17px; transition: transform .2s; }
.journal-article[open] .journal-arrow { transform: rotate(45deg); }
.journal-body { max-width: 820px; padding: 0 60px 28px 204px; color: #565656; font-size: calc(12px + var(--body-text-increase) + 2pt); line-height: 1.9; }
.journal-body p { margin-bottom: 15px; }
.journal-byline { color: var(--muted); font: calc(8px + 1pt) var(--font-labels); letter-spacing: .04em; text-transform: uppercase; }
.journal-image { margin: 22px 0 26px; }
.journal-image img { width: 100%; height: auto; object-fit: contain; }
.journal-image figcaption { margin-top: 6px; color: var(--muted); font: 8px var(--font-labels); }
.journal-inline-list { margin: -5px 0 18px; padding-left: 18px; }
.journal-subheading { margin: 18px 0 8px; color: var(--ink); font: 600 16px var(--font-titles); }
.journal-read-link { display: inline-block; margin-top: 3px; font-size: 10px; font-weight: 700; }

/* Dónde estoy — a short, non-scrolling activity overview */
.events-panel { padding-top: clamp(24px, 5vh, 54px); }
.events-heading { margin-bottom: clamp(18px, 5vh, 54px); }
.event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.event-card { min-height: 100px; padding: 15px 18px; display: grid; grid-template-columns: 54px 1fr 20px; gap: 16px; align-items: center; border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.event-card:hover { background: var(--paper-deep); border-color: var(--ink); }
.event-date { width: 52px; height: 54px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--green); }
.event-date strong { font: 700 20px var(--font-titles); line-height: 1; }
.event-date small { margin-top: 5px; font: 7px var(--font-labels); text-transform: uppercase; }
.event-copy { display: flex; flex-direction: column; gap: 4px; }
.event-copy small { color: var(--muted); font: 8px var(--font-labels); letter-spacing: .05em; text-transform: uppercase; }
.event-copy strong { font: 700 16px/1.25 var(--font-titles); }
.event-copy span { color: var(--muted); font-size: calc(9px + var(--body-text-increase)); }
.event-arrow { align-self: start; font-size: 15px; }
.empty-state { min-height: 115px; padding: 22px; display: flex; align-items: center; gap: 17px; border: 1px solid var(--line); }
.empty-mark { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--purple); font-size: 18px; }
.empty-state strong { font: 700 12px var(--font-titles); }
.empty-state p { margin: 5px 0 0; color: var(--muted); font-size: calc(10px + var(--body-text-increase)); }
.empty-note { margin-left: auto; color: var(--muted); font: 7px var(--font-labels); letter-spacing: .08em; }
.events-footnote { position: absolute; bottom: 19px; right: max(32px, calc((100vw - 1440px) / 2)); margin: 0; color: var(--muted); font: 8px var(--font-labels); text-transform: uppercase; }
.events-footnote span { padding: 0 6px; }

/* Hablame */
.contact-panel { padding-top: clamp(30px, 7vh, 80px); display: none; grid-template-columns: 1fr 1fr; align-content: center; gap: 5vw; background: var(--green); }
.contact-panel.is-active { display: grid; }
.contact-copy .eyebrow { color: rgba(30,30,30,.72); }
.contact-copy h1 { margin: 0 0 22px; font: 600 clamp(58px, 8vw, 104px)/.95 var(--font-titles); letter-spacing: -.09em; }
.contact-question { color: var(--purple); }
.contact-copy > p:last-child { max-width: 430px; color: rgba(30,30,30,.82); font-size: calc(12px + var(--body-text-increase)); line-height: 1.8; }
.contact-details { padding-top: 55px; display: flex; flex-direction: column; align-items: flex-start; }
.contact-details a, .contact-details button { margin-bottom: 15px; padding: 0 0 7px; border: 0; border-bottom: 1px solid rgba(30,30,30,.42); background: transparent; color: inherit; font: inherit; font-size: clamp(14px, 2vw, 19px); font-weight: 600; text-align: left; cursor: pointer; }
.contact-details a span, .contact-details button span { margin-left: 12px; }
.contact-details .contact-email { font-size: clamp(17px, 2.4vw, 25px); letter-spacing: -.05em; }
.contact-location { margin-top: 22px; color: rgba(30,30,30,.72); font: 8px var(--font-labels); text-transform: uppercase; }
.contact-location span { padding: 0 6px; }
.site-footer { position: absolute; right: max(32px, calc((100vw - 1440px) / 2)); bottom: 0; left: max(32px, calc((100vw - 1440px) / 2)); min-height: 52px; border-top: 1px solid rgba(30,30,30,.35); display: flex; align-items: center; justify-content: space-between; gap: 18px; color: rgba(30,30,30,.75); font: 8px var(--font-labels); }

@media (max-width: 900px) {
  :root { --page: calc(100% - 56px); }
  .site-header { padding: 0 24px; }
  .main-nav { gap: 14px; }
  .main-nav button { font-size: 9px; }
  .page-panel { padding-right: 28px; padding-left: 28px; }
  .welcome-panel { gap: 32px; }
  .welcome-copy h1 { font-size: clamp(48px, 7vw, 67px); }
  .about-layout { height: calc(100% - 90px); grid-template-columns: minmax(150px, .72fr) minmax(0, 1.28fr); grid-template-rows: auto auto; align-content: start; align-items: start; gap: 16px 24px; }
  .about-carousel { align-self: start; margin-top: 38px; }
  .about-carousel-image { max-height: min(42vh, 360px); }
  .about-services { grid-column: 1 / -1; max-width: none; width: 100%; justify-self: stretch; }
  .capability-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-list article:nth-child(odd) { border-right: 1px solid var(--line); }
  .capability-list article:nth-child(even) { padding-left: 12px; }
}

@media (max-width: 640px) {
  :root { --header-height: 105px; --page: calc(100% - 40px); }
  .site-header { height: var(--header-height); padding: 9px 16px 7px; display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; }
  .brand { align-self: flex-start; }
  .brand-logo { width: 112px; }
  .main-nav { margin: 0 -16px; padding: 0 16px 2px; display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav button { flex: 0 0 auto; padding: 8px 0 7px; font-size: 8px; }
  .app-main { height: calc(100svh - var(--header-height)); }
  .page-panel { padding: 18px 18px 18px; }
  .welcome-panel { padding-top: 25px; padding-bottom: 22px; grid-template-columns: 1fr; grid-template-rows: 1fr minmax(165px, 30svh); gap: 14px; align-items: stretch; }
  .welcome-copy { align-self: center; }
  .welcome-copy .eyebrow { margin-bottom: 10px; font-size: calc(7px + 2pt); }
  .flag-emoji { font-size: 11px; }
  .welcome-logo { width: 46px; height: 46px; margin-bottom: 9px; }
  .welcome-copy h1 { max-width: 450px; margin-bottom: 10px; font-size: clamp(38px, 10.8vw, 58px); }
  .welcome-intro { max-width: 370px; margin-bottom: 15px; font-size: calc(10px + var(--body-text-increase)); line-height: 1.55; }
  .button { min-height: 38px; gap: 18px; padding: 0 13px; font-size: 9px; }
  .welcome-image { min-height: 165px; height: 30svh; max-height: 250px; margin-right: 7px; }
  .welcome-image::after { top: -7px; right: -7px; width: 40px; height: 40px; }
  .welcome-image-label { padding: 10px 12px; font-size: 9px; }
  .welcome-image-index { top: 9px; left: 9px; font-size: 7px; }
  .welcome-side-note { display: none; }
  .panel-heading { min-height: 58px; margin-bottom: 12px; gap: 12px; }
  .panel-heading .eyebrow { margin-bottom: 5px; font-size: 7px; }
  .panel-heading h1 { font-size: 36px; }
  .panel-heading > p { max-width: 45%; margin: 0 0 2px; font-size: calc(8px + var(--body-text-increase) + 3pt); line-height: 1.4; }
  .about-panel { padding: 13px 18px 28px; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
  .about-panel .panel-heading { min-height: 55px; margin-bottom: 10px; }
  .about-layout { height: auto; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 26px; }
  .about-carousel { width: min(100%, 260px); margin: 0 auto; }
  .about-carousel-image { max-height: none; aspect-ratio: .72; }
  .about-carousel-controls { min-height: 30px; padding-top: 4px; gap: 5px; }
  .about-carousel-controls button { width: 22px; height: 22px; padding: 2px; }
  .about-carousel-controls button[aria-pressed="true"] { width: 30px; height: 30px; }
  .about-copy { align-self: stretch; width: 100%; }
  .about-services { max-width: none; width: 100%; justify-self: stretch; }
  .capability-list { display: block; }
  .capability-list article { min-height: auto; padding: 12px 0; }
  .capability-list article:nth-child(odd) { border-right: 0; }
  .capability-list article:nth-child(even) { padding-left: 0; }
  .about-copy h2 { margin-bottom: 12px; font-size: clamp(27px, 7.2vw, 36px); }
  .about-copy p { margin-bottom: 12px; font-size: calc(11px + var(--body-text-increase)); line-height: 1.6; }
  .about-copy .about-lead { font-size: calc(12px + var(--body-text-increase)); }
  .about-copy .about-signature { margin-top: 12px; font-size: 8px; }
  .about-copy > .eyebrow, .about-services > .eyebrow { font-size: calc(7px + 2pt); line-height: 1; }
  .about-copy > .eyebrow { margin-bottom: 10px; }
  .about-services > .eyebrow { margin-bottom: 0; }
  .about-services-intro { margin: 10px 0 6px; font-size: calc(8px + 2pt); }
  .capability-list article { min-height: auto; padding: 12px 0; grid-template-columns: 1fr; gap: 4px; }
  .capability-list article > span { font-size: 7px; }
  .capability-list h3 { margin-bottom: 2px; font-size: 12px; }
  .capability-list p { font-size: calc(10px + var(--body-text-increase)); line-height: 1.5; }
  .about-credit { margin-top: 12px; font-size: calc(8px + 2pt); }
  .work-panel.is-active { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 18px; }
  .work-panel.has-extra-projects { overflow-y: auto; }
  .thoughts-panel { padding-bottom: 0; }
  .work-heading, .thoughts-heading { min-height: 59px; margin-bottom: 8px; }
  .work-heading { margin-top: 0; }
  .project-section-tabs { margin-bottom: 15px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .project-section-tabs button { position: relative; min-width: 0; padding: 8px 2px 13px; border: 0; background: transparent; color: var(--muted); font: 9px var(--font-labels); text-align: center; text-transform: uppercase; cursor: pointer; }
  .project-section-tabs button[aria-pressed="true"] { color: var(--ink); }
  .project-section-tabs button[aria-pressed="true"]::after { position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); content: ""; transform: translateX(-50%); }
  .thoughts-scroll { height: calc(100% - 67px); padding-right: 3px; }
  .project-grid { min-height: 0; margin-top: 0; display: block; }
  .project-section { display: none; }
  .project-grid[data-active-section="proyectos-propios"] .project-section[data-section="proyectos-propios"],
  .project-grid[data-active-section="contrataciones"] .project-section[data-section="contrataciones"],
  .project-grid[data-active-section="colaboraciones"] .project-section[data-section="colaboraciones"] { display: block; }
  .project-section > h2 { display: none; }
  .project-slot-grid { width: min(100%, max(270px, calc(100svh - 350px))); margin-inline: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: min-content; gap: 14px 10px; }
  .project-card-arrow { top: 7px; right: 7px; width: 23px; height: 23px; font-size: 13px; }
  .project-card-copy { padding-top: 5px; gap: 3px; }
  .project-card-copy .project-category { font-size: calc(7px + 1pt); line-height: 1.25; }
  .project-card-title { font-size: clamp(15px, 14cqi, 23px); }
  .project-detail-heading { min-height: 50px; }
  .project-back { font-size: 9px; }
  .project-detail-heading .eyebrow { font-size: 7px; }
  .project-detail-scroll { height: calc(100% - 50px); padding-right: 3px; }
  .project-detail-intro { padding: 3px 0 16px; }
  .project-detail-copy { padding: 18px 0 20px; }
  .project-detail-intro h1 { font-size: 42px; }
  .project-detail-intro .project-category { margin-bottom: 8px; font-size: calc(7px + 3pt); }
  .project-detail-intro .project-subtitle { margin-bottom: 0; font-size: calc(11px + var(--body-text-increase)); }
  .project-detail-copy .project-description { margin-bottom: 10px; font-size: calc(9px + var(--body-text-increase)); line-height: 1.55; }
  .project-contribution { padding-top: 10px; }
  .project-contribution strong { font-size: calc(8px + var(--body-text-increase) + 3pt); }
  .project-contribution p { margin-top: 6px; font-size: calc(7px + 3pt); }
  .project-detail-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

  .project-facts { margin: 8px 0; gap: 5px; }
  .project-fact { min-height: 40px; padding: 5px; grid-template-columns: 18px 1fr; gap: 5px; }
  .project-fact img { width: 17px; height: 17px; }
  .project-fact strong { font-size: calc(6px + 2pt); }
  .project-fact small { font-size: calc(7px + var(--body-text-increase) + 2pt); }
  .journal-item { min-height: 82px; grid-template-columns: 58px minmax(0,1fr) 18px; gap: 7px; }
  .journal-date { font-size: 7px; }
  .journal-title strong { margin-bottom: 3px; font-size: 13px; }
  .journal-title small { font-size: 13px; line-height: 1.4; }
  .journal-body { padding: 0 9px 20px 68px; font-size: calc(9px + var(--body-text-increase) + 2pt); line-height: 1.65; }
  .journal-body p { margin-bottom: 10px; }
  .journal-image { margin: 14px 0 17px; }
  .journal-byline, .journal-image figcaption { font-size: 6px; }
  .journal-byline { font-size: calc(6px + 1pt); }
  .journal-subheading { margin: 12px 0 6px; font-size: 12px; }
  .empty-state { min-height: 90px; padding: 13px; gap: 10px; }
  .empty-mark { flex-basis: 30px; width: 30px; height: 30px; font-size: 14px; }
  .empty-state strong { font-size: 9px; }
  .empty-state p { font-size: calc(8px + var(--body-text-increase)); }
  .empty-note { display: none; }
  .events-panel { padding-top: 20px; }
  .events-heading { margin-bottom: 23px; }
  .event-list { grid-template-columns: 1fr; gap: 8px; }
  .event-card { min-height: 75px; padding: 9px 11px; grid-template-columns: 42px 1fr 14px; gap: 10px; }
  .event-date { width: 40px; height: 43px; }
  .event-date strong { font-size: 16px; }
  .event-date small { margin-top: 3px; font-size: 6px; }
  .event-copy { gap: 2px; }
  .event-copy small { font-size: 6px; }
  .event-copy strong { font-size: 14px; line-height: 1.25; }
  .event-copy span { font-size: calc(8px + var(--body-text-increase)); }
  .event-empty { min-height: 94px; }
  .events-footnote { right: 18px; bottom: 12px; font-size: 7px; }
  .contact-panel { padding-top: 30px; padding-bottom: 60px; grid-template-columns: 1fr; align-content: center; gap: 12px; }
  .contact-copy .eyebrow { margin-bottom: 9px; font-size: 7px; }
  .contact-copy h1 { margin-bottom: 11px; font-size: clamp(52px, 14vw, 72px); }
  .contact-copy > p:last-child { max-width: 380px; margin-bottom: 0; font-size: calc(10px + var(--body-text-increase)); line-height: 1.55; }
  .contact-details { padding-top: 7px; }
  .contact-details a, .contact-details button { margin-bottom: 10px; padding-bottom: 5px; font-size: 12px; }
  .contact-details .contact-email { font-size: 16px; }
  .contact-location { margin-top: 7px; font-size: 7px; }
  .site-footer { right: 18px; left: 18px; min-height: 42px; font-size: 6px; }
}

@media (max-height: 700px) and (min-width: 641px) {
  .welcome-panel { padding-top: 15px; padding-bottom: 15px; }
  .welcome-image { height: 61vh; }
  .about-panel { padding-top: 14px; }
  .about-panel .panel-heading { min-height: 55px; margin-bottom: 10px; }
  .about-layout { height: calc(100% - 65px); }
  .about-copy h2 { margin-bottom: 10px; font-size: 34px; }
  .about-copy p { margin-bottom: 7px; font-size: calc(10px + var(--body-text-increase)); line-height: 1.5; }
  .capability-list article { min-height: 55px; }
  .capability-list p { font-size: calc(9px + var(--body-text-increase)); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }

