:root {
  --bg: #100905;
  --ink: #edebe6;
  --amber: #ffad66;
  --orange: #ff7a32;
  --peach: #ffbf7f;
  --muted: #b8aaa0;
  --line: #ffffff26;
  --panel: #1c120e;
  --display: "Bebas Neue", Impact, sans-serif;
  --body: "Space Grotesk", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --gutter: clamp(22px, 5.5vw, 92px);
  --ease: cubic-bezier(.23,1,.32,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--body); font-size: 16px; line-height: 1.6; }
body::before { content: ""; position: fixed; z-index: 0; inset: 0; pointer-events: none; opacity: .035; background: url("/assets/gradient-grain.svg") center/cover; mix-blend-mode: screen; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 7px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-weight: 400; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 18px; padding: 10px 16px; color: var(--bg); background: var(--ink); transform: translateY(-150%); font: 12px var(--mono); text-transform: uppercase; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 15px var(--gutter); border-bottom: 1px solid var(--line); background: #100905e8; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; flex-shrink: 0; white-space: nowrap; font: 13px var(--mono); letter-spacing: -.04em; }
.brand::before { content: "SF"; display: grid; place-items: center; width: 31px; height: 31px; color: var(--bg); background: var(--amber); font: 13px var(--display); letter-spacing: 0; }
.site-nav { display: flex; gap: clamp(14px, 3vw, 34px); align-items: center; }
.site-nav a { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.site-nav a::before { content: ""; width: 4px; height: 7px; background: var(--line); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--amber); }
.site-nav a:hover::before, .site-nav a[aria-current]::before { background: var(--amber); }
.page-shell { position: relative; z-index: 1; overflow: hidden; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; background: var(--amber); }
.page-hero { position: relative; min-height: min(720px, calc(100svh - 74px)); display: grid; align-items: center; padding: clamp(74px, 10vw, 150px) var(--gutter); isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(135deg, #421c0c, var(--bg) 55%); }
.page-hero::after { content: "EDITORIAL / 01"; position: absolute; right: var(--gutter); bottom: 30px; color: #ffffff42; font: 11px var(--mono); letter-spacing: .08em; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: clamp(35px, 7vw, 120px); align-items: center; width: min(1240px, 100%); margin: 0 auto; }
.hero-copy { max-width: 690px; }
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero-copy h1 { max-width: 760px; font: clamp(70px, 11vw, 164px)/.87 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.hero-copy h1 span { color: var(--amber); }
.lead { max-width: 565px; margin-top: 28px; color: var(--muted); font-size: clamp(17px, 1.8vw, 22px); line-height: 1.45; }
.hero-media { position: relative; min-height: 370px; border-left: 1px solid var(--amber); padding-left: 17px; }
.hero-media::before { content: "SANTANA / PANAMÁ"; position: absolute; z-index: 2; top: 12px; left: -1px; color: var(--amber); writing-mode: vertical-rl; transform: translateX(-100%); font: 10px var(--mono); letter-spacing: .12em; }
.hero-media img { width: 100%; height: 470px; object-fit: cover; object-position: 58% 42%; filter: saturate(.78) contrast(1.06); }
.hero-media::after { content: ""; position: absolute; inset: 18px 0 auto 18px; height: 470px; border: 1px solid #ffad6650; pointer-events: none; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; min-width: 0; max-width: 100%; min-height: 50px; padding: 13px 19px; border: 1px solid var(--line); color: var(--ink); background: transparent; font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; overflow-wrap: anywhere; transition: .2s ease; }
.button::after { content: "↗"; color: var(--amber); font-size: 18px; }
.button:hover { color: var(--bg); background: var(--orange); border-color: var(--orange); }
.button:hover::after { color: var(--bg); }
.button-secondary { background: #ffffff08; }
.hero-copy .button { margin-top: 32px; }
.section { width: min(1240px, 100%); margin-inline: auto; padding: clamp(76px, 10vw, 142px) var(--gutter); }
.section-heading { display: flex; justify-content: space-between; gap: 25px; align-items: end; margin-bottom: 48px; border-top: 1px solid var(--line); padding-top: 19px; }
.section-heading h2 { max-width: 690px; font: clamp(45px, 7vw, 94px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.018em; }
.section-heading p { max-width: 300px; color: var(--muted); font-size: 14px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-item { min-height: 235px; padding: 27px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-item .mono { color: var(--amber); font: 11px var(--mono); }
.service-item h3 { margin-top: 38px; font-size: 22px; }
.service-item p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); transition: transform .3s var(--ease), border-color .2s; }
.project-card:hover { border-color: var(--amber); transform: translateY(-7px); }
.project-image { aspect-ratio: 1.55; overflow: hidden; background: #25150f; }
.project-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82); transition: transform .45s var(--ease); }
.project-card:hover .project-image img { transform: scale(1.045); }
.project-copy { padding: 20px; }
.project-copy h3 { font-size: 20px; }
.project-copy p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.text-link { display: inline-flex; gap: 9px; margin-top: 18px; color: var(--amber); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.text-link::after { content: "↗"; font-size: 17px; line-height: .7; }
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.process-list li { padding: 25px 25px 4px 0; border-bottom: 1px solid var(--line); }
.process-list .mono { color: var(--amber); font: 11px var(--mono); }
.process-list h3 { margin-top: 30px; font-size: 21px; }
.process-list p { margin-top: 9px; color: var(--muted); font-size: 14px; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.faq-item { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 20px; line-height: 1.25; }
.faq-item p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.case-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: clamp(35px, 7vw, 120px); align-items: center; width: min(1240px, 100%); margin: 0 auto; padding: clamp(70px, 10vw, 140px) var(--gutter); }
.case-hero .hero-copy { min-width: 0; }
.case-hero .hero-copy h1 { max-width: 100%; min-width: 0; font-size: clamp(56px, 7vw, 92px); line-height: .9; overflow-wrap: anywhere; }
.case-image { position: relative; width: 100%; border-left: 1px solid var(--amber); padding-left: 17px; }
.case-image::after { content: ""; position: absolute; inset: 18px 0 -18px 18px; border: 1px solid #ffad6650; pointer-events: none; }
.case-image img { width: 100%; height: auto; object-fit: contain; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 280px); gap: clamp(32px, 7vw, 110px); width: min(1240px, 100%); margin: 0 auto; }
.case-main { min-width: 0; }
.case-main .section-heading { display: block; margin-bottom: 27px; }
.case-main .section-heading + .prose { max-width: 710px; }
.case-aside { padding: clamp(76px, 10vw, 142px) var(--gutter) 0 0; }
.facts { border-top: 1px solid var(--line); }
.facts > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--amber); font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.prose { max-width: 720px; color: var(--muted); }
.prose p + p { margin-top: 20px; }
.related-projects { width: min(1240px, 100%); }
.related-projects .section-heading { display: block; margin-bottom: 22px; }
.related-projects .text-link { margin-right: 28px; }
.contact-block { display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: end; padding: clamp(36px, 6vw, 75px); background: var(--orange); color: var(--bg); }
.contact-block .eyebrow { color: #100905b8; }
.contact-block .eyebrow::before { background: var(--bg); }
.contact-block h2 { margin-top: 17px; max-width: 680px; font: clamp(52px, 8vw, 110px)/.88 var(--display); text-transform: uppercase; }
.contact-block p { max-width: 430px; margin-top: 18px; font-size: 14px; }
.contact-block .button { border-color: #10090580; color: var(--bg); }
.contact-block .button::after { color: var(--bg); }
.contact-block .button:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px var(--gutter) 47px; color: var(--muted); font: 11px var(--mono); text-transform: uppercase; }
.site-footer a:hover { color: var(--amber); }
.mono { font-family: var(--mono); }
@media (max-width: 780px) {
  .site-header { min-height: 66px; }
  .site-nav { gap: 10px; flex-wrap: wrap; }
  .site-nav a { font-size: 10px; }
  .hero-grid, .case-hero, .case-layout, .contact-block { grid-template-columns: 1fr; }
  .page-hero { min-height: auto; padding-top: 72px; padding-bottom: 80px; }
  .hero-media { min-height: 0; margin-top: 16px; }
  .hero-media img, .hero-media::after { height: min(75vw, 410px); }
  .case-aside { padding: 0 var(--gutter) 60px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 18px; }
  .service-grid, .project-grid, .process-list, .faq-list { grid-template-columns: 1fr; }
  .service-item { min-height: 0; }
  .contact-block { align-items: start; }
  .contact-block .button { font-size: 10px; overflow-wrap: anywhere; word-break: break-word; }
  .site-footer { display: block; }
  .site-footer > * + * { display: block; margin-top: 12px; }
}
@media (max-width: 540px) {
  .case-hero .hero-copy h1 { font-size: clamp(42px, 13vw, 68px); }
  .site-header { align-items: center; flex-wrap: wrap; gap: 5px 14px; padding-block: 11px; }
  .site-nav { flex: 1 1 100%; justify-content: flex-end; gap: 0 10px; }
  .site-nav a { min-height: 30px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* Keep the complete square release artwork visible in project cards. */
.project-image img[src$="boza-perthro-official.jpg"] { object-fit: contain; }
