/* ============================================
   CODA — Designer Resume (Growth Tier)
   Deep Burgundy + Muted Olive / Warm cream
   Fonts: Lexend (display+body) + Roboto Mono (meta)
   Structure: Corner cluster nav, full-bleed hero, waterfall portfolio
   ============================================ */

:root {
  --bg: #f8f5f0;
  --bg2: #eeebe4;
  --surface: #ffffff;
  --border: #ddd8cc;
  --border2: #cec8ba;
  --text: #2c2824;
  --bright: #1c1014;
  --dim: #7e7870;
  --accent: #8b3a4a;
  --accent2: #6b7a4a;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
  --glow: rgba(139, 58, 74, 0.16);
  --glow2: rgba(107, 122, 74, 0.14);
  --dark: #1c1014;
  --dark2: #24181c;
  --dark-s: #2e2024;
  --burgundy: var(--accent);
  --olive: var(--accent2);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans, 'Lexend', system-ui, sans-serif);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── CORNER CLUSTER NAV ────────────────────── */

.corner-nav {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 8px;
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 4px 18px rgba(28, 16, 20, 0.06);
}

.cn-logo-wrap { display: flex; align-items: center; padding-right: 6px; border-right: 1px solid var(--border); margin-right: 2px; }
.cn-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.cn-pills { display: flex; gap: 1px; }

.cn-pill {
  font-size: 0.68rem; font-weight: 600; color: var(--dim);
  padding: 5px 10px; border-radius: 100px; white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.cn-pill:hover { color: var(--accent); background: rgba(139, 58, 74, 0.06); }

.cn-cta {
  background: var(--dark); color: #fff; padding: 5px 14px; margin-left: 2px;
}

.cn-cta:hover { background: var(--accent); }

/* ── MOBILE BAR ────────────────────────────── */

.m-bar {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; height: 52px;
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100; align-items: center;
  justify-content: space-between; padding: 0 16px;
}

.m-brand { display: flex; align-items: center; gap: 7px; }
.m-logo { width: 24px; height: 24px; border-radius: 7px; }
.m-name { font-weight: 700; font-size: 0.85rem; color: var(--bright); }

.m-btn {
  display: flex; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px;
}

.m-btn span {
  display: block; width: 18px; height: 2px;
  background: var(--bright); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.m-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.m-btn.active span:nth-child(2) { opacity: 0; }
.m-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.m-drawer {
  display: none; position: fixed;
  top: 52px; left: 0; right: 0; z-index: 99;
  background: rgba(248, 245, 240, 0.97);
  backdrop-filter: blur(14px);
  padding: 12px 16px; flex-direction: column; gap: 2px;
  border-bottom: 1px solid var(--border);
}

.m-drawer.open { display: flex; }

.md-link {
  padding: 10px 14px; border-radius: 8px; font-weight: 500; color: var(--text);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.md-link:hover { background: rgba(139, 58, 74, 0.06); color: var(--accent); }

/* ── HERO — FULL-BLEED IMAGE, TEXT BOTTOM-LEFT ── */

.hero {  /* `clip`, not `hidden`: `hidden` makes this a scroll container, and one
     between the viewport and a `view()`-timeline element kills the timeline —
     the reveal silently never runs. `clip` clips identically. */

  position: relative;
  /* A floor, not a fixed height, and the text in flow at the bottom: an owner's long name or title on a short screen
     grew the bottom-anchored overlay up past the hero's top, where `clip` cut it under the header. */
  min-height: clamp(480px, 85vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: clip;
}

.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.02; pointer-events: none;
}

.hero-photo-band {
  position: absolute; inset: 0;
}

.hero-full-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}

.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28, 16, 20, 0.85) 0%, rgba(28, 16, 20, 0.3) 50%, transparent 100%);
}

.hero-overlay {
  position: relative;
  /* The top padding only shows when the text outgrows the hero: it then clears the header. */
  padding: 96px clamp(24px, 5vw, 64px) 48px;
}

.hero-text { max-width: 600px; }

.hero-badge {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}

.hb-pip {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; animation: pip 2s ease-in-out infinite;
}

