/* =============================================================
   STYLES.CSS — Inner Pages Dark Theme
   Pedro Ribeiro Portfolio 2026
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Space+Mono:wght@400;700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,400&family=Raleway:wght@100;200;300;400;500;600&display=swap');

/* Design tokens are in css/tokens.css (loaded first in header.php) */
/* Page-level extras for inner pages: */
:root {
  --c-dark-2:     #181818;
  --c-warm-white: #faf8f3;
  --c-gold-dim:   rgba(231,184,0,0.12);
  --c-grey-1:     #252525;
  --c-grey-2:     #444444;
  --c-grey-3:     #888888;
  --c-grey-4:     #c0bdb6;
}


/* ============================================================
   GLOBAL RESETS (all pages)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; transition: color 0.2s; }
p { margin: 0 0 1.2em; }
img { max-width: 100%; height: auto; }


/* ============================================================
   INNER-PAGE BASE DARK THEME
   ============================================================ */
body.inner-page {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.8;
  letter-spacing: 0.02em;
  background: #ffffff;
  color: #3a342c;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h); /* space for fixed nav */
}

body.inner-page h1,
body.inner-page h2,
body.inner-page h3,
body.inner-page h4,
body.inner-page h5,
body.inner-page h6 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 0;
}

body.inner-page h1 { font-size: clamp(32px, 5vw, 64px); color: #111008; }
body.inner-page h2 { font-size: clamp(24px, 3.5vw, 44px); color: #111008; }
body.inner-page h3 { font-size: clamp(16px, 2vw, 24px); color: #b38a00; }
body.inner-page h4 { font-size: clamp(14px, 1.5vw, 20px); color: #1a1810; }
body.inner-page h5,
body.inner-page h6 {
  font-size: clamp(11px, 1.1vw, 13px);
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

body.inner-page small {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #777;
}

body.inner-page a { color: #3a342c; }
body.inner-page a:hover { color: var(--c-gold); }
body.inner-page strong { font-weight: 700; color: #111; }

body.inner-page small strong { color: #666; transition: color 0.2s; }
body.inner-page a:hover small strong { color: var(--c-gold); }


/* ============================================================
   NAV — inner-page dark overrides
   .hp-nav--inner background/backdrop set in homepage.css.
   ============================================================ */
body.inner-page .hp-nav--inner .hp-nav-links a {
  color: rgba(240, 236, 227, 0.75);
}
body.inner-page .hp-nav--inner .hp-nav-links a:hover {
  color: var(--c-off-white);
}

/* Focus ring for inner-page interactive elements — WCAG 2.1 AA */
body.inner-page a:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 2px;
}
button:focus-visible,
.cf-submit:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 2px;
}



/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
body.inner-page .inner-content {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gutter-inner);
}

body.inner-page .widthLimit { max-width: 960px; margin: 0 auto; }
/* .showXLOnly / .hideXLOnly toggled at ≤992px in responsive section below */
body.inner-page .showXLOnly { display: inherit; }
body.inner-page .hideXLOnly { display: none; }


/* ============================================================
   SECTIONS
   ============================================================ */
body.inner-page .uk-section {
  background: transparent;
  padding: 56px clamp(20px, 5vw, 80px);
}

body.inner-page .uk-container {
  max-width: 1100px;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* ============================================================
   BACK LINK
   ============================================================ */
body.inner-page a small strong { color: var(--c-grey-3); transition: color 0.2s; }
body.inner-page a:hover small strong { color: var(--c-gold); }


/* ============================================================
   CARDS
   ============================================================ */
body.inner-page .uk-card-default {
  background: #fff;
  color: #444;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-expo), box-shadow 0.3s;
}

body.inner-page .uk-card-default:hover {
  border-color: rgba(231, 184, 0, 0.45);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

body.inner-page .uk-card-body { padding: 20px 24px; }

body.inner-page .uk-card-default .uk-card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}


/* ============================================================
   PROGRESS BARS
   ============================================================ */
body.inner-page *+.uk-progress { margin-top: 4px; }

body.inner-page .uk-progress {
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

body.inner-page .uk-progress::-webkit-progress-bar   { background: rgba(0,0,0,0.1); }
body.inner-page .uk-progress::-webkit-progress-value { background: var(--c-gold); transition: width 1s var(--ease-expo); }
body.inner-page .uk-progress::-moz-progress-bar      { background: var(--c-gold); }


/* ============================================================
   BADGES / LABELS
   ============================================================ */
body.inner-page .uk-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--c-gold);
  color: var(--c-black);
  padding: 4px 10px;
  border-radius: 2px;
}

body.inner-page .uk-label {
  background: rgba(231, 184, 0, 0.12);
  color: var(--c-gold);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 3px 8px;
}


/* ============================================================
   SUBNAV
   ============================================================ */
body.inner-page .uk-subnav-pill > .uk-active > a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--c-gold);
  color: var(--c-black);
  border-radius: 2px;
}

body.inner-page .uk-subnav > li > a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #777;
  transition: color 0.2s;
}
body.inner-page .uk-subnav > li > a:hover { color: var(--c-gold); }


/* ============================================================
   DIVIDERS
   ============================================================ */
body.inner-page hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 40px 0;
}


/* ============================================================
   GRID SYSTEM
   ============================================================ */
body.inner-page .gridWrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

body.inner-page .gridWrapVariable3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

body.inner-page .gridWrapVariable4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

body.inner-page .gridBox {
  padding: 12px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  justify-self: center;
  align-self: center;
  transition: border-color 0.2s, transform 0.25s var(--ease-expo), box-shadow 0.2s;
}

body.inner-page .gridBox:hover {
  border-color: rgba(231, 184, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Brand logos: dark on light bg — no invert needed */
body.inner-page .gridBox img {
  display: block;
  width: 100%;
  height: 44px;
  object-fit: contain;
  filter: none;
  opacity: 0.65;
  transition: opacity 0.2s;
}
body.inner-page .gridBox:hover img { opacity: 1; }


/* ============================================================
   BIO / CV PAGE
   ============================================================ */

body.inner-page .introRow {
  display: flex;
  width: 100%;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 36px;
}
body.inner-page .introContainer { padding-right: 24px; }

body.inner-page .cv-nome {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
}

body.inner-page .cv-heading {
  margin: 0 0 24px;
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #111008;
}

/* Pull-quote intro paragraph */
body.inner-page .cv-subheading {
  font-family: var(--font-head);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.65;
  color: #3a342c;
  border-left: 3px solid var(--c-gold);
  padding-left: 20px;
  margin: 0 0 36px;
  letter-spacing: 0.01em;
}

/* Section headings inside content */
body.inner-page .cs-body h3 {
  margin-top: 0;
  margin-bottom: 24px;
  padding-top: 4px;
}

/* Work experience / skills table */
body.inner-page .cv-table { display: table; width: 100%; }

body.inner-page .cv-row {
  display: table-row;
}
/* Subtle divider between rows */
body.inner-page .cv-row + .cv-row .cv-cell {
  border-top: 1px solid rgba(0,0,0,0.07);
  padding-top: 32px;
}

body.inner-page .cv-cell {
  display: table-cell;
  padding: 0 0 40px;
  vertical-align: top;
}

body.inner-page .cv-cell:nth-child(1) {
  width: 22%;
  padding-right: 32px;
  padding-bottom: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--c-gold);
  text-transform: uppercase;
  padding-top: 4px;
}

body.inner-page .cv-cell h4 {
  font-size: clamp(14px, 1.6vw, 18px);
  color: #111;
  margin: 0 0 4px;
  font-weight: 700;
}

body.inner-page .cv-cell h5 {
  color: var(--c-gold);
  letter-spacing: 0.05em;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: none;
  font-size: 13px;
  margin: 0 0 10px;
}

body.inner-page .cv-cell p { font-size: 14px; line-height: 1.8; }

/* CV entry metadata */
.cv-company {
  color: #9a6200; /* darkened from #ffa100 — 5.3:1 on warm-white ✓ WCAG AA */
  font-size: 12px;
}
.cv-dates {
  color: #555;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.cv-tools {
  display: block;
  color: #777; /* was #a1a1a1 — 2.4:1 fail; now 4.8:1 ✓ */
  font-weight: 600;
  font-size: 12px;
  margin-top: 12px;
}
.cv-thankyou {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #999;
  text-align: center;
}

/* Education cards */
body.inner-page .edu-row {
  display: flex;
  margin-bottom: 0;
  gap: 16px;
}
body.inner-page .edu-cell {
  flex: 1;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
}

/* Social icons — dark on light bg, no invert */
body.inner-page img[src*="icon-linkedin"],
body.inner-page img[src*="icon-instagram"] {
  filter: brightness(0) opacity(0.55);
  transition: filter 0.2s, transform 0.2s;
}
body.inner-page a:hover img[src*="icon-linkedin"],
body.inner-page a:hover img[src*="icon-instagram"] {
  filter: sepia(1) saturate(4) hue-rotate(5deg) brightness(0.75);
  transform: translateY(-2px);
}

/* Profile photo */
body.inner-page img[src*="pface"] {
  border-radius: 4px;
}

/* .btn-cv-download — CV download button in bio page (replaces old inline styles) */
.btn-cv-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  min-width: 160px;
  background: var(--c-gold);
  color: var(--c-black);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(231,184,0,0.4), 0 0 40px rgba(231,184,0,0.15);
  animation: cvPulse 3s ease-in-out infinite;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-cv-download:hover {
  color: var(--c-black);
  background: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(231,184,0,0.65), 0 0 56px rgba(231,184,0,0.25);
  animation: none;
}

/* .cv-social-icon — social icons in bio header */
.cv-social-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

/* .cv-cta-list / .cv-cta-item — CTA row in bio header */
.cv-cta-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cv-cta-item {
  display: flex;
  align-items: center;
}

/* .cv-portrait — profile image in bio header */
.cv-portrait {
  width: 276px;
  max-width: 100%;
  display: block;
}

/* .cv-divider — semantic <hr> replacement */
.cv-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.10);
  margin: 52px 0;
}

