/* ============================================================
   Jessica Feto — Portfolio
   Design system: precision & restraint — pure white, espresso accent
   Apple · Linear · COS · Notion · premium consulting
   Inter (sans) throughout; Fraunces for key display moments.
   ============================================================ */

:root {
  /* single source of truth for the left/right page gutter, stepped down at
     each breakpoint so every wrapper stays aligned */
  --gutter: 28px;
  --bg: #FFFFFF;
  --bg-alt: #FAFAFA;
  --ink: #0F0F0F;
  --text: #0F0F0F;
  --text-light: #5B5B5B;
  --text-muted: #8A8A8A;
  --accent: #8A6A54;
  --accent-dark: #6B5242;
  --accent-light: #F5F0EC;
  --border: rgba(15, 15, 15, 0.08);
  --border-solid: #ECECEC;
  --white: #FFFFFF;
  --radius: 24px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --shadow: 0 12px 40px rgba(15, 15, 15, 0.06);
  --shadow-md: 0 20px 60px rgba(15, 15, 15, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

/* clip, not hidden: overflow-x:hidden makes html/body a scroll container,
   which stops position:sticky working on the navbar. clip guards against
   sideways scroll without creating one. */
html { overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 56px;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 3.8rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h2 { font-size: 2rem; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em 0; }

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

/* ---------------- Labels / eyebrows ---------------- */
.eyebrow,
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.hero .eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 12px;
}

/* ---------------- Navbar ---------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  transition: padding 0.3s cubic-bezier(0.2,0.8,0.2,1);
}

/* Shrink on scroll */
.navbar.scrolled .container {
  padding-top: 11px;
  padding-bottom: 11px;
}

.navbar .logo {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.navbar .logo span { color: var(--ink); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

/* Nav text links */
.nav-links a:not(.btn) {
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.86rem;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

/* Animated underline */
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.2,0.8,0.2,1);
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--accent);
  text-decoration: none;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  width: 100%;
}

/* Ghost button variant */
.btn.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
}
.btn.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(138,106,84,0.18);
}

.nav-links .btn { margin-left: 4px; }

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  z-index: 60;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary,
.btn-primary:visited {
  background: var(--accent);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(138,106,84,.24);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-solid);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-dark {
  background: var(--ink);
  color: #fff !important;
}
.btn-dark:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-nav-cta {
  padding: 10px 20px;
  font-size: 0.84rem;
}

/* Plain text CTA link (hero secondary) */
.btn-text-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}
.btn-text-link:hover { color: var(--ink); text-decoration: none; }

/* Hero eyebrow with dot */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

.hero-greeting {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-light);
  margin: 0 0 6px;
}

.hero-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.btn-dark:hover {
  background: var(--accent);
}

.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

/* ================================================================
   HERO — Editorial layout, designed from composition principles.

   Architecture:
     .hero                  → viewport height, flex column
       .container           → flex column spine
         .hero-grid         → 2-column grid: [text | portrait], flex: 1
           .hero-text       → flex column, vertically centred
           .hero-photo      → bottom-anchored portrait, fills column
         .ent-strip         → full-width static logo row, pinned to bottom
   ================================================================ */

.hero {
  position: relative;
  overflow: hidden;
  height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #ffffff;
}


/* Container is the vertical spine: grid fills, strip pins to bottom */
.hero > .container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

/* ── Main grid ──
   Row 1 (1fr): text column | portrait column — fills all available height
   Row 2 (auto): logo marquee strip — spans both columns, anchored inside hero
   This keeps everything inside one viewport. ── */
.hero-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0;
}

/* ── Left: typography column ── */
.hero-text {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 52px;
  padding-top: 0;
  padding-bottom: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-photo {
  animation: heroFadeUp 0.9s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: 4.2rem;
  max-width: 560px;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
}

.hero .lede {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 440px;
  margin-bottom: 0;
  line-height: 1.6;
}

.hero .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* ── Right: portrait column ── */
.hero-photo {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}


.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(-8px 0 40px rgba(17,17,17,0.06));
  position: relative;
  z-index: 1;
}

/* ── Floating skill pills ── */
@keyframes float-pill {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

.hero-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 6px 13px 6px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.11);
  white-space: nowrap;
  z-index: 10;
  animation: float-pill 3.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-pill-icon {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-pill-icon svg {
  width: 11px;
  height: 11px;
  color: #fff;
  stroke: #fff;
}

/* Position each pill — irregular, scattered placement rather than a neat grid */
.hero-pill--1 { top: 2%;   left: 4%;   animation-delay: 0.2s;  animation-duration: 3.6s; }
.hero-pill--2 { top: 13%;  right: 1%;  animation-delay: 0.8s;  animation-duration: 4.2s; }
.hero-pill--3 { top: 23%;  left: 0%;   animation-delay: 1.3s;  animation-duration: 3.3s; }
.hero-pill--4 { top: 34%;  right: 7%;  animation-delay: 0.4s;  animation-duration: 3.9s; }
.hero-pill--5 { top: 47%;  left: 8%;   animation-delay: 1.7s;  animation-duration: 3.7s; }
.hero-pill--6 { top: 55%;  right: 2%;  animation-delay: 0.1s;  animation-duration: 4.4s; }
.hero-pill--7 { top: 72%;  left: 2%;   animation-delay: 1.1s;  animation-duration: 3.5s; }
.hero-pill--8 { top: 84%;  right: 6%;  animation-delay: 0.6s;  animation-duration: 4.0s; }

/* ── Stats ── */
.hero-stats {
  display: flex;
  gap: 36px;
  margin: 28px 0 0;
}

.hero-stat {
  position: relative;
  padding-left: 0px;
}

.hero-stat:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 6px;
  width: 1px;
  height: 44px;
  background: rgba(138,106,84,.15);
}

