/* ══════════════════════════════════════
   EMBER — Warm Luxury Editorial Designer Portfolio
   Palette : #FFFDF8 cream · #111827 charcoal · #D4622A amber
   Fonts   : Cormorant Garamond (serif display) + DM Sans (body)
   ══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

:root {
  --bg:        #FFFDF8;
  --bg-2:      #F7F4EE;
  --bg-3:      #EDE9E0;
  --ink:        #111827;
  --ink-2:      #4B5563;
  --ink-3:      #9CA3AF;
  --amber:      #D4622A;
  --amber-l:    #E8874D;
  --amber-pale: #FDF0E8;
  --sage:       #5B7B6A;
  --border:     #E5E0D5;
  --border-2:   #D1CABC;
  --font-s:    'Cormorant Garamond', serif;
  --font-b:    'DM Sans', sans-serif;
  --nav-h:     68px;
  --wrap:      1180px;
  --r:         6px;
}

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.ao { opacity: 1; }


/* ══════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  background: var(--background, rgba(255,253,248,0.92));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.topbar.scrolled { box-shadow: 0 2px 24px rgba(17,24,39,0.06); }
.topbar-row {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-logo {
  font-family: var(--font-s);
  font-size: 22px; font-weight: 600; font-style: italic;
  color: var(--ink); letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 10px;
}
.logo-ember {
  width: 30px; height: 30px;
  background: var(--amber);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-ember svg { width: 14px; height: 14px; fill: white; }
.topbar-nav { display: flex; align-items: center; gap: 0; }
.topbar-nav a {
  font-size: 13px; font-weight: 500;
  color: var(--ink-2); padding: 7px 14px;
  border-radius: var(--radius, 50px);
  transition: color 0.2s, background 0.2s;
}
.topbar-nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav-cta {
  background: var(--ink) !important; color: var(--bg) !important;
  font-weight: 600 !important; padding: 9px 22px !important;
  border-radius: 50px !important; margin-left: 8px;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--amber) !important; transform: translateY(-1px) !important; }

.topbar-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.topbar-toggle span { width: 22px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.25s; }

@media (max-width: 820px) {
  .topbar-toggle { display: flex; }
  .topbar-nav {
    position: fixed; inset: var(--nav-h) 0 0 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg); padding: 1.5rem; gap: 4px;
    transform: translateX(100%); transition: transform 0.3s;
    border-top: 1px solid var(--border); overflow-y: auto;
  }
  .topbar-nav.open { transform: translateX(0); }
  .topbar-nav a { padding: 13px 16px; font-size: 16px; }
  .nav-cta { text-align: center; margin: 6px 0 0 !important; }
}


/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px; border-radius: var(--radius, 50px);
  font-family: var(--font-b); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-amber {
  background: var(--amber); color: #fff;
  box-shadow: 0 4px 20px rgba(212,98,42,0.25);
}
.btn-amber:hover { background: #C0551F; box-shadow: 0 6px 28px rgba(212,98,42,0.38); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border-2);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn-full { width: 100%; justify-content: center; border-radius: 8px; }


/* ══════════════════════════════════════
   HERO — Magazine cover editorial
   ══════════════════════════════════════ */
.hero {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 480px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

/* Left: text content */
.hero-text {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: clamp(2rem,4vw,4rem) clamp(2.5rem,5vw,5rem);
  position: relative;
}
/* Decorative top amber line */
.hero-text::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 60%; height: 2px;
  background: linear-gradient(90deg, var(--amber) 0%, transparent 100%);
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.hero-eyebrow-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); white-space: nowrap;
}
.hero-eyebrow-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border-2), transparent);
}

/* Large serif name — single line */
.hero-name {
  font-family: var(--font-s);
  font-size: clamp(44px, 5.6vw, 80px);
  font-weight: 600; line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
  white-space: nowrap;
}
.hero-name .name-first  { display: inline; }
.hero-name .name-second {
  display: inline;
  font-style: italic;
  color: var(--amber);
}

.hero-role-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 4px;
}
.hero-role {
  font-size: clamp(13px, 1.5vw, 15px); font-weight: 600;
  color: var(--ink); letter-spacing: 0.04em; text-transform: uppercase;
}
.hero-role-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--amber); flex-shrink: 0;
}
.hero-chips {
  font-family: var(--font-s); font-style: italic;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--ink-2);
  margin-bottom: 20px;
}

