/* Neribo Creative portfolio */
:root {
  --paper: #F3F4F8;
  --paper-2: #E7E9F3;
  --ink: #12142B;
  --muted: #464A66;
  --line: #C9CDE0;
  --accent: #2333C4;
  --accent-soft: #6573EA;
  --kola: #F0BE33;
  --head: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 0.75rem;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 0.7rem; line-height: 1.15; }
.brand-logo { height: 2.2rem; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--head); font-weight: 800; font-stretch: 112%; font-size: 1.1rem; }
.brand-person { font-size: 0.9rem; color: var(--muted); width: fit-content; }
.nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.btn-line { background: transparent; color: var(--accent); }
.btn-line:hover { background: var(--accent); color: #fff; }
.btn-small { padding: 0.55rem 1.05rem; font-size: 0.95rem; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero-grid { display: grid; gap: 2.5rem; }
.hero-name {
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(2.3rem, 9vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  margin-bottom: 1.25rem;
}
.hero-name-inner {
  display: inline-block;
  color: var(--accent);
  animation: name-in 0.9s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes name-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.hero-bio { font-size: 1.15rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.hero-place { font-size: 0.95rem; color: var(--muted); margin: 0; }

.hero-photo { max-width: 26rem; }
.frame { position: relative; margin: 0 1rem 1rem 0; }
.frame::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  background: var(--accent);
  z-index: 0;
}
.frame .ph { position: relative; z-index: 1; }

/* Image placeholders: the image file sits on top of a neutral gradient.
   If a file is missing, the gradient shows instead of a broken image. */
.ph, .shot {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ph-hero {
  aspect-ratio: 4 / 5;
  background-image: url("../images/hero-headshot.jpg"), linear-gradient(160deg, #D5D8EA, #A3A9CC);
}
.ph-about {
  aspect-ratio: 4 / 3;
  background-image: url("../images/about-photo.jpg"), linear-gradient(150deg, #DAD7CB, #B6B4C6);
}

/* Sections */
.section { padding-block: clamp(3rem, 8vw, 6.5rem); }
.section-tint { background: var(--paper-2); }
.section-title { font-weight: 800; font-stretch: 112%; font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 2rem; max-width: 20ch; }

.split { display: grid; gap: 2rem; align-items: center; }
.split h2 { font-weight: 800; font-stretch: 112%; font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 1.25rem; }

/* Skills */
.skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 3rem; }
.skills li { border-top: 3px solid var(--ink); padding-top: 1rem; }
.skills h3 { font-size: 1.35rem; font-weight: 800; font-stretch: 105%; margin-bottom: 0.5rem; }
.skills p { margin: 0; color: var(--muted); }

/* Work */
.work-head { display: grid; gap: 1rem; margin-bottom: 2rem; }
.work-head .section-title { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.filter {
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0.35rem 0;
  cursor: pointer;
}
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }

.grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: 1fr; }
.work { margin: 0; }
.shot { aspect-ratio: 4 / 3; }
.work figcaption { display: flex; flex-direction: column; margin-top: 0.6rem; line-height: 1.35; }
.work figcaption span { color: var(--muted); font-size: 0.95rem; }
.shot-1 { background-image: url("../images/work-1.jpg"), linear-gradient(140deg, #CFD3E8, #9FA6CE); }
.shot-2 { background-image: url("../images/work-2.jpg"), linear-gradient(140deg, #DCD8C8, #B9B5A4); }
.shot-3 { background-image: url("../images/work-3.jpg"), linear-gradient(140deg, #D3D9DD, #A7B1BD); }
.shot-4 { background-image: url("../images/work-4.jpg"), linear-gradient(140deg, #D9D3DC, #B0A6BC); }
.shot-5 { background-image: url("../images/work-5.jpg"), linear-gradient(140deg, #D6DCCF, #A9B4A2); }
.shot-6 { background-image: url("../images/work-6.jpg"), linear-gradient(140deg, #DBD5CE, #B5ABA0); }

/* Quotes */
.quotes { display: grid; gap: 2.5rem; }
.quote { margin: 0; border-left: 4px solid var(--accent); padding-left: 1.25rem; }
.quote p { font-family: var(--head); font-weight: 600; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.3; margin-bottom: 1rem; }
.quote footer { color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact { display: block; }
.contact-lead { font-size: 1.15rem; color: var(--muted); }
.contact-detail { font-size: 1rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #E4E6F4; padding-block: 2rem; font-size: 0.95rem; }
.site-footer :focus-visible { outline-color: var(--kola); }
.footer-row { display: grid; gap: 0.5rem; }
.footer-row p { margin: 0; }
.footer-logo { height: 1.6rem; width: auto; display: inline-block; vertical-align: middle; margin-right: 0.6rem; }
.footer-brand { font-family: var(--head); font-weight: 800; font-stretch: 112%; color: #fff; }

/* Tablet and up */
@media (min-width: 720px) {
  .header-row { grid-template-columns: auto 1fr auto; }
  .nav { grid-column: auto; grid-row: auto; justify-content: center; overflow: visible; }
  .hero-grid { grid-template-columns: 7fr 5fr; align-items: center; gap: 3rem; }
  .split { grid-template-columns: 5fr 6fr; gap: 4rem; }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .work-head { grid-template-columns: 1fr auto; align-items: end; }
  .grid[data-filter="all"] { grid-template-columns: repeat(12, 1fr); }
  .grid[data-filter="all"] .w1 { grid-column: span 7; }
  .grid[data-filter="all"] .w2 { grid-column: span 5; }
  .grid[data-filter="all"] .w3,
  .grid[data-filter="all"] .w4,
  .grid[data-filter="all"] .w5 { grid-column: span 4; }
  .grid[data-filter="all"] .w6 { grid-column: span 12; }
  .grid[data-filter="all"] .w1 .shot { aspect-ratio: 7 / 5; }
  .grid[data-filter="all"] .w2 .shot,
  .grid[data-filter="all"] .w3 .shot,
  .grid[data-filter="all"] .w4 .shot,
  .grid[data-filter="all"] .w5 .shot { aspect-ratio: 1 / 1; }
  .grid[data-filter="all"] .w6 .shot { aspect-ratio: 12 / 5; }
  .grid:not([data-filter="all"]) { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .quote-offset { margin-top: 3.5rem; }
  .footer-row { grid-template-columns: auto 1fr; gap: 2rem; }
  .footer-row p:last-child { text-align: right; max-width: none; }
}
@media (min-width: 1000px) {
  .skills { grid-template-columns: repeat(3, 1fr); }
  .grid:not([data-filter="all"]) { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-name-inner { animation: none; }
}
