/* Carmen Emilio Kotch — portfolio
   Clean, quiet, lots of white space. One typeface (Century Gothic, with a
   free look-alike as fallback for visitors who don't have it installed). */

:root {
  --ink: #111111;
  --body: #555555;
  --muted: #8f8f8f;
  --faint: #b5b5b5;
  --line: #e4e4e4;
  --paper: #ffffff;
  --film: #161616;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
  --font: "Century Gothic", "CenturyGothic", "AppleGothic", "Questrial", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }
img, video { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* language switch: only the active language is visible */
html[data-lang="en"] [lang="es"]:not(html),
html[data-lang="es"] [lang="en"]:not(html) { display: none !important; }

/* ---------- header ---------- */
.site-header { padding: 28px 0; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.brand:hover { color: inherit; }
.brand-name { font-size: clamp(18px, 1.8vw, 22px); letter-spacing: 0.04em; }
.brand-role {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  padding-left: 14px; border-left: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.nav a:hover { color: var(--ink); }
.nav a { white-space: nowrap; }
.lang-switch { display: flex; gap: 6px; align-items: center; }
.lang-switch button {
  background: none; border: 0; font: inherit; color: var(--faint); cursor: pointer; padding: 2px;
  letter-spacing: 0.08em;
}
.lang-switch button[aria-pressed="true"] { color: var(--ink); }

/* ---------- type ---------- */
.kicker { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(32px, 5.4vw, 64px); line-height: 1.12; letter-spacing: -0.01em; max-width: 15em; font-weight: 400; }
.intro { font-size: clamp(15px, 1.4vw, 17px); color: var(--body); max-width: 34em; line-height: 1.75; }
h2.section-title { font-weight: 400; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 11vw, 140px) 0 clamp(48px, 7vw, 88px); }
.hero .lead { margin-top: 18px; }
.hero .intro { margin-top: 26px; }

/* ---------- film ---------- */
#work .kicker { margin-bottom: 22px; }
.film { background: var(--film); }
.film video { width: 100%; aspect-ratio: 16 / 9; background: var(--film); }
.film-caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; font-size: 13px; color: var(--body); }
.film-caption a { color: var(--ink); white-space: nowrap; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0 0; }
.section .kicker { margin-bottom: 22px; }

.approach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.approach article { border-top: 1px solid var(--line); padding-top: 18px; }
.approach h3 { font-size: 19px; font-weight: 400; }
.approach p { margin-top: 8px; font-size: 14px; color: var(--body); line-height: 1.7; }

.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.work-card .thumb { aspect-ratio: 16 / 10; background: #ececec; overflow: hidden; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.work-card:hover .thumb img { transform: scale(1.03); }
.work-card h3 { margin-top: 16px; font-size: 18px; font-weight: 400; }
.work-card p { margin-top: 4px; font-size: 13px; color: var(--body); }
.work-card.placeholder .thumb { background: #f5f5f5; border: 1px dashed #d8d8d8; }
.work-card.placeholder h3, .work-card.placeholder p { color: var(--faint); }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); padding: 22px 0 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--ink); }

/* ---------- case study page ---------- */
.cs-hero { padding: clamp(48px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.cs-hero .lead { margin-top: 16px; max-width: 17em; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 6px; font-size: 15px; }

.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 64px); padding: clamp(56px, 8vw, 100px) 0 0; }
.chapter .num { font-size: 13px; color: var(--muted); letter-spacing: 0.1em; }
.chapter h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 400; margin-top: 6px; line-height: 1.25; }
.chapter p { font-size: 16px; color: var(--body); line-height: 1.8; }
.chapter p + p { margin-top: 14px; }
.chapter ul { list-style: none; margin-top: 14px; }
.chapter li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--body); }
.chapter li strong { color: var(--ink); font-weight: 400; }
.figure { margin-top: clamp(40px, 6vw, 72px); }
.figure img { width: 100%; }
.figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

.back { display: inline-block; margin-top: clamp(64px, 9vw, 110px); font-size: 14px; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .nav .nav-link { display: none; }
  .site-header .wrap { align-items: flex-start; }
  .brand { flex-direction: column; gap: 4px; }
  .brand-role { padding-left: 0; border-left: 0; }
  .approach, .work, .facts { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: 1fr; }
  .film-caption { flex-direction: column; }
  .site-footer .wrap { flex-direction: column; }
}
