:root {
  --bg: #faf9f6;
  --surface: #fcf9f8;
  --surface-soft: #f0eded;
  --surface-muted: #e5e2e1;
  --ink: #1a1a1a;
  --muted: #4f4632;
  --muted-soft: #827660;
  --line: #d4c5ab;
  --sunflower: #ffc107;
  --sunflower-dark: #785900;
  --olive: #3c4632;
  --olive-soft: #dbe7cb;
  --radius: 4px;
  --hero-gradient:
    linear-gradient(180deg, transparent 0%, transparent 58%, var(--bg) 100%),
    radial-gradient(ellipse 58rem 34rem at 76% 20%, rgba(255, 193, 7, 0.34) 0%, rgba(255, 193, 7, 0.13) 38%, transparent 72%),
    radial-gradient(ellipse 60rem 38rem at 74% 22%, rgba(219, 231, 203, 0.78) 0%, rgba(219, 231, 203, 0.24) 42%, transparent 76%),
    var(--bg);
  color-scheme: light;
  font-family: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--hero-gradient);
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-size: 100% 100vh;
  color: var(--ink);
}

body.has-lightbox {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--sunflower-dark);
}

.inline-link {
  color: var(--sunflower-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--olive);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(60, 70, 50, 0.16);
  border-radius: 999px;
  background: rgba(252, 249, 248, 0.78);
  box-shadow: 0 8px 18px rgba(60, 70, 50, 0.08);
}

.locale-switcher a {
  min-width: 42px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.locale-switcher a:hover {
  color: var(--olive);
  transform: translateY(-1px);
}

.locale-switcher a[aria-current="true"] {
  background: var(--sunflower);
  color: var(--ink);
}

.section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  position: relative;
  display: block;
  min-height: auto;
  padding-top: 68px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.hero-copy {
  max-width: 880px;
}

.eyebrow,
.project-kicker {
  margin: 0 0 24px;
  color: var(--olive);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Newsreader", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: 6.4rem;
  font-weight: 700;
  line-height: 0.98;
}

h2 {
  margin-bottom: 22px;
  font-size: 3.85rem;
  font-weight: 600;
  line-height: 1.05;
}

h3 {
  margin-bottom: 12px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-claim {
  max-width: 660px;
  margin-bottom: 42px;
  color: var(--muted);
  font-family: "Newsreader", Georgia, serif;
  font-size: 2.65rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

.intro-section p,
.section-heading p,
.project-content p,
.stack-item p,
.contact-section p,
.site-footer {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--olive);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--sunflower);
  background: var(--sunflower);
  color: var(--ink);
}

.button.secondary {
  background: transparent;
  color: var(--olive);
}

.intro-section,
.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(320px, 7fr);
  gap: 64px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.copy-stack {
  max-width: 720px;
}

.intro-highlight {
  margin-bottom: 28px;
  padding-left: 22px;
  border-left: 4px solid var(--sunflower);
  color: var(--muted);
  font-family: "Newsreader", Georgia, serif;
  font-size: 2rem;
  font-style: italic;
  line-height: 1.35;
}

.copy-stack p:last-child,
.section-heading p:last-child,
.contact-section p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 54px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.project-media {
  position: relative;
  min-height: 220px;
  margin: 32px 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.project-media-image img {
  display: block;
  width: 100%;
  height: 220px;
  min-height: 220px;
  object-fit: cover;
}

.project-media-link {
  display: block;
  height: 100%;
}

.project-media-link img {
  display: block;
}

.project-media-image::before,
.project-media-image::after {
  display: none;
}

.project-media-banner img {
  object-position: 56% 17%;
}

.project-media-cta img {
  object-position: 82% 9%;
}

.project-media-resource img {
  object-position: 50% 45%;
}

.project-media-ristretto img {
  object-position: center;
}

.project-media-amazon {
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.2), transparent 48%),
    linear-gradient(180deg, rgba(60, 70, 50, 0.08), transparent),
    var(--surface);
}

