/* ====================================================================
   Brahim Rezzag — portfolio
   Dark warm-charcoal editorial theme. Amber accent #e8a04c (UI) /
   #c28434 (chart marks — validated vs surface #141210).
   ==================================================================== */

:root {
  --bg: #141210;
  --surface: #1c1916;
  --raised: #242019;
  --line: #2e2921;
  --ink: #ece7de;
  --ink-2: #a89f90;
  --ink-3: #7a7164;
  --accent: #e8a04c;
  --accent-strong: #f2b366;
  --accent-deep: #c28434;
  --accent-dim: rgba(232, 160, 76, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 1100px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 900px 500px at 85% -5%, rgba(232, 160, 76, 0.07), transparent),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  background-attachment: fixed;
}

.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.accent { color: var(--accent); }
.dim-ink { color: var(--ink-3); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============ header ============ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(20, 18, 16, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.monogram {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.monogram span { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--accent); }

.lang-toggle {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.lang-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ============ layout ============ */
main > section,
main > footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
}

.section-label {
  display: flex;
  gap: 1.2rem;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.section-label span:last-child { color: var(--ink-3); }

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* ============ hero ============ */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(88vh - 70px);
}

.kicker {
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.badge-available {
  color: #7fe0a8;
  border-color: rgba(127, 224, 168, 0.35);
  background: rgba(127, 224, 168, 0.08);
}

.badge-available .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7fe0a8;
  box-shadow: 0 0 0 0 rgba(127, 224, 168, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 224, 168, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(127, 224, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 224, 168, 0); }
}

.badge-ai {
  color: #c7b3ff;
  border-color: rgba(160, 130, 255, 0.4);
  background: rgba(160, 130, 255, 0.1);
}

.badge-ai .ai-spark {
  width: 13px;
  height: 13px;
  fill: #c7b3ff;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-role {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 500;
  margin-top: 1.4rem;
  color: var(--ink-2);
}

.hero-role-word {
  color: var(--accent);
  border-bottom: 2px solid var(--accent-deep);
  transition: opacity 0.25s;
}

.hero-role-word.swap { opacity: 0; }

.hero-pitch {
  margin-top: 1.2rem;
  max-width: 560px;
  color: var(--ink-2);
  transition: opacity 0.25s;
}

.hero-pitch.swap { opacity: 0; }

.hero-cta {
  display: flex;
  gap: 0.9rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn-solid {
  background: var(--accent);
  color: #1a1000;
  border: 1px solid var(--accent);
}

.btn-solid:hover { background: var(--accent-strong); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-proof {
  display: flex;
  gap: 2.2rem;
  margin-top: 2.8rem;
  list-style: none;
  flex-wrap: wrap;
  color: var(--ink-3);
}

.hero-proof strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-photo { text-align: center; }

.photo-frame {
  position: relative;
  display: inline-block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 14px 14px 0 var(--accent-dim), 0 30px 60px rgba(0, 0, 0, 0.45);
}

.photo-frame img {
  display: block;
  width: min(340px, 70vw);
  height: auto;
}

.photo-caption {
  margin-top: 1.4rem;
  color: var(--ink-3);
}

/* formation + languages under the photo */
.hero-formation,
.hero-languages {
  margin-top: 1.8rem;
  text-align: left;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.hf-heading {
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
  font-weight: 500;
}

.hf-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.hf-cap {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.hf-degree {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.hf-note {
  display: block;
  color: var(--ink-3);
  margin-top: 0.2rem;
  font-size: 0.68rem;
  line-height: 1.4;
}

.lang-heading {
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
  font-weight: 500;
}

.lang-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.lang-flag {
  flex-shrink: 0;
  line-height: 0;
}

.lang-flag .flag {
  width: 30px;
  height: 21px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: block;
}

.lang-info { flex: 1; min-width: 0; }

.lang-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.lang-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}

.lang-level {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--accent);
  text-align: right;
}

.lang-bar {
  height: 5px;
  background: var(--raised);
  border-radius: 999px;
  overflow: hidden;
}

.lang-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transform-origin: left;
  animation: langgrow 0.9s ease-out both;
}

@keyframes langgrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ============ lens ============ */
.lens h2 { max-width: 700px; }

.lens-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.role-chip {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  transition: all 0.18s;
}

.role-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.role-chip[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1000;
}

.role-input-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#roleInput {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  width: min(440px, 100%);
  transition: border-color 0.15s;
}

#roleInput:focus {
  outline: none;
  border-color: var(--accent);
}

#roleInput::placeholder { color: var(--ink-3); }

.role-input-hint { color: var(--accent); }

/* fit panel */
.fit-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.fit-col h3 {
  color: var(--ink-3);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.skill-list {
  list-style: none;
  counter-reset: sk;
}

.skill-list li {
  counter-increment: sk;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.42rem 0;
  border-bottom: 1px dashed var(--line);
  font-weight: 500;
}

.skill-list li::before {
  content: counter(sk, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent-deep);
}

.skill-list li:nth-child(-n+3) { font-size: 1.12rem; }

.skill-list li:nth-child(-n+3)::before { color: var(--accent); }

.evidence-numbers {
  display: flex;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.evidence-num {
  text-decoration: none;
  color: var(--ink-2);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  flex: 1;
  min-width: 150px;
  transition: border-color 0.15s;
}

.evidence-num:hover { border-color: var(--accent); }

.evidence-num strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
}

.evidence-num span { font-size: 0.85rem; }

.evidence-quote {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
  border-left: 3px solid var(--accent-deep);
  padding-left: 1rem;
  transition: opacity 0.25s;
}

.evidence-quote.swap, .evidence-quote-by.swap { opacity: 0; }

.evidence-quote-by {
  margin-top: 0.7rem;
  padding-left: 1rem;
  color: var(--ink-3);
}

/* ============ record / stats ============ */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.4rem 1.3rem;
}

.stat-tile strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.stat-tile span {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.record-platforms {
  color: var(--ink-3);
  border-left: 2px solid var(--accent-deep);
  padding-left: 1rem;
}

.record-platforms strong { color: var(--ink-2); font-weight: 500; }

/* ============ experience ============ */
.timeline {
  list-style: none;
  border-left: 1px solid var(--line);
  margin-left: 0.4rem;
  padding-left: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 2.4rem 2rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5.5px;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-deep);
}

.timeline li.now::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-dim);
}