/* Thin amber rule */
.hero-rule {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.hr-line { flex: 0 0 40px; height: 1px; background: var(--amber); }
.hr-dot  { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }

.hero-bio {
  font-size: clamp(14px,1.4vw,15px); color: var(--ink-2); line-height: 1.75;
  max-width: 480px; margin-bottom: 22px;
}

/* Contact pills */
.hero-contact {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.hc-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 50px;
  transition: border-color 0.2s, color 0.2s;
}
.hc-item:hover { border-color: var(--amber); color: var(--ink); }
.hc-item svg { color: var(--amber); flex-shrink: 0; }

.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Right: photo panel */
.hero-photo {
  position: relative; overflow: hidden;
  background: var(--bg-3);
  border-left: 1px solid var(--border);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Warm overlay — stronger at bottom for stats readability */
.hero-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(212,98,42,0.06) 0%,
    transparent 40%,
    rgba(17,24,39,0.55) 100%);
  z-index: 1; pointer-events: none;
}
/* Available badge */
.hero-badge {
  position: absolute; top: 28px; left: 28px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,253,248,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 50px;
  font-size: 11.5px; font-weight: 600; color: var(--ink);
  box-shadow: 0 4px 24px rgba(17,24,39,0.1);
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22C55E;
  animation: bdot 2.2s ease-in-out infinite;
}
@keyframes bdot {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%      { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
}
/* Stats overlay at bottom of photo */
.hero-photo-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex;
  background: rgba(17,24,39,0.72);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hps-item {
  flex: 1; padding: 22px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.hps-item:last-child { border-right: none; }
.hps-num {
  font-family: var(--font-s);
  font-size: 32px; font-weight: 700; font-style: italic;
  color: var(--amber); line-height: 1; display: block;
}
.hps-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); display: block; margin-top: 5px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-photo { height: 460px; border-left: none; border-top: 1px solid var(--border); }
  .hero-text::before { display: none; }
}


/* ══════════════════════════════════════
   SECTIONS SHARED
   ══════════════════════════════════════ */
.seg { padding: 88px 0; border-bottom: 1px solid var(--border); }
.seg-alt { background: var(--bg-2); }

.seg-head { margin-bottom: 52px; }
.seg-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.seg-eyebrow-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber);
}
.seg-eyebrow-line { flex: 0 0 32px; height: 1px; background: var(--amber); }
.seg-title {
  font-family: var(--font-s);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 600; line-height: 1.05;
  color: var(--ink); letter-spacing: -0.01em;
}
.seg-title em { font-style: italic; color: var(--amber); }


/* ══════════════════════════════════════
   SKILLS — Two column elegant rows
   ══════════════════════════════════════ */
.skill-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}
.skill-row {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.skill-row:first-child { border-top: 1px solid var(--border); }
.sk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sk-name {
  font-family: var(--font-s); font-size: 18px; font-weight: 600;
  color: var(--ink);
}
.sk-cat {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber);
}
.sk-pct {
  font-family: var(--font-s); font-style: italic;
  font-size: 18px; font-weight: 600;
  color: var(--ink-3);
}
.sk-bar { height: 2px; background: var(--border); overflow:clip; }
.sk-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--amber-l));
  transform-origin: left;
  font-size: 0; color: transparent;
}

@media (max-width: 660px) {
  .skill-cols { grid-template-columns: 1fr; }
  .skill-row:first-child { border-top: none; }
}


/* ══════════════════════════════════════
   EXPERIENCE — Elegant timeline
   ══════════════════════════════════════ */
.xp-list { display: flex; flex-direction: column; gap: 0; }
.xp-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 3rem;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.xp-item:first-child { border-top: 1px solid var(--border); }
.xp-left { padding-top: 4px; }
.xp-period {
  font-family: var(--font-s); font-style: italic;
  font-size: 15px; color: var(--ink-3);
}
.xp-period-active { color: var(--amber); font-weight: 600; }
.xp-body {}
.xp-role {
  font-family: var(--font-s);
  font-size: 22px; font-weight: 600;
  color: var(--ink); margin-bottom: 4px; line-height: 1.2;
}
.xp-co {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 12px;
}
.xp-desc { font-size: 14px; color: var(--ink-2); line-height: 1.72; }

@media (max-width: 580px) {
  .xp-item { grid-template-columns: 1fr; gap: 8px; }
}


