/* Guido Gonzalez — 3D Rigger & TD. Static site styles. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Space Grotesk', sans-serif; background: #0c0a08; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; }

/* ===== Palettes (per-section variables) ===== */
.sec {
  background: var(--bg);
  color: var(--text);
  transition: background .4s ease, color .4s ease;
}
.sec-hero {
  --bg: #0c0a08; --bg2: #1a150f; --card: #1c1812; --hover: rgba(245,241,234,.06);
  --text: #f5f1ea; --muted: rgba(245,241,234,.75); --faded: rgba(245,241,234,.45);
  --meta: rgba(245,241,234,.55); --border: rgba(245,241,234,.12);
  --accent: oklch(0.78 0.14 70); --navbg: rgba(12,10,8,.85); --chip: rgba(245,241,234,.25);
}
.sec-body {
  --bg: #faf7f1; --bg2: #f3efe6; --card: #fff; --hover: #f3efe6;
  --text: #1c1913; --muted: #6d6659; --faded: #8a8377;
  --meta: #8a8377; --border: #e5e0d5;
  --accent: oklch(0.6 0.14 70); --navbg: rgba(250,247,241,.85); --chip: #d9d3c6;
}
html[data-theme="black"] .sec-body {
  --bg: #14110c; --bg2: #241f17; --card: #1c1812; --hover: #241f17;
  --text: #f5f1ea; --muted: #a89f8e; --faded: #8a8377;
  --meta: #8a8377; --border: #302a20;
  --accent: oklch(0.78 0.14 70); --navbg: rgba(12,10,8,.85); --chip: #3a332a;
}
html[data-theme="white"] .sec-hero {
  --bg: #faf7f1; --bg2: #eee9df; --card: #fff; --hover: rgba(28,25,19,.05);
  --text: #1c1913; --muted: #5a5347; --faded: rgba(28,25,19,.45);
  --meta: #8a8377; --border: #e5e0d5;
  --accent: oklch(0.52 0.14 70); --navbg: rgba(250,247,241,.85); --chip: #c9c2b0;
}
html[data-theme="black"] body { background: #0c0a08; }
html[data-theme="white"] body { background: #faf7f1; }

/* ===== Type helpers ===== */
.mono { font-family: 'IBM Plex Mono', monospace; }
.body-font { font-family: 'Work Sans', sans-serif; }

/* ===== Nav ===== */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 6vw; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--navbg);
  backdrop-filter: blur(12px); z-index: 50;
}
.nav-logo { font: 500 14px 'IBM Plex Mono', monospace; letter-spacing: 1px; }
.nav-links { display: flex; gap: 32px; align-items: center; font: 400 13px 'IBM Plex Mono', monospace; letter-spacing: 1px; }
.nav-links a { opacity: .6; transition: opacity .25s; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; color: var(--accent); }
.theme-toggle {
  font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: 1px;
  padding: 7px 14px; border: 1px solid currentColor; border-radius: 999px;
  background: transparent; color: inherit; cursor: pointer;
  opacity: .7; transition: opacity .25s;
}
.theme-toggle:hover { opacity: 1; }