.timeline .t-when {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0.25rem 0 0.1rem;
}

.timeline .t-org { color: var(--ink-2); font-size: 0.95rem; }

.timeline p {
  color: var(--ink-2);
  max-width: 640px;
  margin-top: 0.5rem;
  font-size: 0.97rem;
}

.awards {
  margin-top: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.8rem;
}

.awards h3 {
  color: var(--ink-3);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.awards ul { list-style: none; }

.awards li {
  padding: 0.35rem 0;
  color: var(--ink-2);
}

.awards li::before {
  content: "✦ ";
  color: var(--accent);
}

/* ============ frequent tasks ============ */
.task-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.task-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.task-tick {
  color: var(--ink-3);
  font-size: 0.75rem;
  transition: color 0.2s;
}

.task-pill.hot {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.task-pill.hot .task-tick { color: var(--accent); }

/* ============ projects ============ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: opacity 0.3s, border-color 0.3s, transform 0.3s;
}

.project-card.matched { border-color: var(--accent-deep); }

.project-card.dimmed { opacity: 0.45; }

.project-card:hover { opacity: 1; }

.project-card.flagship {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 14px 40px rgba(0, 0, 0, 0.4);
}

.project-flag {
  align-self: flex-start;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #1a1000;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
}

.project-media--logo {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background:
    radial-gradient(circle at 50% 120%, rgba(232, 160, 76, 0.18), transparent 60%),
    linear-gradient(160deg, #faf6ee, #efe6d5);
}

.project-media--logo img {
  width: 64%;
  max-width: 220px;
  height: auto;
}

.pm-tagline {
  color: #8a7a5c;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.project-media { position: relative; }

.project-metric {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: #1a1000;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.project-media video,
.project-media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 0;
  background: #000;
}

.project-media--text {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent-deep);
  background:
    radial-gradient(circle at 30% 30%, var(--accent-dim), transparent 60%),
    var(--raised);
}

.project-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.project-body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}

.project-match {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: none;
}

.project-card.matched .project-match { display: block; }

.project-body p {
  color: var(--ink-2);
  font-size: 0.93rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tags span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.3rem;
}

.project-links a {
  color: var(--accent);
  font-size: 0.88rem;
  text-decoration: none;
}

.project-links a:hover { text-decoration: underline; }

/* ============ reviews ============ */
.featured-refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

.ref-card {
  background: linear-gradient(160deg, var(--raised), var(--surface));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
}

.ref-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.ref-head img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-deep);
}

.ref-avatar-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 2px solid var(--accent-deep);
}

.ref-head strong { display: block; }

.ref-head span {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.ref-card blockquote {
  font-size: 0.93rem;
  color: var(--ink-2);
}

.wall-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.wall-head h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.wall-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.wall-filter {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}

.wall-filter:hover { border-color: var(--accent); }

.wall-filter[aria-pressed="true"] {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.review-wall {
  columns: 3 300px;
  column-gap: 1.1rem;
}

.review-card {
  break-inside: avoid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.1rem;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.review-stars {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

.review-src {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  white-space: nowrap;
}

.review-src--up { color: #6fbf73; border-color: rgba(111, 191, 115, 0.4); }
.review-src--fl { color: var(--accent); border-color: rgba(232, 160, 76, 0.4); }

.review-card p {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.review-endorse {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.7rem;
}

.review-endorse span {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.review-meta {
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
}

.review-meta strong {
  color: var(--ink-2);
  font-weight: 500;
}

.review-proj {
  display: block;
  margin-top: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wall-more-wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.wall-count { color: var(--ink-3); }

/* ============ contact ============ */
.contact { text-align: left; }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 3rem;
}

.colophon {
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

/* ============ responsive ============ */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 3rem;
  }

  .hero-photo { order: -1; text-align: left; }

  .photo-frame img { width: min(220px, 60vw); }

  .fit-panel { grid-template-columns: 1fr; }

  .site-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after { transition: none !important; }
}