.hero-stat strong {
  display: block;
  font-family: 'Lato', -apple-system, sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}

.hero-stat span {
  display: block;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .6rem;
  color: var(--text-light);
}

/* Skills + Certifications */
#skills {
  padding: 80px 0;
}

/* ---------------- Sections ---------------- */
section {
  padding: 88px 0;
}

/* Tighter padding for fixed-height sections so content fits comfortably */
#experience {
  padding: 56px 0;
}

/* ---- Combined Skills + Certifications layout ---- */
.skills-certs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
  width: 100%;
}

.skills-certs-layout .section-head {
  margin-bottom: 22px;
}

.skills-certs-layout .section-head h2 {
  font-size: 1.5rem;
}

.skills-certs-layout .section-head p {
  font-size: 0.84rem;
  margin-top: 6px;
}

/* Compact skill cards within combined layout */
.skills-col .skills-grid {
  gap: 18px;
}

.skills-col .skill-card {
  padding: 20px 22px;
}

.skills-col .skill-icon-wrap {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}

.skills-col .skill-card h3 {
  font-size: 0.96rem;
  margin-bottom: 7px;
}

.skills-col .skill-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.skills-col .skill-tools {
  padding-top: 14px;
}

/* Compact cert cards within combined layout */
.certs-col .cert-grid {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 14px;
}

.certs-col .cert-card {
  padding: 14px;
  gap: 12px;
}

.certs-col .cert-logo {
  width: 38px;
  height: 38px;
}

.certs-col .cert-title {
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.certs-col .cert-issuer {
  font-size: 0.7rem;
  margin-bottom: 8px;
}

/* Responsive: stack on smaller screens */
@media (max-width: 860px) {
  .skills-certs-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  #skills {
    height: auto;
    overflow: visible;
    padding: 56px 0 !important;
    display: block;
  }
  .skills-col .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .certs-col .cert-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* phones: one certificate per row, so the titles stop wrapping to four lines */
@media (max-width: 600px) {
  .certs-col .cert-grid {
    grid-template-columns: 1fr;
  }
}

section.alt {
  background: var(--bg-alt);
}

section.dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
}

section.dark h2,
section.dark h3 {
  color: #fff;
}

section.dark p {
  color: rgba(255, 255, 255, 0.6);
}

section.dark .section-head .eyebrow {
  color: rgba(255, 255, 255, 0.45);
}

.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-head p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0;
}

/* ---------------- Grids & Cards ---------------- */
.grid {
  display: grid;
  gap: 16px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 8px; }
.card p {
  color: var(--text-light);
  font-size: 0.93rem;
  margin-bottom: 0;
}


/* Tags */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  padding: 4px 11px;
  border-radius: 999px;
  margin: 0 5px 6px 0;
  letter-spacing: 0.01em;
  border: 1px solid var(--border);
}

/* ============================================================
   Logos section — "Presented Work To"
   Single-row scrolling marquee, premium aesthetic
   Fades in as a unit when section enters the viewport
   ============================================================ */
.logos-section {
  padding: 64px 0 60px;
  background: var(--white);
  border-top: 1px solid var(--border-solid);
  border-bottom: 1px solid var(--border-solid);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s cubic-bezier(.22, 1, .36, 1),
              transform 0.8s cubic-bezier(.22, 1, .36, 1);
}

.logos-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.logos-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b8b8b8;
  margin-bottom: 40px;
  font-family: 'Lato', -apple-system, sans-serif;
}

/* edge-fade mask */
.logos-overflow {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logos-scroll 44s linear infinite;
}

.logos-track:hover {
  animation-play-state: paused;
}

/* — logo card — */
.logo-card {
  display: inline-flex;
  align-items: center;
  padding: 0 52px;
  flex-shrink: 0;
  cursor: default;
  outline: none;
}

.logo-card:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.18);
  outline-offset: 8px;
  border-radius: 4px;
}

.logo-card img {
  height: 28px;
  width: auto;
  max-width: 160px;
  display: block;
  filter: grayscale(100%) opacity(0.45);
  transition: filter 0.45s cubic-bezier(.22, 1, .36, 1),
              transform 0.45s cubic-bezier(.22, 1, .36, 1);
  user-select: none;
  pointer-events: none;
}

.logo-card:hover img,
.logo-card:focus img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05) translateY(-1px);
}

@keyframes logos-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 540px) {
  .logos-section { padding: 48px 0 44px; }
  .logos-label { margin-bottom: 28px; }
  .logo-card { padding: 0 36px; }
  .logo-card img { height: 22px; }
}

/* ---------------- About / profile ---------------- */
/* –––––––– About –––––––– */
#about {
    display: flex;
    align-items: center;
    padding: 80px 0;
}
.about-grid{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:64px;
    align-items:center;
}

.about-photo img{
width:280px;
height:360px;
object-fit:cover;
border-radius:32px;
box-shadow:0 30px 60px rgba(0,0,0,.08);
}