/* ══════════════════════════════════════
   EDUCATION
   ══════════════════════════════════════ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.edu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  background: var(--bg);
}
.edu-card:hover { border-color: var(--amber); transform: translateY(-3px); }
.edu-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.edu-card:hover::after { opacity: 1; }
.edu-yr {
  font-family: var(--font-s); font-style: italic;
  font-size: 14px; color: var(--amber);
  display: block; margin-bottom: 10px;
}
.edu-deg {
  font-family: var(--font-s); font-size: 19px; font-weight: 600;
  color: var(--ink); margin-bottom: 4px; line-height: 1.2;
}
.edu-inst {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.edu-note { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }


/* ══════════════════════════════════════
   DESIGN TOOLS — Elegant cards
   ══════════════════════════════════════ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.tool-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.tool-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(212,98,42,0.08);
}
.tc-top { display: flex; align-items: center; gap: 12px; }
.tc-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--amber-pale);
  border: 1px solid rgba(212,98,42,0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-s); font-style: italic;
  font-size: 14px; font-weight: 600; color: var(--amber);
  flex-shrink: 0;
}
.tc-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.tc-cat  { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.tc-bar  { height: 2px; background: var(--border); border-radius: 2px; overflow:clip; }
.tc-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--amber-l));
  border-radius: 2px;
  transform-origin: left;
  font-size: 0; color: transparent;
}


/* ══════════════════════════════════════
   PORTFOLIO — Beautiful asymmetric masonry
   ══════════════════════════════════════ */
.folio-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.folio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.folio-tile {
  border-radius: 10px; overflow: hidden;
  position: relative; background: var(--bg-3);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.folio-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(17,24,39,0.12);
}
.ft-img {
  position: relative; overflow: hidden;
}
.folio-featured .ft-img { aspect-ratio: 4/3; }
.folio-grid .ft-img { aspect-ratio: 4/3; }
.ft-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.folio-tile:hover .ft-img img { transform: scale(1.06); }
/* Gradient + info overlay */
.ft-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,24,39,0.82) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  opacity: 0; transition: opacity 0.35s;
}
.folio-tile:hover .ft-overlay { opacity: 1; }
.ft-cat {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 5px;
}
.ft-name {
  font-family: var(--font-s); font-size: 18px; font-weight: 600;
  color: #fff; line-height: 1.2; margin-bottom: 10px;
}
.ft-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: #fff; border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 14px; border-radius: 50px;
  transition: background 0.2s, border-color 0.2s; align-self: flex-start;
}
.ft-link:hover { background: var(--amber); border-color: var(--amber); }
/* Always visible label on non-featured */
.ft-label {
  padding: 14px 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.ft-label-cat {
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 3px;
}
.ft-label-name {
  font-family: var(--font-s); font-size: 15px; font-weight: 600; color: var(--ink);
}

@media (max-width: 860px) {
  .folio-featured { grid-template-columns: 1fr; }
  .folio-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .folio-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════
   CASE STUDIES
   ══════════════════════════════════════ */
.case-list { display: flex; flex-direction: column; gap: 1.5rem; }
.case-card {
  display: grid; grid-template-columns: 0.42fr 0.58fr;
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.case-card:hover {
  border-color: var(--amber);
  box-shadow: 0 8px 36px rgba(212,98,42,0.08);
}
.cc-img { background: var(--bg-3); overflow: hidden; min-height: 240px; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.case-card:hover .cc-img img { transform: scale(1.04); }
.cc-body {
  padding: clamp(1.5rem,3vw,2.5rem);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg);
}
.cc-num {
  font-family: var(--font-s); font-style: italic;
  font-size: 12px; color: var(--amber);
}
.cc-name {
  font-family: var(--font-s);
  font-size: clamp(18px,2.5vw,26px); font-weight: 600;
  color: var(--ink); line-height: 1.15;
}
.cc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--amber);
  background: var(--amber-pale);
  padding: 4px 12px; border-radius: 50px;
}
.cc-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.72; }
.cc-impact {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--ink-2);
}
.cc-impact strong { color: var(--amber); margin-right: 5px; }
.cc-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--amber);
  margin-top: 4px; transition: gap 0.2s;
}
.cc-more:hover { gap: 10px; }

@media (max-width: 660px) {
  .case-card { grid-template-columns: 1fr; }
  .cc-body { border-left: none; border-top: 1px solid var(--border); }
}