/* Performance metrics highlight grid */
.cv-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.cv-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--c-warm-white);
  border: 1px solid rgba(0,0,0,0.08);
  border-left: 3px solid var(--c-gold);
  border-radius: 4px;
  padding: 12px 16px;
  min-width: 130px;
  flex: 1;
}
.cv-metric-num {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1;
  color: #111008;
  letter-spacing: -0.02em;
}
.cv-metric-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #777;
  line-height: 1.4;
}

/* cvPulse keyframe is defined in homepage.css (shared via cascade) */


/* ============================================================
   SKILLS (bio page)
   ============================================================ */
body.inner-page .skill {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: #555;
  padding: 7px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 100px;
  display: inline-block;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease-expo);
  cursor: default;
}
body.inner-page .skill:hover {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-black);
  transform: translateY(-2px);
}
body.inner-page .skill.xp-earned {
  outline: 2px solid rgba(231, 184, 0, 0.4);
  outline-offset: 3px;
}


/* ============================================================
   CASE STUDY PAGES
   ============================================================ */
body.inner-page .uk-alert-warning {
  background: rgba(231, 184, 0, 0.08);
  border-left: 3px solid rgba(179, 138, 0, 0.6);
  color: #4a3e00;
  border-radius: 2px;
}
body.inner-page .uk-alert-warning p { color: #4a3e00; margin: 0; }

body.inner-page .uk-grid img {
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: border-color 0.25s, transform 0.3s var(--ease-expo);
}
body.inner-page .uk-grid img:hover {
  border-color: rgba(231, 184, 0, 0.4);
  transform: translateY(-2px);
}

body.inner-page .uk-modal-dialog {
  background: #fff;
  color: #333;
}
body.inner-page .uk-modal-close-full { color: #888; }
body.inner-page .uk-modal-close-full:hover { color: var(--c-gold); }


/* ============================================================
   CONTENT UTILITY CLASSES
   ============================================================ */
body.inner-page .objective  { font-weight: 700; color: #111; }
body.inner-page .key-results { margin-left: 20px; }
body.inner-page .portfolio { margin-top: 20px; }

.cs-body { padding-top: clamp(40px, 5vw, 64px); padding-bottom: 80px; }
body.inner-page .highlight { font-weight: 700; color: #b38a00 !important; }

/* Confidentiality note — inline, unobtrusive */
.cs-confidential {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #aaa;
  margin: -12px 0 28px;
  padding: 0;
}

body.inner-page p { color: #4a4540; line-height: 1.8; }
body.inner-page li { color: #4a4540; line-height: 1.7; margin-bottom: 6px; }
body.inner-page ul { padding-left: 20px; }

/* Case study section labels */
.cs-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
  border-left: 3px solid var(--c-gold);
  padding-left: 12px;
  margin: 44px 0 16px;
}
.cs-section-label:first-child { margin-top: 0; }

/* Case study full-width images */
.cs-full-img {
  width: 100%;
  display: block;
  border-radius: 4px;
  margin: 28px 0;
}

/* Case study feature / tools lists */
.cs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.cs-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.75;
  margin-bottom: 8px;
  color: #4a4540;
}
.cs-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #9a6200;
  font-family: var(--font-mono);
  font-size: 11px;
  top: 3px;
}

/* Case study satisfaction badges (10/10) */
.cs-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.cs-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-warm-white);
  border: 1px solid rgba(0,0,0,0.08);
  border-left: 3px solid var(--c-gold);
  border-radius: 4px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #555;
}
.cs-badge strong {
  font-family: var(--font-display);
  font-size: 20px;
  color: #111008;
  letter-spacing: -0.02em;
  line-height: 1;
}


/* ============================================================
   INNER-PAGE FOOTER — matches hp-footer style exactly
   ============================================================ */
.ip-footer-shared {
  /* extends .hp-footer from homepage.css */
  padding-right: clamp(180px, 18vw, 220px); /* clear the gamification HUD */
}

.ip-footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  flex-wrap: wrap;
}