.about-degrees {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.about-degree {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(138,106,84,0.18);
  border-radius: 999px;
  padding: 5px 14px;
}

.about-sponsorship {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-solid);
}

.about-copy h2{
font-size:1.6rem;
line-height:1.1;
letter-spacing:-0.04em;
max-width:520px;
margin-bottom:18px;
}

.about-lede{
font-size:0.95rem;
color:var(--ink);
margin-bottom:14px;
max-width:700px;
}

.about-highlight{
color:var(--accent);
font-weight:700;
margin-bottom:14px;
}

.about-copy p{
max-width:760px;
font-size:0.9rem;
margin-bottom:0.65em;
}

.about-info{
margin-top:24px;
}

.about-group{
    border-top:1px solid var(--border-solid);
    padding-top:14px;
    margin-top:14px;
}

.about-copy p:last-of-type{
margin-bottom:8px;
}

.about-group-label{
display:block;
font-size:.72rem;
text-transform:uppercase;
letter-spacing:.22em;
color:var(--text-light);
margin-bottom:10px;
}

.about-credentials{
display:grid;
grid-template-columns:1fr 1fr;
gap:8px 40px;
}

.about-credentials div{
font-size:1rem;
font-weight:400;
color:var(--ink);
}

@media (max-width:860px){
  .about-grid{
    grid-template-columns:1fr;
    gap:40px;
}

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

.about-photo img{
    width:240px;
    height:320px;
}

.about-copy h2{
    font-size:2.8rem;
}

.about-credentials{
    grid-template-columns:1fr;
    gap:14px;
}
}

.about{
    min-height:100vh;
    display:flex;
    align-items:center;
}
/* ---------------- Work Experience ---------------- */
#experience {
    border-top: 1px solid var(--border-solid);
}

#experience::before{

    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:1px;
    background:rgba(0,0,0,.08);
}


.experience-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.experience-meta {
  padding-top: 2px;
}

.experience-meta .exp-company {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 4px;
}

.experience-meta .exp-date {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0 0 4px;
}

.experience-meta .exp-location {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
}

.experience-meta .exp-company-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.experience-content .exp-role {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  margin: 0 0 10px;
}

/* second half of a two-part job title, e.g. Founder · Marketing & Data Consultant */
.experience-content .exp-role-sub {
  font-weight: 400;
  color: var(--text-light);
}
.experience-content .exp-role-sub::before {
  content: "\00b7";
  margin: 0 0.45em 0 0.2em;
  color: var(--text-muted);
}

/* metrics stay bold; the surrounding sentence does not */
.experience-content p strong {
  font-weight: 700;
  color: var(--ink);
}

.experience-content p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* ---------------- Project Grid Layout (Apple-style) ---------------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}

.projects-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.projects-grid--two {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 20px;
}

/* Oxyzn / GA visual — merged into global clean override above */

.tag.oxyzn-tag {
  background: rgba(10,46,31,0.09);
  color: #0a2e1f;
  border: 1px solid rgba(10,46,31,0.18);
}

/* ---------------- Project Cards (Apple-style) ---------------- */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-6px) scale(1.008);
  box-shadow: 0 24px 64px rgba(17,17,17,0.09);
}

/* Featured card — spans full grid width, horizontal layout */
.project-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.project-card--featured .project-visual {
  width: 42%;
  height: auto;
  min-height: 300px;
}

.project-card--featured .project-body {
  flex: 1;
  padding: 40px 44px;
  justify-content: center;
}

/* Visual area */
.project-card .project-visual {
  background: linear-gradient(145deg, #F0EDE8 0%, #E8E4E0 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px 18px;
  height: 110px;
  position: relative;
  overflow: hidden;
}

/* Glow orb removed from ::before */
.project-card .project-visual::before { display: none; }

/* Full-bleed image inside project-visual */
.project-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* -------- Premium editorial card visuals -------- */
.pv-dark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  overflow: hidden;
}
.pv-stat {
  font-size: 68px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #E8E4DE;
  line-height: 1;
}
.pv-word {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #E8E4DE;
  line-height: 1.1;
}
.pv-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9A8E7E;
  margin-top: 10px;
}
.pv-art {
  position: absolute;
  pointer-events: none;
}