@keyframes pip { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hb-chips {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.5);
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800; color: #fff;
  line-height: 0.95; letter-spacing: -0.03em;
  animation: fadeUp 0.7s var(--ease) both;
}

.hero-title {
  font-size: 1.1rem; font-weight: 500; color: rgba(255,255,255,0.7);
  margin-top: 6px; animation: fadeUp 0.7s 0.08s var(--ease) both;
}

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

/* ── BIO STRIP ─────────────────────────────── */

.bio-strip {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.bio-inner {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 40px; max-width: 1060px; margin: 0 auto;
  padding: 48px clamp(24px, 5vw, 64px);
  align-items: start;
}

.bio-rule {
  width: 48px; height: 2px; background: var(--gradient);
  border-radius: 2px; margin-bottom: 14px;
}

.bio-text {
  font-size: 1rem; color: var(--text);
  line-height: 1.8;
}

.bio-right { display: flex; flex-direction: column; gap: 14px; }

.bio-metas { display: flex; flex-direction: column; gap: 5px; }

.hm {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Roboto Mono', monospace; font-size: 0.68rem; color: var(--dim);
  transition: color 0.2s var(--ease);
}

.hm:hover { color: var(--accent); }
.hm svg { color: var(--accent); flex-shrink: 0; }

.btn-cv {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px; background: var(--dark); color: #fff;
  font-weight: 700; font-size: 0.78rem; border-radius: 10px;
  align-self: flex-start;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-cv:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(28, 16, 20, 0.14);
}

/* ── SEGMENTS ──────────────────────────────── */

.seg {
  max-width: 1060px; margin: 0 auto;
  padding: 60px clamp(24px, 5vw, 64px);
}

.seg-alt { background: var(--bg2); }

.seg-h { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }

.seg-n {
  font-family: 'Roboto Mono', monospace; font-size: 0.95rem;
  color: var(--accent); opacity: 0.4; font-weight: 500;
}

.seg-t {
  font-size: 1.45rem; font-weight: 800; color: var(--bright);
  letter-spacing: -0.01em;
}

/* ── SKILLS ────────────────────────────────── */

.sk-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px;
}

.sk-card {
  padding: 13px 15px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.sk-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(28, 16, 20, 0.04);
  border-color: var(--accent2);
}

.sk-grp {
  display: block; font-family: 'Roboto Mono', monospace;
  font-size: 0.52rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--accent); font-weight: 500;
}

.sk-name { display: block; font-weight: 700; font-size: 0.85rem; color: var(--bright); margin-bottom: 7px; }
.sk-track { height: 4px; background: var(--bg2); border-radius: 4px; overflow: clip; }

.sk-fill {
  height: 100%; background: var(--gradient); border-radius: 4px;
  font-size: 0; color: transparent; transform-origin: left center;
}

/* ── TIMELINE ──────────────────────────────── */

.tl { position: relative; padding-left: 26px; }

.tl::before {
  content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px;
  width: 2px; background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--border));
}

.tl-item { position: relative; margin-bottom: 16px; }
.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute; left: -22px; top: 14px;
  width: 10px; height: 10px; background: var(--accent);
  border: 3px solid var(--bg2); border-radius: 50%; z-index: 1;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.tl-item:hover .tl-dot { box-shadow: 0 0 0 5px var(--glow); transform: scale(1.15); }

.tl-card {
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.tl-item:hover .tl-card {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(28, 16, 20, 0.05);
  border-color: var(--accent2);
}

.tl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.tl-co { font-size: 0.92rem; font-weight: 700; color: var(--bright); }
.tl-when { font-family: 'Roboto Mono', monospace; font-size: 0.65rem; color: var(--dim); }
.tl-role { font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 3px; }
.tl-desc { font-size: 0.8rem; color: var(--text); line-height: 1.6; }

/* ── EDUCATION ─────────────────────────────── */

.ed-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px;
}

.ed-card {
  padding: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.ed-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(28, 16, 20, 0.05); border-color: var(--accent2); }