/* CV pill inside inner-page footer */
.ip-footer-cv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #080808;
  background: var(--c-gold);
  padding: 7px 14px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(231, 184, 0, 0.35);
  animation: cvPulse 3s ease-in-out infinite;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ip-footer-cv:hover {
  color: #080808;
  background: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(231, 184, 0, 0.6);
  animation: none;
}

@media (max-width: 640px) {
  .ip-footer-shared { padding-right: var(--gutter, 20px); flex-wrap: wrap; gap: 16px; }
  .ip-footer-left { width: 100%; }
}


/* ============================================================
   FOOTER (legacy inline — kept for pages that still use it)
   ============================================================ */
body.inner-page footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 28px 24px;
  border-top: 1px solid rgba(231, 184, 0, 0.08);
  background: var(--c-black);
}

body.inner-page .column { flex: 1; text-align: left; }
body.inner-page .footer-left-column  { width: 50%; }
body.inner-page .footer-right-column { width: 50%; text-align: right; }

body.inner-page footer p,
body.inner-page footer span,
body.inner-page footer a {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-grey-3);
}
body.inner-page footer a:hover { color: var(--c-gold); }


/* ============================================================
   OFF-CANVAS
   ============================================================ */
body.inner-page .uk-open { background-color: var(--c-black) !important; }
body.inner-page .uk-offcanvas-flip .uk-open > .uk-offcanvas-bar { width: 100%; }