.project-media-amazon img {
  object-position: center;
}

.project-media-amazon::before {
  top: 28px;
  left: 30px;
  width: 128px;
  height: 168px;
  border: 1px solid rgba(60, 70, 50, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(var(--olive) 0 0) 18px 18px / 52% 8px no-repeat,
    linear-gradient(var(--line) 0 0) 18px 40px / 68% 5px no-repeat,
    linear-gradient(var(--line) 0 0) 18px 52px / 58% 5px no-repeat,
    linear-gradient(var(--sunflower) 0 0) 18px 78px / 74% 34px no-repeat,
    linear-gradient(var(--line) 0 0) 18px 126px / 46% 5px no-repeat,
    #fffdf8;
  transform: rotate(-7deg);
}

.project-media-amazon::after {
  right: 28px;
  bottom: 24px;
  width: 158px;
  height: 118px;
  border: 1px solid rgba(60, 70, 50, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(var(--olive) 0 0) 16px 16px / 46% 7px no-repeat,
    linear-gradient(var(--line) 0 0) 16px 34px / 70% 5px no-repeat,
    linear-gradient(var(--line) 0 0) 16px 50px / 80% 5px no-repeat,
    linear-gradient(var(--surface-soft) 0 0) 16px 68px / 82% 34px no-repeat,
    #fffdf8;
  box-shadow: 0 18px 30px rgba(60, 70, 50, 0.08);
}

.project-media::before,
.project-media::after {
  position: absolute;
  content: "";
}

.project-media-one {
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.18), transparent 54%),
    linear-gradient(180deg, rgba(60, 70, 50, 0.08), transparent),
    var(--surface-soft);
}

.project-media-one::before {
  inset: 28px 34px;
  border: 1px solid rgba(60, 70, 50, 0.3);
  border-radius: 12px;
  background:
    linear-gradient(var(--olive) 0 0) 24px 26px / 42% 7px no-repeat,
    linear-gradient(var(--line) 0 0) 24px 52px / 72% 5px no-repeat,
    linear-gradient(var(--sunflower) 0 0) 24px 82px / 34% 32px no-repeat,
    #fffdf8;
  transform: rotate(-4deg);
}

.project-media-one::after {
  right: 28px;
  bottom: 24px;
  width: 96px;
  height: 8px;
  border-radius: 999px;
  background: rgba(60, 70, 50, 0.18);
  transform: rotate(-4deg);
}

.project-media-two {
  background:
    linear-gradient(135deg, var(--surface) 0%, var(--surface-muted) 100%);
}

.project-media-two::before {
  inset: 24px;
  background:
    linear-gradient(135deg, transparent 49%, rgba(60, 70, 50, 0.22) 50%, transparent 51%),
    radial-gradient(circle at 22% 78%, var(--line) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 50%, var(--line) 0 5px, transparent 6px),
    radial-gradient(circle at 78% 22%, var(--line) 0 5px, transparent 6px);
}

.project-media-three {
  background:
    linear-gradient(160deg, rgba(255, 193, 7, 0.22), transparent 45%),
    var(--olive-soft);
}

.project-media-three::before {
  top: 42px;
  left: 34px;
  width: 112px;
  height: 144px;
  border: 1px solid rgba(26, 26, 26, 0.22);
  background:
    linear-gradient(var(--olive) 0 0) 18px 18px / 62% 8px no-repeat,
    linear-gradient(var(--line) 0 0) 18px 44px / 76% 5px no-repeat,
    linear-gradient(var(--sunflower) 0 0) 18px 106px / 52px 18px no-repeat,
    var(--surface);
  transform: rotate(-8deg);
}

.project-media-three::after {
  right: 38px;
  bottom: 38px;
  width: 128px;
  height: 88px;
  border: 1px solid rgba(26, 26, 26, 0.22);
  background:
    linear-gradient(var(--olive) 0 0) 16px 16px / 58% 7px no-repeat,
    linear-gradient(var(--line) 0 0) 16px 38px / 70% 5px no-repeat,
    var(--surface);
  transform: rotate(6deg);
}