/* Soft glow orb overlay via ::after — unique per visual type */
.project-card .project-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.project-card .project-visual.in-visual {
  background: linear-gradient(135deg, #07101f 0%, #0c1a32 100%);
}
.project-card .project-visual.in-visual::after {
  background: radial-gradient(ellipse at 18% 75%, rgba(65,105,210,0.25) 0%, transparent 55%);
}

.project-card .project-visual.oxyzn-visual {
  background: linear-gradient(135deg, #110d1d 0%, #1a122a 100%);
}
.project-card .project-visual.oxyzn-visual::after {
  background: radial-gradient(ellipse at 78% 32%, rgba(150,85,215,0.22) 0%, transparent 55%);
}

.project-card .project-visual.ga-visual {
  background: linear-gradient(135deg, #081210 0%, #0c1c18 100%);
}
.project-card .project-visual.ga-visual::after {
  background: radial-gradient(ellipse at 28% 65%, rgba(45,165,105,0.2) 0%, transparent 55%);
}

.project-card .project-visual.ritual-visual {
  background: linear-gradient(135deg, #150c10 0%, #1e1018 100%);
}
.project-card .project-visual.ritual-visual::after {
  background: radial-gradient(ellipse at 68% 38%, rgba(195,70,120,0.2) 0%, transparent 55%);
}

.project-card .project-visual.hl-visual {
  background: linear-gradient(135deg, #0d0a1e 0%, #140f28 100%);
}
.project-card .project-visual.hl-visual::after {
  background: radial-gradient(ellipse at 48% 52%, rgba(125,65,215,0.22) 0%, transparent 55%);
}

/* Glass-pill badge */
.project-card .project-visual .in-mark {
  font-family: 'Lato', -apple-system, sans-serif;
  font-weight: 900;
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.2em;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 7px;
  width: auto;
  height: auto;
  display: inline-block;
  padding: 6px 11px;
  text-align: left;
  line-height: 1.7;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

/* Card body */
.project-card .project-body {
  padding: 20px 22px 24px;
  display: grid;
  grid-template-rows: auto 4.75rem auto 1fr;
  flex: 1;
}

.card-meta {
  font-size: 0.55rem;
  color: var(--text-light);
  letter-spacing: 0.01em;
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card .project-body .tags {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-card .project-body h3 {
  font-size: 1.08rem;
  margin-bottom: 0;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
}

.project-card .project-body > p {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 0;
}

/* Labels for project type */
.project-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.project-label.real { color: var(--accent); }

/* Stats row with dividers */
.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-solid);
  gap: 0;
}

.project-stats .stat {
  padding: 0 12px;
  border-right: 1px solid var(--border-solid);
}

.project-stats .stat:first-child { padding-left: 0; }
.project-stats .stat:last-child { border-right: none; }

.project-stats .stat strong {
  display: block;
  font-family: 'Lato', -apple-system, sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.project-stats .stat span {
  font-size: 0.58rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.35;
  display: block;
}

/* Card text-link CTA — Apple "Learn more ›" pattern */
.proj-link {
  display: inline-flex;
  align-items: center;
  align-self: end;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  margin-top: 4px;
  transition: gap 0.2s ease;
}
.proj-link:hover { gap: 9px; }

/* ---------------- Concept Cards (compact app-drawer style) ---------------- */
.projects-grid--concept {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.concept-card {
  background: var(--accent-light);
  border-radius: 18px;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.04);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.concept-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
}

.concept-card.hl-concept {
  background: #FAE0EF;
}

.concept-badge {
  font-family: 'Lato', -apple-system, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 14px;
}

.concept-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  color: var(--rt-sage-dark, #4F6249);
  flex-shrink: 0;
}

.concept-card.hl-concept .concept-icon {
  color: var(--hl-magenta-dark, #A1144A);
}

.concept-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.45;
  margin: 0 0 14px;
  flex: 1;
}

.concept-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.concept-link:hover {
  text-decoration: none;
  gap: 8px;
}

@media (max-width: 860px) {
  .projects-grid--concept { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .projects-grid--concept { grid-template-columns: 1fr; }
}

/* ---------------- About stats bar ---------------- */
.about-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.about-stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.about-stat {
  padding: 40px 0;
  border-right: 1px solid var(--border);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-stat:first-child {
  padding-left: 0;
}

.about-stat:last-child {
  border-right: none;
}

.about-stat-num {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.about-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

@media (max-width: 680px) {
  .about-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .about-stat { padding: 28px 0 28px 24px; }
  .about-stat:first-child { padding-left: 0; }
  .about-stat:nth-child(2) { border-right: none; }
  .about-stat:nth-child(3) { padding-left: 0; border-right: 1px solid var(--border); }
  .about-stat-num { font-size: 2.2rem; }
}


/* Legacy stat-card — kept for any other pages using it */
.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 18px;
}

.stat-card strong,
.stat-display {
  display: block;
  font-family: 'Lato', -apple-system, sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #F2A9B6;
  margin-bottom: 4px;
}

.stat-card span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.01em;
  line-height: 1.3;
  display: block;
}

/* ---------------- Skills (Apple-style premium cards) ---------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--white);
  border: none;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.05);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
}

.skill-icon-wrap {
  width: 42px;
  height: 42px;
  background: var(--ink);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.skill-icon-wrap svg {
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,0.85);
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.62;
  margin-bottom: 18px;
  flex: 1;
}

.skill-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-solid);
}

.skill-tool {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-light);
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 4px 10px;
}

@media (max-width: 860px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .skills-grid { grid-template-columns: 1fr; }
}

/* Legacy .skill-card .skill-icon selector kept for safety */
.skill-card .skill-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-card .skill-icon svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.8);
}

.skill-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.skill-card p {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------------- Testimonials ---------------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card .quote {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
  flex-grow: 1;
  margin-bottom: 18px;
}

.testimonial-card .quote::before { content: '\201C'; color: var(--accent); }
.testimonial-card .quote::after  { content: '\201D'; color: var(--accent); }

.testimonial-card .person strong { display: block; font-size: 0.9rem; }
.testimonial-card .person span   { font-size: 0.8rem; color: var(--text-light); }

/* ---------------- Certifications (Apple card style) ---------------- */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1),
              box-shadow 0.35s cubic-bezier(0.2,0.8,0.2,1);
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
  text-decoration: none;
}

.cert-logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  overflow: hidden;
}

.cert-logo svg { display: block; }

.cert-logo--ibm      { background: #1F70C1; }
.cert-logo--google   { background: #fff; border: 1px solid var(--border-solid); }
.cert-logo--stanford { background: #8C1515; }
.cert-logo--udemy    { background: #A435F0; }
.cert-logo--hubspot  { background: #FF7A59; }
.cert-logo--jw       { background: var(--ink); }
.cert-logo--ielts    { background: #003A70; font-size: 0.5rem; letter-spacing: 0.04em; }

.cert-body { flex: 1; min-width: 0; }

.cert-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 3px;
  line-height: 1.3;
}

.cert-issuer {
  font-size: 0.76rem;
  color: var(--text-light);
  margin: 0 0 12px;
}

.cert-footer {
  display: flex;
  align-items: center;
}

.cert-year {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* Legacy cert list — kept in case used on case study pages */
#certifications .cert-list {
  border-top: 1px solid var(--border);
}

.cert-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

a.cert-item {
  color: inherit;
  text-decoration: none;
  transition: background 0.1s ease;
}

a.cert-item:hover {
  text-decoration: none;
  background: none;
}

a.cert-item:hover .cert-title {
  color: var(--accent);
}

.cert-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  transition: color 0.15s ease;
}

.cert-issuer {
  font-size: 0.84rem;
  color: var(--text-light);
  margin: 0 0 6px;
}

.cert-subjects {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.cert-year {
  font-size: 0.82rem;
  color: var(--text-light);
  white-space: nowrap;
  padding-top: 2px;
}

/* ---------------- Case study template ---------------- */
.case-hero {
  padding: 60px 0 64px;
}

.case-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 32px;
}

.case-hero .back-link:hover { color: var(--accent); }

.case-hero .eyebrow {
  display: block;
  margin-top: 20px;
  margin-bottom: 14px;
}

.case-hero h1 {
  max-width: 840px;
  font-size: 3.2rem;
}

.case-hero .lede {
  max-width: 660px;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.case-meta .meta-item span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 5px;
}

.case-meta .meta-item strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.case-step-number {
  font-family: 'Lato', -apple-system, sans-serif;
  font-weight: 900;
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

/* Visual placeholder blocks */
.visual-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-block .visual-frame {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  background: var(--bg-alt);
}

.visual-block .visual-frame.square { aspect-ratio: 4 / 3; }

.visual-block .visual-caption {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-light);
}

.visual-block .visual-label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-light);
}

/* Learnings list */
.learnings-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.learnings-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.learnings-list .num {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* Next project */
.case-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.case-next .case-next-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.case-next h2 { margin-bottom: 0; }

/* in-navy tag used in intellimation pages */
.tag.in-navy {
  background: rgba(29, 29, 31, 0.08);
  color: var(--ink);
  border-color: rgba(29, 29, 31, 0.12);
}

/* ---------------- Contact section ---------------- */
/* ---------------- Contact section ---------------- */
.contact-section {
  display: flex;
  flex-direction: column;
  background: #f5f5f7;
  padding: 96px 0 80px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

.contact-left .eyebrow {
  color: var(--accent);
  margin-bottom: 20px;
}

.contact-left h2 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.contact-sub {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 360px;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.contact-meta a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.contact-meta a:hover { text-decoration: underline; }

.contact-meta-location {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* Form card */
.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  background: #f5f5f7;
  border: none;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--ink);
  font-family: inherit;
  transition: background 0.2s;
  resize: none;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0b0b8;
}

.form-group input:focus,
.form-group textarea:focus {
  background: #ebebef;
}

.contact-submit {
  width: 100%;
  justify-content: center;
  background: #f0f0f2;
  color: var(--ink);
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-submit:hover { background: var(--ink); color: #fff; }

.form-note {
  font-size: 0.76rem;
  color: var(--text-light);
  text-align: center;
  margin-top: -8px;
}

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-left h2 { font-size: 2.2rem; }
}

@media (max-width: 680px) {
  .contact-section { padding: 64px 0 56px; }
  .contact-inner { padding: 0 var(--gutter); }
  .contact-form { padding: 24px; }
}

@media (max-width: 860px) {
  .contact-section { height: auto; padding: 72px 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; padding: 0 var(--gutter); }
  .contact-sub { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------------- Footer ---------------- */
/* ---------------- Dark footer (DevfolioX style) ---------------- */
.site-footer-dark {
  background: #111111;
}

.sfd-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px var(--gutter) 56px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.sfd-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 300px;
}

.sfd-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.sfd-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  margin: 0;
}

.sfd-email {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.sfd-email:hover { color: #fff; }

.sfd-location {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.22);
  margin: 0;
}

.sfd-links {
  display: flex;
  gap: 64px;
}

.sfd-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sfd-col-heading {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin: 0 0 6px;
}

.sfd-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.sfd-col a:hover { color: #fff; }

.sfd-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sfd-bottom span {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.25);
}

@media (max-width: 680px) {
  .sfd-inner { flex-direction: column; gap: 40px; padding: 48px var(--gutter) 40px; }
  .sfd-links { gap: 40px; }
  .sfd-bottom { flex-direction: column; gap: 6px; text-align: center; padding: 20px; }
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ---------- 1024px — large tablet ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.2rem; }
  .hero-text { padding-right: 36px; }
}

@media (max-width: 860px) { :root { --gutter: 24px; } }
@media (max-width: 600px) { :root { --gutter: 22px; } }

/* ---------- 860px — tablet portrait ---------- */
@media (max-width: 860px) {
  section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }

  /* Nav */
  .nav-links { gap: 18px; }

  /* Hero — collapse to natural height on tablet/mobile */
  .hero { height: auto; }
  .hero > .container { display: block; }
  .hero-grid {
    flex: none;
    display: block;
    min-height: auto;
    padding: 0;
  }
  .hero-text { justify-content: flex-start; padding-right: 0; padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 2.8rem; }
  .hero .lede { font-size: 1rem; max-width: 100%; }
  .hero-stats { gap: 24px; margin: 28px 0 0; }
  .hero .actions { margin-top: 28px; }
  .hero-photo { display: none; }

  /* About — revert to natural height on smaller screens */
  #about { height: auto; overflow: visible; padding: 72px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { order: -1; text-align: center; }
  .about-photo img { width: 240px; height: 300px; margin: 0 auto; }
  .about-copy h2 { font-size: 1.8rem; }
  .about-copy p { font-size: 0.93rem; margin-bottom: 0.75em; }
  .about-credentials { grid-template-columns: 1fr; gap: 10px; }

  /* Experience — revert to natural height on smaller screens */
  #experience { height: auto; overflow: visible; padding: 72px 0 !important; }

  /* Projects */
  .projects-grid, .projects-grid--three, .projects-grid--two { grid-template-columns: 1fr; }
  .project-card--featured { flex-direction: column; }
  .project-card--featured .project-visual { width: 100%; height: 240px; min-height: unset; }
  .project-card--featured .project-body { padding: 24px; }

  /* Concept cards */
  .projects-grid--concept { grid-template-columns: repeat(2, 1fr); }

  /* Skills */
  .skills-grid { grid-template-columns: repeat(2, 1fr); }

  /* Certs */
  .cert-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Misc */
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
  .experience-item { grid-template-columns: 1fr; gap: 8px; }
  .case-hero h1 { font-size: 2.4rem; }
}

/* ---------- 600px — large phone ---------- */
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }

  /* Nav — hamburger mode */
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-solid);
    padding: 12px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) {
    font-size: 1rem;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
  }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin: 16px 0 0; width: 100%; text-align: center; }

  /* Hero */
  .hero-text { padding-top: 40px; padding-right: 0; }
  .hero h1 { font-size: 2.2rem; letter-spacing: -0.03em; }
  .hero .lede { font-size: 0.95rem; margin-bottom: 28px; }
  .hero-stats { gap: 18px; margin: 24px 0; flex-wrap: wrap; }
  .hero-stat strong { font-size: 2.2rem; }
  .hero-stat:not(:first-child)::before { display: none; }
  .hero .actions { flex-direction: column; }
  .hero .actions .btn { width: 100%; text-align: center; }

  /* About */
  .about-copy h2 { font-size: 1.9rem; }

  /* Concept cards */
  .projects-grid--concept { grid-template-columns: 1fr 1fr; }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-section .actions { flex-direction: column; }
  .contact-section .actions .btn { width: 100%; text-align: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Misc */
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-hero h1 { font-size: 2rem; }
}

/* ---------- 480px — standard phone ---------- */
@media (max-width: 480px) {
  section { padding: 44px 0; }

  .hero h1 { font-size: 2rem; }
  .hero-stat strong { font-size: 2rem; }
  .hero-stats { gap: 14px; }

  .about-copy h2 { font-size: 1.7rem; }
  .about-photo img { width: 200px; height: 260px; }

  .projects-grid--concept { grid-template-columns: 1fr; }

  .skill-card { padding: 20px; }
  .cert-card { padding: 16px; }
}

/* ============================================================
   Filter pills + 4-column project grid
   (case studies section)
   ============================================================ */

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-pill {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-solid);
  background: var(--white);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Lato', -apple-system, sans-serif;
  letter-spacing: 0;
}

.filter-pill:hover  { border-color: var(--accent); color: var(--accent); background: var(--white); }
.filter-pill.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.pf-hidden { display: none !important; }

/* ---- Case studies ---- */
#work {
  display: flex;
  flex-direction: column;
  padding: 96px 0 100px;
}

.work-header {
  padding: 0 28px 36px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.work-header .section-head {
  margin-bottom: 28px;
}

.work-header .section-head h2 {
  margin: 0;
  font-size: 3.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.work-header .project-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.work-header .project-filters::-webkit-scrollbar { display: none; }

.projects-carousel-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  padding: 14px 28px 24px;
}

.projects-carousel-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 72px;
  background: linear-gradient(to right, transparent, var(--bg-alt));
  pointer-events: none;
  z-index: 2;
}

.projects-carousel {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-auto-flow: column;
  grid-auto-columns: 244px;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.projects-carousel::-webkit-scrollbar { display: none; }
.projects-carousel.is-grabbing { cursor: grabbing; user-select: none; }

/* Compact card styles inside carousel */
.projects-carousel .project-card {
  display: flex;
  flex-direction: column;
}

.projects-carousel .project-card .project-visual {
  height: 80px;
  flex-shrink: 0;
}

.projects-carousel .project-card .project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 13px 15px 14px;
  grid-template-rows: unset;
}

.projects-carousel .project-card .project-body h3 {
  font-size: 0.88rem;
  line-height: 1.3;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.projects-carousel .card-meta {
  font-size: 0.5rem;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.projects-carousel .project-stats {
  padding: 7px 0;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.projects-carousel .project-stats .stat strong { font-size: 0.9rem; }
.projects-carousel .project-stats .stat span   { font-size: 0.5rem; }

.projects-carousel .proj-link {
  margin-top: auto;
  font-size: 0.72rem;
}

/* Mobile: revert to scrollable vertical grid */
@media (max-width: 860px) {
  #work { height: auto; overflow: visible; display: block; padding: 72px 0 !important; }
  /* the header itself stays flush so the filter row can bleed past the right
     edge as a scroll cue; the gutter is put back on its children instead */
  .work-header { padding: 0; }
  .work-header .section-head { padding: 0 var(--gutter); }
  .work-header .project-filters { padding-left: var(--gutter); padding-right: var(--gutter); }
  .projects-carousel-wrap { padding: 16px 0 0; }
  .projects-carousel-wrap::after { display: none; }
  .projects-carousel {
    height: auto;
    display: grid;
    grid-template-rows: unset;
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    cursor: default;
  }
  .projects-carousel .project-card .project-visual { height: 110px; }
  .projects-carousel .project-card .project-body { display: grid; grid-template-rows: auto 4.75rem auto 1fr; }
}

/* ---- Large DevfolioX-style project rows ---- */
.bento-wrap {
  padding: 0 var(--gutter) 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.bento-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Transparent row — no card chrome */
.bento-grid .project-card {
  flex-direction: row;
  align-items: stretch;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  gap: 72px;
  padding: 80px 0;
  border-bottom: none;
}

.bento-grid .project-card + .bento-grid .project-card {
  border-top: 1px solid var(--border);
}

.bento-grid .project-card:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
}

.bento-grid .project-card:hover .project-visual {
  box-shadow: 0 20px 56px rgba(15,15,15,0.14);
}

/* Large image panel, left side */
.bento-grid .project-card .project-visual {
  width: 48%;
  min-width: 48%;
  height: auto;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  box-shadow: 0 8px 32px rgba(17,17,17,0.08);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Cover image fills the panel, composed intentionally (not an accidental crop) */
.bento-grid .project-card .project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Hide labels */
.bento-grid .project-card .in-mark { display: none; }
.bento-grid .project-card .concept-pill { display: none; }

/* Content column */
.bento-grid .project-card .project-body {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  grid-template-rows: unset;
}

/* Category eyebrow */
.bento-grid .project-card .card-meta {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* Large project title */
.bento-grid .project-card .project-body h3 {
  font-size: 2.6rem;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
  flex: unset;
}

/* Short description */
.bento-grid .card-desc {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 480px;
}

/* Tech dot-line — plain text, no border */
.bento-grid .card-tech {
  font-size: 0.25rem;
  color: #ccc;
  letter-spacing: 0.02em;
  margin-top: 10px;
  margin-bottom: 28px;
  padding-top: 0;
  border-top: none;
}

/* Content body vertical spacing */
.bento-grid .project-card .project-body {
  padding-top: 8px;
}

/* Hide stats */
.bento-grid .project-card .project-stats { display: none; }

/* CTA — filled dark pill */
.bento-grid .project-card .proj-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
  transition: background 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.bento-grid .project-card .proj-link:hover {
  background: var(--accent);
  text-decoration: none;
}

/* CTA row */
.bento-grid .card-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

/* Secondary outlined pill */
.bento-grid .proj-link-secondary {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border: 1px solid var(--border-solid);
  border-radius: 999px;
  background: var(--white);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.bento-grid .proj-link-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Separator between featured cards and text list */
.proj-list-header {
  grid-column: 1 / -1;
  padding: 12px 0 6px;
  margin-top: 0;
  border-top: 1px solid var(--border-solid);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* More-projects pill row */
.more-projects-section {
  grid-column: 1 / -1;
}

.more-projects-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 4px;
}

.more-proj-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--border-solid);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-light);
  text-decoration: none;
  background: transparent;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.more-proj-link:hover {
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.more-proj-link--soon {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

/* Text list rows: all .project-card siblings after the header */
.proj-list-header ~ .project-card {
  grid-column: 1 / -1;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border-solid);
  flex-direction: row;
  align-items: center;
  transition: background 0.15s;
}

.proj-list-header ~ .project-card:hover {
  transform: none;
  box-shadow: none;
  background: rgba(138,106,84,0.04);
}

.proj-list-header ~ .project-card .project-visual,
.proj-list-header ~ .project-card .project-stats,
.proj-list-header ~ .project-card .card-meta {
  display: none;
}

.proj-list-header ~ .project-card .project-body {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  width: 100%;
  gap: 16px;
}

.proj-list-header ~ .project-card .project-body h3 {
  font-size: 0.88rem;
  font-weight: 400;
  margin-bottom: 0;
}

.proj-list-header ~ .project-card .proj-link {
  margin-top: 0;
  flex-shrink: 0;
  font-size: 0;
  color: var(--text-light);
}

.proj-list-header ~ .project-card .proj-link::after {
  content: '→';
  font-size: 0.95rem;
}

.proj-list-header ~ .project-card .proj-link--soon {
  pointer-events: none;
}

.proj-list-header ~ .project-card .proj-link--soon::after {
  content: '—';
  opacity: 0.35;
}

/* Tablet/mobile responsive */
@media (max-width: 860px) {
  #work { padding: 72px 0 80px; }
  .work-header .section-head h2 { font-size: 2.4rem; }
  .bento-grid .project-card { gap: 40px; padding: 60px 0; align-items: stretch; }
  .bento-grid .project-card .project-visual { width: 44%; min-width: 44%; height: auto; aspect-ratio: 4 / 3; }
  .bento-grid .project-card .project-body h3 { font-size: 1.9rem; }
}

@media (max-width: 680px) {
  #work { padding: 56px 0 64px; }
  .work-header .section-head h2 { font-size: 1.9rem; font-weight: 400; }
  .bento-wrap { padding: 0 var(--gutter) 16px; }
  .bento-grid .project-card { flex-direction: column; gap: 20px; padding: 40px 0; align-items: flex-start; }
  .bento-grid .project-card .project-visual { width: 100%; min-width: unset; height: auto; aspect-ratio: 4 / 3; }
  .bento-grid .project-card .project-body h3 { font-size: 1.6rem; }
  .bento-grid .card-desc { font-size: 0.86rem; }
  .bento-grid .card-ctas { flex-wrap: wrap; }
}

/* ============================================================
   Hero social proof / logo strip
   ============================================================ */

.hero-proof {
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-proof-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-proof-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(138, 106, 84, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-proof-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.hero-proof-label p {
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
  padding-top: 6px;
}

.proof-accent {
  color: var(--accent);
  font-weight: 700;
}

.hero-proof-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 20px;
}

.proof-logo-item {
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.proof-logo-item:first-child { padding-left: 0; }

.proof-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.42);
  transition: filter 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Distinctive marks (symbol-only logos) shown slightly larger */
.proof-logo-img--mark {
  height: 36px;
}

.proof-logo-item:hover .proof-logo-img {
  filter: grayscale(0) opacity(0.9);
}

.proof-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero-proof-logos { row-gap: 14px; }
  .proof-logo-item { padding: 0 12px; }
  .proof-logo-img { height: 22px; }
  .proof-logo-img--mark { height: 26px; }
}

/* ============================================================
   BOOKS & IDEAS
   ============================================================ */
#books { background: var(--bg-alt); }

.books-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 28px 20px;
}
.book { margin: 0; }
.book__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  /* every jacket is pre-cropped to an exact 2:3, so cover fills with no letterboxing */
  object-fit: cover;
  background: var(--white);
  border-radius: 4px;
  filter: drop-shadow(0 2px 8px rgba(15,15,15,0.14));
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1),
              filter 0.35s cubic-bezier(0.2,0.8,0.2,1);
}
.book:hover .book__cover {
  transform: translateY(-4px);
  filter: drop-shadow(0 12px 22px rgba(15,15,15,0.22));
}
.book figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text);
}
.book__author {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-top: 2px;
}

/* editorial idea note */
.idea-note {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-solid);
  max-width: 720px;
}
.idea-note__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.idea-note blockquote {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text);
}
.idea-note cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.idea-note__gloss {
  margin-top: 18px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-light);
}