/* ============================================================
   ALL WORKS PAGE
   ============================================================ */
.aw-page {
  min-height: 100vh;
  background: var(--c-warm-white); /* warm cream — consistent with contact page body */
  color: #3a342c;
}

.aw-header {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 80px) clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
  background: #ffffff; /* header stays crisp white, warm tint starts below */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* constrain both back link and inner content to same 960px column */
.aw-header-inner {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Back link — block-level flex so max-width / margin: auto align it with .aw-header-inner */
.aw-back {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 32px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666; /* 5.7:1 on white — WCAG AA ✓ */
  transition: color 0.2s;
}
.aw-back:hover { color: var(--c-gold); }

.aw-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  border: 1px solid rgba(231, 184, 0, 0.45);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.aw-title {
  font-family: var(--font-display) !important;
  font-size: clamp(48px, 8vw, 100px) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.025em !important;
  color: #111008 !important; /* 16.8:1 on white — WCAG AAA ✓ */
  margin: 0 0 24px !important;
}

.aw-title-dim { color: var(--c-gold); }

.aw-subtitle {
  font-family: var(--font-head);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 300;
  color: #555; /* 7.3:1 on white — WCAG AA ✓ */
  max-width: 560px;
  line-height: 1.65;
}

/* Work rows */
.aw-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 60px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.aw-row {
  display: block;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: inherit;
  transition: border-color 0.3s;
}
.aw-row:hover { border-color: rgba(231, 184, 0, 0.35); }

.aw-row-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: brightness(0.85) saturate(0.7);
  transition: opacity 0.5s ease;
}
.aw-row:hover .aw-row-bg { opacity: 0.08; }

.aw-row-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 4vw, 52px) clamp(20px, 4vw, 48px);
}

.aw-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  color: rgba(231, 184, 0, 0.18);
  line-height: 1;
  transition: color 0.3s;
}
.aw-row:hover .aw-num { color: rgba(231, 184, 0, 0.55); }