/* ══════════════════════════════════════
   SERVICES — Warm cards with amber top bar
   ══════════════════════════════════════ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}
.svc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.svc-card:hover {
  border-color: var(--amber);
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(212,98,42,0.1);
}
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-l));
  opacity: 0; transition: opacity 0.3s;
}
.svc-card:hover::before { opacity: 1; }
.svc-num {
  font-family: var(--font-s); font-style: italic;
  font-size: 12px; color: var(--ink-3);
}
.svc-ic {
  width: 48px; height: 48px; border-radius: 10px;
  overflow: hidden; background: var(--bg-2); border: 1px solid var(--border);
}
.svc-ic img { width: 100%; height: 100%; object-fit: cover; }
.svc-name {
  font-family: var(--font-s); font-size: 20px; font-weight: 600;
  color: var(--ink); line-height: 1.2;
}
.svc-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.svc-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; flex: 1; }
.svc-price {
  display: inline-flex; align-items: center;
  font-family: var(--font-s); font-size: 16px; font-weight: 600; font-style: italic;
  color: var(--amber); align-self: flex-start;
  border-bottom: 1px solid rgba(212,98,42,0.35); padding-bottom: 1px;
}


/* ══════════════════════════════════════
   TESTIMONIALS — Elegant quote cards
   ══════════════════════════════════════ */
.rev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}
.rev-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.rev-card:hover { border-color: var(--amber); transform: translateY(-3px); }
/* Large serif quote mark */
.rv-big-q {
  font-family: var(--font-s); font-size: 80px; font-style: italic;
  color: var(--amber); opacity: 0.15; line-height: 1;
  position: absolute; top: 14px; left: 20px; pointer-events: none;
}
.rv-stars { font-size: 12px; color: var(--amber); letter-spacing: 4px; padding-top: 14px; }
.rv-text {
  font-family: var(--font-s); font-style: italic;
  font-size: 16px; color: var(--ink-2); line-height: 1.8; flex: 1;
}
.rv-footer {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.rv-avi {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border); flex-shrink: 0;
}
.rv-name { font-size: 14px; font-weight: 600; color: var(--ink); display: block; font-style: normal; }
.rv-role { font-size: 11px; color: var(--ink-3); }


/* ══════════════════════════════════════
   SOCIAL
   ══════════════════════════════════════ */
