/* Cybele Peña — "white archive" */
:root {
  --paper: #ffffff;
  --paper-2: #f4f4f3;
  --ink: #1a1a1a;
  --ink-2: #595959;
  --rule: #e2e2e2;
  --accent: #767676;
  --accent-wash: #ececec;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --max: 1200px;
  --gutter: 24px;
  --edge: clamp(16px, 4vw, 48px);
  --section: clamp(96px, 12vw, 160px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 1.15vw + 10px, 20px);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
::selection { background: var(--accent-wash); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }

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

/* ---------- Type helpers ---------- */
.mono, .label, .nav a, .lang, .btn, .cat {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.5;
}
.cat { color: var(--accent); }
.muted { color: var(--ink-2); }
em, i { font-style: italic; }

h1, h2, h3 { font-weight: 300; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.08; }
h3 { font-size: clamp(24px, 2vw, 30px); line-height: 1.2; font-weight: 400; }
p { margin: 0 0 1em; }

/* link underline grows from left */
.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .4s var(--ease), color .2s;
  padding-bottom: 1px;
}
.link:hover { color: var(--accent); background-size: 0 1px; background-position: right bottom; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: transform .35s var(--ease), border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header.hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.wordmark { font-size: 24px; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.wordmark span { color: var(--accent); font-style: italic; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.lang { display: flex; gap: 6px; color: var(--ink-2); padding-left: 24px; border-left: 1px solid var(--rule); }
.lang a { text-decoration: none; color: var(--ink-2); }
.lang a:hover { color: var(--accent); }
.lang strong { color: var(--ink); font-weight: 500; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.menu-btn span { display: block; width: 24px; height: 1px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .2s; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 72px 0 0 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 0; padding: 24px var(--edge);
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  }
  .nav a { font-family: var(--serif); text-transform: none; letter-spacing: -.01em; font-size: 34px; color: var(--ink); padding: 10px 0; width: 100%; border-bottom: 1px solid var(--rule); }
  .lang { border-left: 0; padding: 24px 0 0; font-size: 14px; }
  .lang a, .lang strong { font-family: var(--mono); font-size: 14px; border: 0; padding: 0; width: auto; }
  body.menu-open .nav { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
  body.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: end; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.hero .eyebrow { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero h1 em { color: var(--accent); }
.hero .lede { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 34em; margin: 32px 0 40px; }
.hero .lede strong { color: var(--ink); font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* found-photo mat */
.mat { background: var(--paper-2); padding: clamp(12px, 1.6vw, 20px); border: 1px solid var(--rule); }
.mat img { width: 100%; }
figure { margin: 0; }
figcaption { margin-top: 14px; display: grid; gap: 2px; }
figcaption .t { font-style: italic; font-size: 16px; }
figcaption .m { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 48% 30%; }

/* develop effect */
.develop img { filter: contrast(.7) brightness(1.12) blur(.4px); transition: filter 2.4s var(--ease); }
.develop.in img { filter: none; }

/* ---------- Subject index strip ---------- */
.index-strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow: hidden; }
.index-strip ul { list-style: none; margin: 0; padding: 18px 0; display: flex; gap: 40px; width: max-content; animation: drift 60s linear infinite; }
.index-strip li { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.index-strip li::before { content: "§  "; color: var(--accent); }
.index-strip:hover ul { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0 0; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) { .section-head { grid-template-columns: 3fr 9fr; gap: var(--gutter); } }
.section-head .cat { padding-top: .9em; border-top: 1px solid var(--ink); }
.section-head h2 { max-width: 15em; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; transform-origin: left; }

.cols { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .cols { grid-template-columns: 3fr 9fr; gap: var(--gutter); } }
@media (min-width: 900px) { .cols > .body { max-width: 40em; } }

/* About */
.bio p:first-child { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.45; font-weight: 300; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; align-content: start; }
.facts li { display: block; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.45; }
.facts .label { display: block; margin-bottom: 4px; color: var(--ink-2); font-size: 11px; }

/* Services */
.services { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
@media (min-width: 760px) { .services { grid-template-columns: 1fr 1fr; } }
.service { padding: 36px 0 40px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; }
@media (min-width: 760px) {
  .service:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--rule); }
  .service:nth-child(even) { padding-left: 40px; }
}
.service .top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.service h3 { margin-bottom: 12px; }
.service .pitch { color: var(--ink-2); font-size: 18px; }
.service ul { list-style: none; padding: 0; margin: 8px 0 24px; font-size: 17px; }
.service li { padding: 6px 0 6px 22px; position: relative; }
.service li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.service .for { margin-top: auto; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.service .for .label { display: block; margin-bottom: 4px; color: var(--ink); font-size: 11px; }
.service:hover .cat { letter-spacing: .14em; }
.service .cat { transition: letter-spacing .4s var(--ease); }

.callout {
  margin-top: clamp(64px, 8vw, 112px);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: clamp(32px, 5vw, 64px);
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 900px) { .callout { grid-template-columns: 1fr auto; } }
.callout p { margin: 0; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25; font-weight: 300; }
.callout p em { color: var(--accent); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 24px 24px 32px 0; border-top: 1px solid var(--ink); counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 40px; letter-spacing: .08em; }
.steps h3 { font-size: 24px; margin-bottom: 10px; }
.steps p { font-size: 17px; color: var(--ink-2); margin: 0; }

/* Column feature */
.feature { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 5fr 7fr; gap: 80px; } }
.found {
  position: relative; aspect-ratio: 4 / 5;
  background: var(--paper-2); border: 1px solid var(--rule);
  padding: 22px; transform: rotate(-1.6deg);
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -32px rgba(26, 26, 26, .35);
  transition: transform .6s var(--ease);
}
.found:hover { transform: rotate(0deg); }
.found .plate {
  height: 100%; display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px; color: #f4f4f3;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(160deg, #3a3a3a, #1a1a1a 70%);
  position: relative; overflow: hidden;
}
.found .plate::after { /* grain */
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.found .plate .mono { color: rgba(244, 244, 243, .7); }
.found .plate strong { font-weight: 300; font-style: italic; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -.02em; }
.found .pencil { position: absolute; bottom: 6px; right: 18px; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-2); transform: rotate(-3deg); }
.feature .body p { max-width: 34em; }
.feature .body .big { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.45; font-weight: 300; }

/* Fields index table */
.table { width: 100%; border-collapse: collapse; font-size: 18px; }
.table th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; color: var(--ink-2); padding: 0 16px 12px 0; border-bottom: 1px solid var(--ink); }
.table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table td:first-child { font-family: var(--mono); font-size: 12px; color: var(--accent); width: 72px; padding-top: 22px; }
.table td:nth-child(2) { font-style: italic; width: 32%; }
.table td:last-child { color: var(--ink-2); font-size: 16px; }
.table tr { transition: background .2s; }
.table tbody tr:hover { background: var(--paper-2); }
@media (max-width: 700px) {
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 56px 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .table td { border: 0; padding: 0; width: auto !important; }
  .table td:first-child { grid-row: span 2; padding-top: 6px; }
  .table td:last-child { margin-top: 4px; }
}

/* Corales */
.corales { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); align-items: center; }
@media (min-width: 900px) { .corales { grid-template-columns: 3fr 6fr 3fr; gap: var(--gutter); } }
.corales h3 { font-style: italic; font-size: clamp(32px, 3.4vw, 48px); font-weight: 300; }
.corales p { margin: 0; color: var(--ink-2); }
.wave { display: flex; gap: 3px; align-items: center; height: 40px; }
@media (min-width: 900px) { .wave { justify-content: flex-end; } }
.wave i { width: 3px; background: var(--accent); border-radius: 2px; height: 30%; animation: wave 1.8s ease-in-out infinite; opacity: .7; }
@keyframes wave { 50% { height: 100%; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 80px; } }
.contact-info .email { font-size: clamp(24px, 2.6vw, 34px); font-weight: 300; display: inline-block; margin: 8px 0 32px; word-break: break-word; }
.contact-info dl { margin: 0; display: grid; gap: 20px; }
.contact-info dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.contact-info dd { margin: 4px 0 0; font-size: 17px; line-height: 1.5; }

.form { display: grid; grid-template-columns: 1fr; gap: 20px 24px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 18px; color: var(--ink);
  width: 100%; padding: 10px 0; min-height: 48px;
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent;
  transition: border-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23595959'/></svg>") right center no-repeat; padding-right: 24px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 14px; color: var(--ink-2); margin: 0; }
.form-status { padding: 16px 20px; border: 1px solid var(--rule); background: var(--paper-2); font-size: 17px; display: none; }
.form-status.show { display: block; }
.form-status.err { border-color: var(--accent); }

/* Footer */
.site-footer { margin-top: var(--section); border-top: 1px solid var(--ink); padding: 40px 0 56px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto; align-items: end; } }
.footer-name { font-size: clamp(40px, 7vw, 96px); font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.footer-name em { color: var(--accent); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink-2); }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { color: var(--accent); }

/* Mobile sticky contact pill */
.pill {
  position: fixed; left: 50%; bottom: 16px; z-index: 40;
  transform: translate(-50%, 120px);
  transition: transform .4s var(--ease);
}
.pill.show { transform: translate(-50%, 0); }
@media (min-width: 861px) { .pill { display: none; } }

/* Language suggestion */
.lang-hint {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; max-width: 340px;
  background: var(--paper); border: 1px solid var(--ink); padding: 16px 18px;
  font-size: 16px; display: none; gap: 12px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.3);
}
.lang-hint.show { display: grid; }
.lang-hint .row { display: flex; gap: 16px; align-items: center; }
.lang-hint button { background: none; border: 0; color: var(--ink-2); cursor: pointer; font: inherit; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.rule.reveal { transform: scaleX(0); opacity: 1; transition: transform 1.2s var(--ease); }
.rule.reveal.in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .develop img { filter: none; }
}