.aw-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.aw-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--c-gold);
  color: var(--c-black);
  padding: 3px 9px;
  border-radius: 2px;
}

.aw-badge--year {
  background: transparent;
  border: 1px solid rgba(231, 184, 0, 0.3);
  color: var(--c-gold);
}

.aw-item-title {
  font-family: var(--font-head) !important;
  font-size: clamp(18px, 2.5vw, 28px) !important;
  font-weight: 700 !important;
  color: #111008 !important;
  margin: 0 0 10px !important;
  transition: color 0.2s;
  letter-spacing: -0.01em !important;
}
.aw-row:hover .aw-item-title { color: #000 !important; }

.aw-desc {
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.65;
  color: #666;
  max-width: 580px;
  margin: 0 0 14px !important;
}

.aw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.aw-meta span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}
.aw-meta span + span::before {
  content: '·';
  margin-right: 16px;
  color: rgba(136, 136, 136, 0.4);
}

.aw-arrow {
  color: rgba(231, 184, 0, 0.3);
  width: 28px;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.3s var(--ease-expo);
}
.aw-row:hover .aw-arrow {
  color: var(--c-gold);
  transform: translateX(6px);
}
.aw-arrow svg { width: 28px; height: 28px; }

.aw-footer-note {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 clamp(16px, 4vw, 60px) 48px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-grey-3);
}

/* ============================================================
   CONTRAST — override lime-green result boxes in case studies
   ============================================================ */
body.inner-page ul[style*="187,255,175"],
body.inner-page ul[style*="187, 255, 175"] {
  background: rgba(0, 210, 100, 0.07) !important;
  border-left: 3px solid rgba(0, 210, 100, 0.35) !important;
  border-radius: 4px !important;
  padding: 16px 20px !important;
}
body.inner-page ul[style*="187,255,175"] li,
body.inner-page ul[style*="187, 255, 175"] li {
  color: #2a4a2a !important;
}
body.inner-page ul[style*="187,255,175"] li strong,
body.inner-page ul[style*="187, 255, 175"] li strong {
  color: #111 !important;
}