@media (max-width: 1024px) { .books-grid { grid-template-columns: repeat(4, 1fr); gap: 30px 22px; } }
@media (max-width: 560px)  { .books-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; } }

/* ============================================================
   JOURNAL
   ============================================================ */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.journal-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.journal-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #F7F5F3 0%, #EFEBE7 100%);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1),
              box-shadow 0.35s cubic-bezier(0.2,0.8,0.2,1);
}
.journal-card:hover .journal-card__media {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15,15,15,0.08);
}
.journal-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.journal-card__placeholder {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.journal-card__meta {
  margin-top: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.journal-card h3 {
  margin: 8px 0 8px;
  font-size: 1.18rem;
  line-height: 1.35;
}
.journal-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-light);
}
.journal-card__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-dark);
}
/* the whole card is an <a>, so the global a:hover underline would strike
   through every line of text inside it */
.journal-card:hover,
.journal-card:hover .journal-card__link,
.cert-card:hover { text-decoration: none; }


/* ============================================================
   RESUME REQUEST GATE
   ============================================================ */
/* the trigger is a <button> so it opens the dialog rather than
   linking to a file; it must still read as the text link it replaced */
button.btn-text-link {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.resume-modal {
  width: min(440px, calc(100vw - 40px));
  padding: 34px 34px 30px;
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(15, 15, 15, 0.18);
}
.resume-modal::backdrop {
  background: rgba(20, 18, 16, 0.45);
}
.resume-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.resume-modal__close:hover { color: var(--ink); }

.resume-modal h2 {
  font-size: 1.5rem;
  margin: 10px 0 8px;
}
.resume-modal__sub {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0 0 22px;
}
.resume-modal .form-group { margin-bottom: 14px; }
.form-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}
.resume-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}
.resume-form__error {
  font-size: 0.82rem;
  color: #9B2C2C;
  margin: 0 0 12px;
}
.resume-modal__note {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 14px 0 0;
  text-align: center;
}

.resume-modal__tick {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.resume-modal__mail {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 22px;
}
.resume-modal [data-step="done"] .btn { width: 100%; justify-content: center; }