.social-seg {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.social-row {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.social-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); flex-shrink: 0;
}
.social-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.social-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 50px;
  font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border-2);
  color: var(--ink-2);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.social-pill:hover { border-color: var(--amber); background: var(--amber); color: #fff; }


/* ══════════════════════════════════════
   CONTACT
   ══════════════════════════════════════ */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem,5vw,5rem); align-items: start;
}
.cg-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.cg-eyebrow span {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber);
}
.cg-eyebrow-line { flex: 0 0 28px; height: 1px; background: var(--amber); }
.cg-heading {
  font-family: var(--font-s);
  font-size: clamp(32px,4.5vw,54px); font-weight: 600;
  line-height: 1.1; color: var(--ink); margin-bottom: 14px;
}
.cg-heading em { font-style: italic; color: var(--amber); }
.cg-sub {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.75;
  margin-bottom: 36px;
}
.cg-items { display: flex; flex-direction: column; gap: 18px; }
.cg-item { display: flex; align-items: center; gap: 14px; }
.cg-icon-wrap {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--amber-pale);
  border: 1px solid rgba(212,98,42,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber); flex-shrink: 0;
}
.cg-k {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  display: block; margin-bottom: 2px;
}
.cg-v { font-size: 14px; color: var(--ink); font-weight: 500; }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(1.5rem,3vw,2.5rem);
  display: flex; flex-direction: column; gap: 16px;
}
.cf { display: flex; flex-direction: column; gap: 6px; }
.cf label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.cf input, .cf textarea {
  width: 100%; background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: 8px; padding: 12px 14px;
  font-family: var(--font-b); font-size: 14px; color: var(--ink);
  outline: none; transition: border-color 0.2s, background 0.2s;
}
.cf input::placeholder, .cf textarea::placeholder { color: var(--ink-3); }
.cf input:focus, .cf textarea:focus { border-color: var(--amber); background: #fff; }
.cf textarea { resize: vertical; }

@media (max-width: 720px) {
  .contact-wrap { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  background: var(--wb-dark-surface, var(--ink));
  padding: 0;
}
.footer-row {
  display: flex; align-items: stretch; justify-content: space-between;
}
.footer-copy {
  padding: 24px 0;
  font-size: 12px; color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}
.footer-links { display: flex; }
.footer-links a {
  padding: 24px 22px;
  font-size: 12px; color: var(--wb-on-dark, rgba(255,255,255,0.35));
  border-left: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--amber); }

/* Hide wire:loading elements before Livewire mounts (mirrors Livewire's runtime CSS) */
[wire\:loading],
[wire\:loading\.delay],
[wire\:loading\.inline-block],
[wire\:loading\.inline] { display: none; }

/* WoBooks empty-image guard (theme:editor-compliance --fix --scope=img-empty-guard):
   image_url('') renders <img src=""> until the owner uploads a photo — hide it
   instead of leaking the browser's broken-image icon + alt text onto the page. */
img[src=""], img:not([src]) { display: none !important; }


/* ══════════════════════════════════════
   ANIMATIONS — scroll-driven reveal, progressive enhancement only
   The resting state is FULLY VISIBLE and lives outside every guard, so a browser
   with no scroll timeline — or a blocked script, or a stylesheet that arrives
   late — can never strand the name, bio, CTAs or any section behind them. The
   hidden from-state lives ONLY inside the @keyframes, never in the rule:
   `@supports` proves the FEATURE exists, it does not prove the ViewTimeline is
   ACTIVE. Inside a same-origin iframe (every owner-facing preview surface) the
   timeline resolves to null, the animation effect is not applied, and a
   rule-level `opacity: 0` would stay in force with nothing left to reveal it.
   Keyframed, the base visible declaration simply wins.
   Only opacity and transform animate: nothing reflows.
   ══════════════════════════════════════ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ao { animation: ao-in linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }

    /* Group stagger is an animation-RANGE shift, never a delay: a wall-clock
       delay on a scroll timeline finishes long before the visitor arrives.
       Both ends stay inside `entry`, so every reveal completes once the element
       has entered — an end anchored to `cover` would leave the LAST section of
       the page permanently part-transparent, because the visitor runs out of
       page to scroll before the range finishes. */
    :is(.skill-cols, .xp-list, .edu-grid, .tool-grid, .case-list, .svc-grid, .rev-grid) > .ao:nth-child(2) { animation-range: entry 8% entry 46%; }
    :is(.skill-cols, .xp-list, .edu-grid, .tool-grid, .case-list, .svc-grid, .rev-grid) > .ao:nth-child(3) { animation-range: entry 16% entry 54%; }
    :is(.skill-cols, .xp-list, .edu-grid, .tool-grid, .case-list, .svc-grid, .rev-grid) > .ao:nth-child(4) { animation-range: entry 24% entry 62%; }
    :is(.skill-cols, .xp-list, .edu-grid, .tool-grid, .case-list, .svc-grid, .rev-grid) > .ao:nth-child(5) { animation-range: entry 32% entry 70%; }
    :is(.skill-cols, .xp-list, .edu-grid, .tool-grid, .case-list, .svc-grid, .rev-grid) > .ao:nth-child(n+6) { animation-range: entry 40% entry 78%; }

    /* The bar grows along its own axis. The author's inline width stays the
       resting width, so the track never reflows while it fills. */
    .sk-fill, .tc-fill { animation: bar-fill-in linear both; animation-timeline: view(); animation-range: entry 20% entry 90%; }

    /* The `to` keyframe deliberately omits `transform`, so the end state is the
       element's OWN underlying transform rather than a hard `none`. A filling
       scroll-driven animation outranks both author rules and inline styles, so a
       `to{}` permanently overrides every `:hover` lift and every
       JS-written transform on the same element for the rest of the page's life.
       Measured in Chrome 152: with `transform:none` a hovered card reports the
       identity matrix; with the implicit `to` it reports its real hover translate
       and its JS tilt matrix, while the reveal still runs on a ViewTimeline. */
    @keyframes ao-in { from { opacity: 0; transform: translateY(22px); } to{opacity: 1} }
    @keyframes bar-fill-in { from { transform: scaleX(0); } to{transform: scaleX(1)} }
  }
}

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --ink-3: #646a75; /* was #9CA3AF */
}
.footer-links a { color: oklch(from var(--wb-on-dark, rgba(255,255,255,0.35)) calc(l + 0.04) c h / calc(min(1, alpha + 0.12))); }
.footer-copy { color: oklch(from rgba(255, 255, 255, 0.35) calc(l + 0.04) c h / calc(min(1, alpha + 0.12))); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --amber: #bc4c09; /* was #D4622A */
}