.project-content {
  padding-bottom: 8px;
}

.project-title-link {
  display: inline;
  margin-top: 0;
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.project-title-link:hover {
  color: var(--sunflower-dark);
}

.project-content p {
  font-size: 0.95rem;
}

.project-content > a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--sunflower-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-main {
  background: var(--bg);
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: 64px;
  min-height: auto;
  padding-top: 72px;
  padding-bottom: 80px;
}

.case-hero h1 {
  max-width: 920px;
  font-size: 5.4rem;
}

.case-hero .hero-claim {
  max-width: 760px;
  font-size: 2.15rem;
}

.case-meta {
  align-self: end;
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(252, 249, 248, 0.72);
}

.case-meta-item {
  display: grid;
  gap: 6px;
}

.case-meta-item span,
.case-section-label {
  color: var(--olive);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-meta-item strong {
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.25;
}

.case-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-summary-item {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.case-summary-item:first-child {
  padding-left: 0;
}

.case-summary-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.case-summary-item strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
}

.case-summary-item p,
.case-section p,
.case-section li,
.case-note p,
.related-cases p {
  color: var(--muted);
  line-height: 1.65;
}

.case-section {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 7fr);
  gap: 64px;
  border-bottom: 1px solid var(--line);
}

.case-section > div:last-child {
  min-width: 0;
}

.case-section h2 {
  font-size: 2.55rem;
}

.case-section h3 {
  margin-top: 32px;
}

.case-section p {
  max-width: 780px;
}

.case-section ul {
  display: grid;
  gap: 12px;
  max-width: 820px;
  padding-left: 20px;
}

.case-section li::marker {
  color: var(--sunflower-dark);
}

.case-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.case-comparison + * {
  margin-top: 36px;
}

.case-media,
.case-video,
.case-carousel {
  margin: 28px 0;
}

.carousel {
  min-width: 0;
  position: relative;
}

.carousel-track {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track:focus-visible {
  outline: 2px solid var(--sunflower-dark);
  outline-offset: 6px;
}

.carousel-button {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(252, 249, 248, 0.9);
  color: var(--olive);
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.carousel-button:hover {
  border-color: var(--sunflower-dark);
  background: var(--sunflower);
  transform: translateY(-1px);
}

.carousel-button:disabled {
  opacity: 0.38;
  pointer-events: none;
}

.carousel-button:focus-visible {
  outline: 2px solid var(--sunflower-dark);
  outline-offset: 3px;
}

.carousel-button-prev {
  left: auto;
  right: 60px;
}

.carousel-button-next {
  right: 12px;
}

.case-media img,
.case-video video,
.case-carousel img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.case-media-compact {
  max-width: 440px;
}

.case-media-intrinsic {
  width: fit-content;
  max-width: 100%;
}

.case-media-intrinsic img {
  width: auto;
  max-width: 100%;
}

.case-video video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-carousel-track {
  display: grid;
  grid-auto-columns: minmax(260px, 42%);
  grid-auto-flow: column;
  gap: 22px;
  overflow-x: auto;
  padding: 64px 72px 16px 4px;
  scroll-snap-type: x mandatory;
}

.case-carousel .carousel-button {
  top: 4px;
}

.case-carousel .carousel-button:hover {
  transform: translateY(-1px);
}

.case-carousel-slide {
  scroll-snap-align: start;
}

.case-carousel-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.case-carousel-image-button:focus-visible {
  outline: 2px solid var(--sunflower-dark);
  outline-offset: 4px;
}

.case-carousel img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.case-carousel-landscape .case-carousel-track {
  grid-auto-columns: minmax(320px, 68%);
}

.case-carousel-landscape img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--surface);
}

.case-carousel-mobile .case-carousel-track {
  grid-auto-columns: minmax(220px, 32%);
  align-items: end;
}

.case-carousel-mobile img {
  width: auto;
  max-width: 100%;
  height: min(760px, 72vh);
  margin: 0 auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--surface);
}