/* Fix green HUD status text contrast */
.g-hud-status { color: #4dffb4 !important; }

/* ============================================================
   COLOR & VIBRANCY — inner pages (light theme)
   ============================================================ */
body.inner-page .uk-section:nth-child(even) {
  background: rgba(0, 0, 0, 0.025);
}

/* Section accent gradient strip */
body.inner-page .uk-section:first-of-type {
  background: linear-gradient(135deg, rgba(231,184,0,0.07) 0%, transparent 55%);
}

/* Case study image captions/context */
body.inner-page small[style*="font-weight: 700"],
body.inner-page small[style*="font-weight:700"] {
  color: #b38a00 !important;
  font-family: var(--font-mono) !important;
}

/* ============================================================
   GOLD CTA — force black text regardless of link inheritance
   ============================================================ */
body.inner-page a.ip-footer-cv,
body.inner-page a.ip-footer-cv:hover,
body.inner-page a.contact-pg-cv-btn,
body.inner-page a.contact-pg-cv-btn:hover,
body.inner-page a.cf-submit,
.hp-footer a.ip-footer-cv,
.hp-footer a.ip-footer-cv:hover {
  color: #080808 !important;
}

/* Footer lives on dark bg — links must stay light */
body.inner-page .hp-footer a,
body.inner-page .hp-footer .footer-copy,
body.inner-page .hp-footer .footer-copy span {
  color: var(--c-grey-4);
}
body.inner-page .hp-footer a:hover {
  color: var(--c-gold);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .aw-row-inner { grid-template-columns: 48px 1fr; gap: 16px; }
  .aw-arrow { display: none; }
  .aw-num { font-size: clamp(22px, 6vw, 36px); }
  .aw-header { padding: 24px 16px 28px; }
  .aw-list { padding: 0 16px; }
  .aw-footer-note { padding: 0 16px 32px; }
}

@media (max-width: 992px) {
  body.inner-page .uk-section { padding: 40px clamp(16px, 4vw, 32px); }
  body.inner-page .uk-card-default { width: 90%; margin: 0 auto; }
  body.inner-page .inner-content { padding: 0 16px; }

  body.inner-page .cv-cell {
    display: block;
    width: 100% !important;
    padding-bottom: 24px;
  }
  body.inner-page .cv-cell:nth-child(1) { padding-right: 0; padding-bottom: 4px; }
  body.inner-page .cv-nome     { margin-top: 28px; font-size: 9px; }
  body.inner-page .cv-heading  { font-size: clamp(24px, 8vw, 44px); margin-top: 8px; }
  body.inner-page .cv-subheading { font-size: 15px; font-weight: 400; }

  body.inner-page .showXLOnly { display: none; }
  body.inner-page .hideXLOnly { display: inherit; }

  body.inner-page .edu-row      { flex-direction: column; gap: 12px; }
  body.inner-page .introRow     { flex-direction: column-reverse; gap: 16px; padding: 20px; }
  body.inner-page .introContainer { padding-right: 0; }
  .cv-highlights                { gap: 8px; }
  .cv-metric                    { min-width: calc(50% - 4px); flex: unset; }

  body.inner-page footer { flex-direction: column; gap: 8px; text-align: center; }
  body.inner-page .footer-left-column,
  body.inner-page .footer-right-column { width: 100%; text-align: center; }
}

@media (max-width: 768px) {
  body.inner-page .gridWrap { gap: 8px; }
  body.inner-page .gridWrap > .gridBox { flex: 0 0 calc((100% - 3 * 8px) / 4); padding: 8px; }
  body.inner-page .gridWrapVariable4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  body.inner-page .gridWrap { gap: 16px; }
  body.inner-page .gridWrap > .gridBox { flex: 0 0 calc((100% - 6 * 16px) / 7); }
}


/* ============================================================
   CONTACT PAGE — modern layout
   ============================================================ */
.contact-pg-hero {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 80px) clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
  /* light theme — inherits from body */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Constrain contact header content to same 960px column as body content.
   .aw-back gets its own alignment from the shared .aw-back rule above. */
.contact-pg-hero .aw-header-inner {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.contact-pg-body {
  background: var(--c-warm-white);
  padding: clamp(40px, 5vw, 72px) clamp(20px, 5vw, 80px) clamp(40px, 5vw, 72px);
}

.contact-pg-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

/* Form card */
.contact-pg-card {
  background: #fff;
  border-radius: 8px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 4px 40px rgba(0,0,0,0.06);
}

/* Info sidebar */
.contact-pg-info {
  padding-top: 8px;
}

.contact-pg-info-block {
  margin-bottom: 28px;
}

.contact-pg-info-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}

.contact-pg-info-val {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: #111;
  line-height: 1.5;
}

.contact-pg-info-val[href]:hover { color: var(--c-gold); }

.contact-pg-socials {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-pg-socials a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #555;
  transition: color 0.2s;
}
.contact-pg-socials a:hover { color: var(--c-gold); }

.contact-pg-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-black);
  background: var(--c-gold);
  padding: 10px 18px;
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(231,184,0,0.4);
  animation: cvPulse 3s ease-in-out infinite;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.contact-pg-cv-btn:hover {
  color: var(--c-black);
  background: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(231,184,0,0.65);
  animation: none;
}


/* ============================================================
   CONTACT FORM — cf-* classes
   ============================================================ */
.cf-form { display: flex; flex-direction: column; gap: 20px; }

.cf-field { display: flex; flex-direction: column; gap: 6px; }

.cf-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
  font-weight: 400;
}

.cf-input {
  font-family: var(--font-head);
  font-size: 15px;
  color: #111;
  background: #faf8f3;
  border: 1.5px solid #e0ddd6;
  border-radius: 4px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.cf-input::placeholder { color: #bbb; }
.cf-input:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(231, 184, 0, 0.12);
  background: #fff;
}

.cf-textarea { resize: vertical; min-height: 130px; }

.cf-error {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #e05252;
}

.cf-success {
  font-family: var(--font-head);
  font-size: 14px;
  color: #1a6b3a;
  background: #e8f8ef;
  border: 1px solid rgba(0, 180, 80, 0.25);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.cf-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-black);
  background: var(--c-gold);
  border: none;
  border-radius: 3px;
  padding: 13px 24px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(231, 184, 0, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cf-submit:hover {
  background: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(231, 184, 0, 0.6);
}

@media (max-width: 768px) {
  .contact-pg-grid { grid-template-columns: 1fr; }
  .contact-pg-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .contact-pg-body { padding: 32px 16px; }
  .contact-pg-hero { padding: 24px 16px 28px; }
}