/* ===== Social rail ===== */
.social-rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 100;
  display: flex; flex-direction: column;
  background: #0c0a08; border: 1px solid rgba(245,241,234,.18); border-right: none;
  border-radius: 8px 0 0 8px; overflow: hidden;
}
.social-rail a {
  writing-mode: vertical-rl; padding: 16px 10px;
  font: 500 10.5px 'IBM Plex Mono', monospace; letter-spacing: 2px;
  color: rgba(245,241,234,.65); transition: color .25s, background .25s;
}
.social-rail a + a { border-top: 1px solid rgba(245,241,234,.12); }
.social-rail a:hover { color: oklch(0.78 0.14 70); background: rgba(245,241,234,.06); }
html[data-theme="white"] .social-rail { background: #faf7f1; border-color: #d9d3c6; }
html[data-theme="white"] .social-rail a { color: #6d6659; }
html[data-theme="white"] .social-rail a + a { border-top-color: #e5e0d5; }
html[data-theme="white"] .social-rail a:hover { color: oklch(0.52 0.14 70); background: rgba(28,25,19,.05); }

/* ===== Hero ===== */
.hero { padding: 76px 6vw 56px; }
.kicker { font: 400 13px 'IBM Plex Mono', monospace; color: var(--accent); letter-spacing: 2px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(48px, 8.2vw, 108px); font-weight: 600; line-height: .95; letter-spacing: -.03em; margin-bottom: 28px; }
.hero h1 .dim, .dim { color: var(--faded); }
.hero .lead { max-width: 540px; font-family: 'Work Sans', sans-serif; font-size: 17px; font-weight: 300; line-height: 1.6; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.btn-primary {
  display: inline-block; padding: 14px 28px; background: var(--accent); color: #0c0a08;
  font-weight: 600; font-size: 14px; border-radius: 2px;
  transition: transform .25s, box-shadow .25s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 28px oklch(0.78 0.14 70 / .3); }
.btn-ghost {
  display: inline-block; padding: 14px 28px; border: 1px solid var(--chip);
  font-weight: 500; font-size: 14px; border-radius: 2px;
  transition: border-color .25s, background .25s;
}
.btn-ghost:hover { border-color: var(--text); background: var(--hover); }

/* ===== Showreel ===== */
.reel-wrap { padding: 8px 6vw 64px; }
.reel { aspect-ratio: 16/9; max-width: 1100px; margin: 0 auto; background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.reel iframe { width: 100%; height: 100%; border: none; display: block; }
.reel-caption { max-width: 1100px; margin: 12px auto 0; font: 400 12px 'IBM Plex Mono', monospace; color: var(--meta); letter-spacing: 1px; }

/* ===== Marquee ===== */
.marquee { border-top: 1px solid var(--border); padding: 28px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: gg-marquee 22s linear infinite; width: max-content; }
.marquee-track:hover { animation-play-state: paused; }
.marquee ul { display: flex; gap: 90px; padding-right: 90px; list-style: none; align-items: center; }
.marquee img { height: 54px; object-fit: contain; opacity: .85; }
@keyframes gg-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== Body sections ===== */
.container { max-width: 1100px; margin: 0 auto; }
.section-pad { padding: 64px 6vw 48px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.sec-head h2 { font-size: 34px; font-weight: 600; letter-spacing: -1px; }
.sec-head .more { font: 400 12px 'IBM Plex Mono', monospace; color: var(--faded); transition: color .25s; }
.sec-head .more:hover { color: var(--text); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--border); display: block;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.15); }
.card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .card-content { padding: 20px 24px 24px; }
.card-cat { font: 500 11px 'IBM Plex Mono', monospace; color: var(--accent); letter-spacing: 1.5px; margin-bottom: 8px; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.card .desc { font-family: 'Work Sans', sans-serif; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Post list rows */
.row-list { display: flex; flex-direction: column; }
.row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 18px 12px; border-top: 1px solid var(--border);
  transition: background .25s, padding-left .25s;
}
.row:last-child { border-bottom: 1px solid var(--border); }
.row:hover { background: var(--hover); padding-left: 20px; }
.row .title { font-size: 18px; font-weight: 500; }
.row .date { font: 400 12px 'IBM Plex Mono', monospace; color: var(--faded); white-space: nowrap; }

/* Blog list rows (with tag) */
.post-row {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 28px; align-items: baseline;
  padding: 22px 12px; border-top: 1px solid var(--border);
  transition: background .25s, padding-left .25s;
}
.post-row:hover { background: var(--hover); padding-left: 22px; }
.post-row h3 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.post-row .desc { font-family: 'Work Sans', sans-serif; font-size: 13.5px; color: var(--muted); }
.post-row .tag { font: 500 11px 'IBM Plex Mono', monospace; color: var(--accent); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; font: 500 12px 'IBM Plex Mono', monospace; }
.filters button {
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit;
  background: transparent; color: var(--muted); border: 1px solid var(--chip); transition: all .25s;
}
.filters button.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Featured card */
.featured {
  display: grid; grid-template-columns: 1.2fr 1fr; background: var(--card);
  border: 1px solid var(--border); margin-bottom: 40px;
  transition: transform .3s, box-shadow .3s;
}
.featured:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.15); }
.featured .thumb { overflow: hidden; min-height: 280px; }
.featured .thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured .content { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.featured h2 { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.5px; margin-bottom: 12px; }
@media (max-width: 800px) { .featured { grid-template-columns: 1fr; } }

/* About blurb */
.blurb { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.blurb h2 { font-size: 26px; font-weight: 600; line-height: 1.25; letter-spacing: -.5px; margin-bottom: 16px; }
.blurb p { font-family: 'Work Sans', sans-serif; font-size: 15px; font-weight: 300; line-height: 1.65; color: var(--muted); margin-bottom: 24px; }
.link-underline { font: 500 12px 'IBM Plex Mono', monospace; letter-spacing: 2px; border-bottom: 2px solid var(--accent); padding-bottom: 4px; transition: color .25s; }
.link-underline:hover { color: var(--accent); }

/* ===== Article (post) ===== */
.article { max-width: 860px; margin: 0 auto; }
.article .fig { border: 1px solid var(--border); overflow: hidden; margin-bottom: 10px; }
.article .fig img { width: 100%; }
.figcap { font: 400 11.5px 'IBM Plex Mono', monospace; color: var(--faded); margin-bottom: 44px; }
.article p.txt { font-family: 'Work Sans', sans-serif; font-size: 17px; font-weight: 300; line-height: 1.75; color: var(--text); opacity: .88; margin-bottom: 24px; }
.article h2 {
  font-size: 28px; font-weight: 600; letter-spacing: -.5px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.article h2::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex: none; }
.article h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.inline-code { font: 400 14px 'IBM Plex Mono', monospace; background: var(--bg2); padding: 2px 6px; border-radius: 3px; }

.codeblock { background: #14110d; border-radius: 6px; margin-bottom: 44px; overflow: hidden; }
.codeblock .code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; border-bottom: 1px solid rgba(245,241,234,.08); }
.codeblock .code-head span { font: 500 11px 'IBM Plex Mono', monospace; color: rgba(245,241,234,.5); }
.codeblock pre { margin: 0; padding: 20px 24px; font: 400 13px/1.7 'IBM Plex Mono', monospace; color: #e8e2d6; overflow-x: auto; }
.codeblock .c { color: #7a715f; font-style: italic; }
.codeblock .k { color: #d0a3e0; }
.codeblock .s { color: #a8c98a; }
.codeblock .n { color: #d6a06a; }
.codeblock .f { color: #7db3d8; }
.codeblock .o { color: #6ec2c9; }
.codeblock .cl { color: #e0c17a; }

/* Download button */
.download-wrap { text-align: center; margin: 8px 0 44px; }
.download-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  color: var(--accent); padding: 15px 32px; border: 1px solid var(--accent);
  border-radius: 4px; font: 600 14px 'IBM Plex Mono', monospace; letter-spacing: .5px;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.download-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px oklch(0.78 0.14 70 / .25); background: color-mix(in oklch, var(--accent) 22%, transparent); }
.download-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; transition: transform .3s; }
.download-btn:hover svg { transform: translateY(2px); }
.download-note { font: 400 11.5px 'IBM Plex Mono', monospace; color: var(--faded); margin-top: 14px; }

/* ===== About / Contact ===== */
.about-hero { display: grid; grid-template-columns: 1fr auto; gap: 48px; padding: 64px 6vw; align-items: center; max-width: 1100px; margin: 0 auto; }
.about-hero img { width: 250px; height: 310px; object-fit: cover; border: 1px solid var(--chip); }
@media (max-width: 800px) { .about-hero { grid-template-columns: 1fr; } }

.xp-row {
  display: grid; grid-template-columns: 190px 1fr; gap: 32px;
  padding: 22px 12px; border-top: 1px solid var(--border); transition: background .25s;
}
.xp-row:last-child { border-bottom: 1px solid var(--border); }
.xp-row:hover { background: var(--hover); }
.xp-row .when { font: 400 12px 'IBM Plex Mono', monospace; color: var(--faded); }
.xp-row h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.xp-row h3 em { font-style: normal; color: var(--accent); }
.xp-row p { font-family: 'Work Sans', sans-serif; font-size: 14px; line-height: 1.6; color: var(--muted); }
@media (max-width: 700px) { .xp-row { grid-template-columns: 1fr; gap: 6px; } }

.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; margin-bottom: 56px; }
.cols-3 h2 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.cols-3 .list { display: flex; flex-direction: column; gap: 8px; font-family: 'Work Sans', sans-serif; font-size: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px 'IBM Plex Mono', monospace; }
.pills span { padding: 7px 14px; border: 1px solid var(--chip); border-radius: 999px; }
.contact-list { display: flex; flex-direction: column; gap: 10px; font: 400 13px 'IBM Plex Mono', monospace; }
.contact-list a { transition: color .25s; }
.contact-list a:hover { color: var(--accent); }
.accent-underline { border-bottom: 1px solid var(--accent); padding-bottom: 2px; width: fit-content; }

.info-card { background: var(--card); border: 1px solid var(--border); padding: 26px 28px; display: block; transition: transform .3s, box-shadow .3s, border-color .3s; }
.info-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(0,0,0,.12); }
.info-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.info-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding: 28px 32px; background: var(--card); border: 1px solid var(--border); margin-bottom: 56px; }
.info-strip .label { font: 500 11px 'IBM Plex Mono', monospace; color: var(--faded); letter-spacing: 1.5px; margin-bottom: 4px; }
.info-strip .value { font-size: 17px; font-weight: 500; }

/* ===== Footer ===== */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--border);
  font: 400 12px 'IBM Plex Mono', monospace; color: var(--faded);
}
.footer a { transition: color .25s; }
.footer a:hover { color: var(--text); }
.footer .links { display: flex; gap: 24px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

@media (max-width: 700px) {
  .nav-links { gap: 16px; flex-wrap: wrap; }
  .post-row { grid-template-columns: 1fr; gap: 6px; }
  .social-rail { display: none; }
}