.case-media figcaption,
.case-video figcaption,
.case-carousel figcaption {
  margin-top: 10px;
  color: var(--muted-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

.case-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.case-panel h3 {
  margin-top: 0;
}

.case-panel p:last-child,
.case-note p:last-child,
.related-cases p:last-child {
  margin-bottom: 0;
}

.case-note {
  padding: 24px;
  border-left: 4px solid var(--sunflower);
  background: rgba(255, 193, 7, 0.08);
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.resource-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.resource-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-soft);
}

.resource-card-content {
  display: grid;
  flex: 1;
  gap: 12px;
  padding: 20px;
}

.resource-card-content h3 {
  margin-bottom: 0;
}

.resource-card-content p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.resource-card-content a {
  align-self: end;
  color: var(--sunflower-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resource-card-actions {
  display: grid;
  gap: 8px;
  align-self: end;
}

.related-cases {
  border-bottom: 1px solid var(--line);
}

.related-cases-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.related-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.related-case-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease;
}

.related-case-card:hover {
  border-color: var(--sunflower-dark);
  color: inherit;
  transform: translateY(-2px);
}

.related-case-card .project-media {
  align-self: start;
  aspect-ratio: 16 / 10;
  min-height: 0;
  margin: 0;
}

.related-case-card .project-media-image img {
  height: 100%;
  min-height: 0;
}

.related-case-card h3 {
  margin-bottom: 10px;
}

.related-case-card p {
  font-size: 0.92rem;
}

.related-case-card strong {
  display: inline-flex;
  margin-top: 10px;
  color: var(--sunflower-dark);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-main {
  background: var(--bg);
}

.about-article {
  max-width: 1120px;
  padding-top: 88px;
  padding-bottom: 64px;
}

.about-hero {
  padding-bottom: 64px;
}

.about-hero h1 {
  margin-bottom: 22px;
  font-size: 4.2rem;
}

.about-hero .hero-claim {
  max-width: none;
  margin-bottom: 0;
  font-size: 1.4rem;
}

.about-section {
  padding: 24px 0;
}

.about-section:last-child {
  border-bottom: 0;
}

.about-section h2 {
  margin: 0 0 28px;
  padding-top: 0;
  font-size: 3rem;
}

.about-quote {
  margin: 0 0 56px;
  padding-left: 28px;
  border-left: 4px solid var(--sunflower);
}

.about-section .about-quote p {
  margin-bottom: 18px;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 2rem;
  font-style: italic;
  line-height: 1.18;
}

.about-quote cite {
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.5;
}

.about-quote cite span {
  font-style: italic;
}

.about-section p,
.about-section li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.about-emphasis {
  margin: 30px 0;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 2rem;
  font-style: italic;
  line-height: 1.35;
}

.about-section ul {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding-left: 20px;
}

.about-section li::marker {
  color: var(--sunflower-dark);
}

.about-signature {
  margin-top: 34px;
  margin-bottom: 0;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
}

.about-callout {
  margin-top: 24px;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.about-callout a {
  color: var(--sunflower-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Ajustes específicos para la sección de contacto en la página "Sobre mí" */
.about-contact {
  padding-top: 24px;
  padding-bottom: 56px;
  border-bottom: 0;
}

.about-contact .contact-actions {
  margin-top: 16px;
}

.experience-section {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(320px, 8fr);
  gap: 64px;
  border-bottom: 1px solid var(--line);
}

.experience-heading p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.experience-list {
  display: grid;
}

.experience-item {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.experience-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.experience-meta p {
  margin-bottom: 8px;
  color: var(--sunflower-dark);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}

.experience-meta span {
  display: block;
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.experience-content h3 {
  margin-bottom: 14px;
}

.experience-content p {
  color: var(--muted);
  line-height: 1.65;
}

.experience-content strong {
  color: var(--ink);
}

.experience-takeaway {
  margin-top: 18px;
  padding-left: 18px;
  border-left: 3px solid var(--sunflower);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.45;
}

.split-section {
  grid-template-columns: minmax(0, 4.5fr) minmax(320px, 7.5fr);
}

.split-section > * {
  min-width: 0;
}

.split-section > div:first-child p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
}

.stack-list {
  display: grid;
  grid-auto-columns: minmax(250px, 46%);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 60px 72px 8px 4px;
  scroll-snap-type: x mandatory;
}

.stack-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-snap-align: start;
  transition: transform 180ms ease, border-color 180ms ease;
}

.stack-item:hover {
  border-color: var(--sunflower-dark);
  transform: translateY(-2px);
}

.stack-item h3 {
  font-size: 1.35rem;
}

.work-carousel .carousel-button {
  top: 0;
}

.work-carousel .carousel-button:hover {
  transform: translateY(-1px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  gap: 16px;
  align-items: center;
  padding: 32px;
  background: rgba(26, 26, 26, 0.78);
  backdrop-filter: blur(12px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.lightbox.is-single .lightbox-prev,
.lightbox.is-single .lightbox-next {
  display: none;
}

.lightbox-figure {
  display: grid;
  justify-items: center;
  margin: 0;
  width: 100%;
}

.lightbox-toolbar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.lightbox-viewport {
  width: 100%;
  max-width: min(86vw, 900px);
  max-height: 78vh;
  overflow: auto;
  border-radius: var(--radius);
}

.lightbox-viewport[data-zoomed="true"] {
  cursor: move;
}

.lightbox-viewport[data-dragging="true"] {
  cursor: grabbing;
}

.lightbox-image {
  display: block;
  width: auto;
  max-width: min(86vw, 760px);
  max-height: 78vh;
  margin: 0 auto;
  border: 1px solid rgba(250, 249, 246, 0.36);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.lightbox-caption {
  max-width: min(86vw, 760px);
  margin-top: 12px;
  color: var(--surface);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.lightbox-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(250, 249, 246, 0.4);
  border-radius: 50%;
  background: rgba(250, 249, 246, 0.12);
  color: var(--surface);
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.lightbox-button:hover {
  border-color: var(--sunflower);
  background: rgba(255, 193, 7, 0.2);
  transform: translateY(-1px);
}

.lightbox-button:focus-visible {
  outline: 2px solid var(--sunflower);
  outline-offset: 3px;
}

.lightbox-button.lightbox-zoom {
  width: auto;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
}

.lightbox-button.lightbox-zoom:disabled {
  opacity: 0.45;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
}

.lightbox-prev {
  justify-self: end;
}

.lightbox-next {
  justify-self: start;
}

.contact-section {
  align-items: center;
  padding-bottom: 110px;
}

.contact-copy {
  max-width: 620px;
}

.contact-section h2 {
  font-size: 4.5rem;
}

.contact-actions {
  margin-top: 32px;
  align-content: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(252, 249, 248, 0.8);
}

.form-eyebrow {
  margin: 0 0 6px;
  color: var(--olive);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.field span {
  color: var(--olive);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  padding: 16px 18px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-soft);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(120, 89, 0, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.16);
  background: rgba(255, 255, 255, 0.96);
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.bot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-footer {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.submit-button {
  width: fit-content;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status.is-error {
  color: #8f2f2f;
}

.form-status.is-success {
  color: var(--olive);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-footer p {
  max-width: 720px;
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
}

.site-footer a {
  font-weight: 700;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
  }

  .header-controls {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 14px;
    font-size: 0.82rem;
  }

  .hero,
  .section {
    width: min(100% - 32px, 1240px);
  }

  .intro-section,
  .split-section,
  .experience-section,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .project-grid,
  .case-summary,
  .case-comparison,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .case-hero,
  .case-section,
  .experience-item,
  .related-case-card {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .related-cases-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 4.85rem;
  }

  h2 {
    font-size: 3rem;
  }

  .hero-claim {
    font-size: 2.25rem;
  }

  .intro-highlight {
    font-size: 1.7rem;
  }

  .contact-section h2 {
    font-size: 3.4rem;
  }

  .case-hero h1 {
    font-size: 4.2rem;
  }

  .case-hero .hero-claim {
    font-size: 2rem;
  }

  .about-hero h1 {
    font-size: 3.9rem;
  }

  .about-hero .hero-claim {
    font-size: 1.75rem;
  }

  .about-signature,
  .about-callout {
    font-size: 1.2rem;
  }

  .about-section .about-quote p {
    font-size: 2.2rem;
  }

  .case-summary-item,
  .case-summary-item:first-child,
  .case-summary-item:last-child {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-summary-item:last-child {
    border-bottom: 0;
  }

  .contact-form {
    padding: 24px;
  }

  .project-card,
  .project-card:first-child,
  .project-card:last-child {
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .header-inner {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: min(100% - 32px, 1240px);
    padding: 18px 0;
  }

  .brand {
    font-size: 1.02rem;
    white-space: nowrap;
  }

  .header-controls {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .main-nav {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    font-size: 0.77rem;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .locale-switcher {
    flex: 0 0 auto;
  }

  .locale-switcher a {
    min-width: 38px;
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .desktop-only {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .hero-claim {
    margin-bottom: 32px;
    font-size: 1.8rem;
  }

  .intro-highlight {
    font-size: 1.45rem;
  }

  .contact-section h2 {
    font-size: 2.9rem;
  }

  .case-hero h1 {
    font-size: 3.35rem;
  }

  .case-hero .hero-claim {
    font-size: 1.65rem;
  }

  .case-section h2 {
    font-size: 2.05rem;
  }

  .about-hero h1 {
    font-size: 3.1rem;
  }

  .about-hero .hero-claim {
    font-size: 1.5rem;
  }

  .about-section h2 {
    font-size: 2.05rem;
  }

  .about-quote {
    padding-left: 20px;
  }

  .about-section .about-quote p {
    font-size: 1.82rem;
  }

  .about-emphasis {
    font-size: 1.7rem;
  }

  .about-signature {
    font-size: 1.4rem;
  }

  .case-meta,
  .case-panel,
  .case-note {
    padding: 20px;
  }

  .case-links .button {
    width: 100%;
  }

  .case-carousel-track {
    grid-auto-columns: minmax(220px, 78%);
  }

  .case-carousel-mobile .case-carousel-track {
    grid-auto-columns: minmax(200px, 70%);
  }

  .case-carousel-landscape .case-carousel-track {
    grid-auto-columns: minmax(260px, 92%);
  }

  .stack-list {
    grid-auto-columns: minmax(220px, 78%);
  }

  .lightbox {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
    padding: 20px 12px;
  }

  .lightbox-toolbar {
    gap: 8px;
    margin-bottom: 10px;
  }

  .lightbox-button {
    width: 42px;
    height: 42px;
  }

  .lightbox-button.lightbox-zoom {
    width: auto;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
  }

  .lightbox-viewport {
    max-width: 100%;
    max-height: 74vh;
  }

  .lightbox-image {
    max-width: 100%;
    max-height: 74vh;
  }

  .case-media-compact {
    max-width: none;
  }

  .contact-form {
    padding: 20px;
    border-radius: 16px;
  }

  .button {
    width: 100%;
  }

  .submit-button {
    width: 100%;
  }

  .project-media {
    min-height: 190px;
  }

  .project-media-image img {
    height: 190px;
    min-height: 190px;
  }

  .site-footer {
    flex-direction: column;
    width: min(100% - 32px, 1240px);
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 0.96rem;
  }

  .main-nav {
    gap: 8px;
    font-size: 0.73rem;
  }

  .locale-switcher a {
    min-width: 36px;
    padding: 6px 9px;
    font-size: 0.78rem;
  }
}