.ed-school { font-size: 0.88rem; font-weight: 700; color: var(--bright); margin-bottom: 2px; }
.ed-deg { font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.ed-when { display: block; font-family: 'Roboto Mono', monospace; font-size: 0.6rem; color: var(--dim); margin-bottom: 5px; }
.ed-note { font-size: 0.75rem; color: var(--text); line-height: 1.6; }

/* ── BURGUNDY ACCENT SECTION ───────────────── */

.sec-burgundy { background: var(--burgundy); color: #fff; }
.sec-burgundy .seg-n { color: rgba(255,255,255,0.25); }
.sec-burgundy .seg-t { color: #fff; }

/* ── DESIGN TOOLS ──────────────────────────── */

.sec-burgundy .dt-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}

.dt-card {
  padding: 14px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; text-align: center; backdrop-filter: blur(4px);
  transition: transform 0.25s var(--ease), border-color 0.3s var(--ease), box-shadow 0.25s var(--ease);
}

.dt-card:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255,255,255,0.38);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.dt-name { display: block; font-weight: 700; font-size: 0.85rem; color: #fff; margin-bottom: 1px; }
.dt-cat { display: block; font-family: 'Roboto Mono', monospace; font-size: 0.52rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.dt-bar { height: 3px; background: rgba(255,255,255,0.14); border-radius: 3px; overflow: clip; }
.dt-fill { height: 100%; background: #fff; border-radius: 3px; font-size: 0; color: transparent; transform-origin: left center; }

/* ── CASE STUDIES ──────────────────────────── */

.cs-list { display: grid; gap: 22px; }

.cs-card {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cs-card:nth-child(even) { direction: rtl; }
.cs-card:nth-child(even) > * { direction: ltr; }

.cs-card:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(28, 16, 20, 0.07); border-color: var(--accent); }

.cs-vis { position: relative; overflow: hidden; min-height: 220px; }
.cs-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.cs-card:hover .cs-img { transform: scale(1.05); }

.cs-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28, 16, 20, 0.7), transparent);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 14px; opacity: 0; transition: opacity 0.3s var(--ease);
}

.cs-card:hover .cs-ov { opacity: 1; }

.cs-go {
  padding: 6px 14px; background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; border-radius: 8px;
  transform: translateY(8px); transition: transform 0.3s var(--ease);
}

.cs-card:hover .cs-go { transform: translateY(0); }

.cs-body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }

.cs-tag {
  font-family: 'Roboto Mono', monospace; font-size: 0.55rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent);
  padding: 2px 7px; border: 1px solid rgba(139, 58, 74, 0.2); border-radius: 4px;
}

.cs-title { font-size: 1.05rem; font-weight: 800; color: var(--bright); margin-bottom: 5px; transition: color 0.2s var(--ease); }
.cs-card:hover .cs-title { color: var(--accent); }
.cs-desc { font-size: 0.78rem; color: var(--text); line-height: 1.6; margin-bottom: 8px; }

.cs-result {
  display: flex; align-items: baseline; gap: 4px;
  padding: 5px 8px; background: rgba(139, 58, 74, 0.05);
  border-radius: 5px; align-self: flex-start;
}

.cs-result-l { font-family: 'Roboto Mono', monospace; font-size: 0.52rem; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.cs-result-v { font-size: 0.75rem; font-weight: 700; color: var(--accent); }

/* ── DARK SECTIONS ─────────────────────────── */

.sec-dark { background: var(--dark); color: #d0ccc4; }
.sec-dark .seg-n { color: var(--accent); opacity: 0.4; }
.sec-dark .seg-t { color: #eeebe4; }

/* ── PORTFOLIO — waterfall offset ──────────── */

.fo-waterfall {
  columns: 2; column-gap: 18px;
}

.fo-card {
  break-inside: avoid; margin-bottom: 18px;
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.fo-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.2); border-color: rgba(139, 58, 74, 0.2); }

.fo-thumb { position: relative; overflow: hidden; }
.fo-img { width: 100%; display: block; transition: transform 0.5s var(--ease); }
.fo-card:hover .fo-img { transform: scale(1.05); }

.fo-ov {
  position: absolute; inset: 0;
  background: rgba(28, 16, 20, 0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s var(--ease);
}

.fo-card:hover .fo-ov { opacity: 1; }

.fo-btn {
  padding: 6px 16px; background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; border-radius: 8px;
  transform: translateY(8px); transition: transform 0.3s var(--ease);
}

.fo-card:hover .fo-btn { transform: translateY(0); }

.fo-info { padding: 14px 16px; }
.fo-cat { font-family: 'Roboto Mono', monospace; font-size: 0.52rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent2); }
.fo-title { font-size: 0.9rem; font-weight: 700; color: #eeebe4; margin: 2px 0 3px; transition: color 0.2s var(--ease); }
.fo-card:hover .fo-title { color: var(--accent); }
.fo-desc { font-size: 0.72rem; color: #8a8680; line-height: 1.5; }

/* ── SERVICES ──────────────────────────────── */

.sv-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}

.sv-card {
  position: relative; padding: 22px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.sv-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(28, 16, 20, 0.06); border-color: var(--accent); }

.sv-accent {
  position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.sv-card:hover .sv-accent { transform: scaleX(1); }

.sv-ico { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; margin-bottom: 8px; }
.sv-name { font-size: 0.95rem; font-weight: 700; color: var(--bright); margin-bottom: 1px; transition: color 0.2s var(--ease); }
.sv-card:hover .sv-name { color: var(--accent); }
.sv-sub { font-family: 'Roboto Mono', monospace; font-size: 0.58rem; color: var(--dim); margin-bottom: 6px; }
.sv-body { font-size: 0.78rem; color: var(--text); line-height: 1.6; margin-bottom: 6px; }
.sv-price { display: block; font-size: 1rem; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.sv-more { font-size: 0.68rem; font-weight: 700; color: var(--accent); transition: color 0.2s var(--ease); }
.sv-more:hover { color: var(--accent2); }

/* ── OLIVE ACCENT SECTION ──────────────────── */

.sec-olive { background: var(--olive); color: #fff; }
.sec-olive .seg-n { color: rgba(255,255,255,0.25); }
.sec-olive .seg-t { color: #fff; }

/* ── TESTIMONIALS ──────────────────────────── */

.tm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px;
}

.tm-card {
  padding: 20px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px; backdrop-filter: blur(4px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.tm-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.35); box-shadow: 0 8px 22px rgba(0,0,0,0.1); }

.tm-q { color: rgba(255,255,255,0.18); margin-bottom: 6px; }
.tm-text { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.88); margin-bottom: 12px; }
.tm-who { display: flex; align-items: center; gap: 8px; }
.tm-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.12); }
.tm-name { display: block; font-weight: 700; font-size: 0.78rem; color: #fff; }
.tm-role { display: block; font-family: 'Roboto Mono', monospace; font-size: 0.55rem; color: rgba(255,255,255,0.45); }

/* ── SOCIAL ────────────────────────────────── */

.soc-center { text-align: center; padding-top: 32px; padding-bottom: 32px; }
.soc-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }

.soc-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; color: var(--text);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.soc-pill:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 4px 12px var(--glow); border-color: var(--accent); }
.soc-pill svg { color: var(--accent); }

/* ── CONTACT ───────────────────────────────── */

.ct-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 32px; align-items: start;
}

.ct-intro { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 16px; }

.ct-detail {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--text); margin-bottom: 7px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.ct-detail:hover { color: var(--accent); transform: translateX(4px); }
.ct-detail svg { color: var(--accent); flex-shrink: 0; }
.ct-map { font-size: 0.7rem; font-weight: 700; color: var(--accent); transition: color 0.2s var(--ease); }
.ct-map:hover { color: var(--accent2); }

.ct-form { display: flex; flex-direction: column; gap: 8px; }
.ct-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.ct-in, .ct-ta {
  width: 100%; padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-family: inherit; font-size: 0.82rem; outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ct-in::placeholder, .ct-ta::placeholder { color: var(--dim); }
.ct-in:focus, .ct-ta:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.ct-ta { resize: vertical; min-height: 90px; }

.ct-send {
  align-self: flex-start; padding: 10px 26px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 0.8rem;
  border: none; border-radius: 10px; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.ct-send:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 16px var(--glow); background: var(--accent2); }

/* ── FOOTER ────────────────────────────────── */

footer { background: var(--surface); border-top: 1px solid rgba(255,255,255,0.04); }

.ft {
  max-width: 1060px; margin: 0 auto;
  padding: 26px clamp(24px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}

.ft-left { display: flex; align-items: center; gap: 7px; }
.ft-logo { width: 18px; height: 18px; border-radius: 4px; }
.ft-tag { font-size: 0.72rem; color: #5a5650; }

.ft-icons { display: flex; gap: 6px; }

.ft-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--radius, 6px);
  background: var(--wb-tint, rgba(255,255,255,0.04)); color: var(--text, #5a5650);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.ft-icons a:hover { color: var(--accent); background: var(--wb-dark-surface, rgba(139, 58, 74, 0.08)); transform: translateY(-2px); }

.ft-copy { font-family: 'Roboto Mono', monospace; font-size: 0.58rem; color: #3a3630; }

/* ── REVEAL ────────────────────────────────── */

/* ── REVEAL ANIMATION BASE (CSS scroll-driven, GSAP replacement) ───────
   Resting state is fully visible at rule level; the hidden from-state
   lives ONLY inside @rv-in's keyframes, gated behind @supports + the
   no-preference media query so a non-supporting browser (or a
   same-origin preview iframe, where the timeline resolves to null)
   never strands content behind an opacity:0 rule with nothing left to
   reveal it. Only opacity/transform animate: nothing reflows. */
.rv { opacity: 1; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv {
      animation: rv-in .6s var(--ease, ease) both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }

    /* Stagger by shifting animation-range, never animation-delay — a
       wall-clock delay on a scroll timeline finishes long before the
       element is on screen. Both ends stay inside `entry`. */
    :is(.sk-grid,.tl,.ed-grid,.dt-grid,.cs-list,.fo-waterfall,.sv-grid,.tm-grid,.soc-row)>.rv:nth-child(2){animation-range:entry 6% entry 91%}
    :is(.sk-grid,.tl,.ed-grid,.dt-grid,.cs-list,.fo-waterfall,.sv-grid,.tm-grid,.soc-row)>.rv:nth-child(3){animation-range:entry 12% entry 97%}
    :is(.sk-grid,.tl,.ed-grid,.dt-grid,.cs-list,.fo-waterfall,.sv-grid,.tm-grid,.soc-row)>.rv:nth-child(n+4){animation-range:entry 18% entry 100%}

    @keyframes rv-in { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; } }

    /* Skill/tool bar fills grow along their own axis; the author's
       inline width stays the resting width, so the track never reflows. */
    .sk-fill, .dt-fill {
      animation: fill-in .9s var(--ease, ease) both;
      animation-timeline: view();
      animation-range: entry 10% entry 90%;
    }
    @keyframes fill-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── RESPONSIVE ────────────────────────────── */

@media (max-width: 900px) {
  .corner-nav { display: none; }
  .m-bar { display: flex; }

  .hero { min-height: clamp(360px, 60vh, 720px); }

  .bio-inner { grid-template-columns: 1fr; gap: 24px; }

  .cs-card { grid-template-columns: 1fr; }
  .cs-card:nth-child(even) { direction: ltr; }
  .cs-vis { min-height: 170px; }

  .fo-waterfall { columns: 1; }

  .ct-grid { grid-template-columns: 1fr; gap: 20px; }
  .ct-pair { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .seg { padding: 44px 16px; }
  .hero { min-height: clamp(360px, 50vh, 720px); }
  .bio-inner { padding: 36px 16px; }
  .sk-grid, .dt-grid, .sv-grid, .tm-grid, .ed-grid { grid-template-columns: 1fr; }
  .ft { flex-direction: column; text-align: center; }
}

/* 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; }

/* 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 {
  --accent: #3d000c; /* was #8b3a4a */
  --accent2: #7f8f5e; /* was #6b7a4a */
}

/* 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 {
  --dim: #726c65; /* was #7e7870 */
}
