/* ═══════════════════════════════════════════════════════════
   MAIN.CSS — Antony Brahams Portfolio (index.html)
   Organized & Totoro-inspired edition
   ═══════════════════════════════════════════════════════════ */

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── VARIABLES ── */
:root {
  --ink: #141210;
  --ink2: #3a3530;
  --ink3: #8a8278;
  --paper: #f7f4ef;
  --paper2: #edeae3;
  --line: rgba(20, 18, 16, 0.1);
  --g: #2a5c45;
  --glight: #3d7a5c;
  --accent: #c8a96e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Instrument Sans", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* ═══════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════ */
#cur {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
}

.c-ring {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.c-dot {
  width: 4px;
  height: 4px;
  background: var(--ink);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}

.c-ring.hover {
  width: 52px;
  height: 52px;
  border-color: var(--g);
  background: rgba(42, 92, 69, 0.06);
}

/* ═══════════════════════════════════════
   NOISE TEXTURE OVERLAY
   ═══════════════════════════════════════ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ═══════════════════════════════════════
   TOTORO BACKGROUND — Custom image
   ═══════════════════════════════════════ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("../img/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 1.5rem;
  }
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.6rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s;
}

.nav-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo em {
  color: var(--g);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: all 0.25s;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 768px) {
  nav {
    padding: 1.2rem 1.5rem;
  }

  .nav-links {
    display: none;
  }
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 6rem;
  padding-top: 7rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-num {
  position: absolute;
  top: 50%;
  right: -2rem;
  transform: translateY(-60%);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(14rem, 28vw, 22rem);
  font-weight: 300;
  color: var(--paper2);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.02em;
}

.hero-label {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink3);
}

.hero-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

.hero-name em {
  font-style: italic;
  color: var(--g);
}

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-desc {
  max-width: 480px;
  font-size: 0.92rem;
  color: var(--ink2);
  line-height: 1.85;
}

.hero-desc strong {
  color: var(--ink);
  font-weight: 500;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
  flex-shrink: 0;
}

.hero-stat {
  text-align: right;
}

.hero-stat-n {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}

.hero-stat-l {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
}

.hero-divider {
  width: 1px;
  height: 60px;
  background: var(--line);
}

.hero-loc {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-loc::before {
  content: "●";
  font-size: 0.4rem;
  color: var(--g);
}

/* ═══════════════════════════════════════
   DEV PORTAL (fixed floating button)
   ═══════════════════════════════════════ */
#dev-portal {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.portal-label {
  font-family: "DM Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: var(--ink3);
  text-transform: uppercase;
  text-align: right;
}

.portal-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem 0.7rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}

.portal-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00ff87, #2a5c45);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-btn:hover::before {
  transform: translateX(0);
}

.portal-btn:hover {
  border-color: #00ff87;
  color: #020806;
}

.portal-btn span {
  position: relative;
  z-index: 1;
}

.portal-icon {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}

.portal-icon span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: width 0.2s;
}

.portal-icon span:nth-child(1) {
  width: 100%;
}
.portal-icon span:nth-child(2) {
  width: 65%;
}
.portal-icon span:nth-child(3) {
  width: 45%;
}

.portal-btn:hover .portal-icon span {
  width: 100%;
}

.portal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff87;
  animation: pulse-dot 2s infinite;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

/* ═══════════════════════════════════════
   SECTION BASE
   ═══════════════════════════════════════ */
section {
  border-top: 1px solid var(--line);
  padding: 7rem 0;
}

.sec-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4.5rem;
  gap: 2rem;
}

.sec-num {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  color: var(--ink3);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.sec-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}

.sec-title em {
  font-style: italic;
  color: var(--g);
}

.sec-link {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  transition: color 0.2s;
}

.sec-link:hover {
  color: var(--ink);
}

.sec-link::after {
  content: "→";
  transition: transform 0.2s;
}

.sec-link:hover::after {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-body p {
  font-size: 0.95rem;
  color: var(--ink2);
  line-height: 2;
  margin-bottom: 1.4rem;
}

.about-body p strong {
  color: var(--ink);
  font-weight: 500;
}

.about-body p em {
  color: var(--g);
  font-style: normal;
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.aside-block-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.lang-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.lang-name {
  font-size: 0.82rem;
  color: var(--ink2);
}

.lang-pct {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  color: var(--ink3);
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.val-tag {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  color: var(--ink3);
  transition: all 0.2s;
}

.val-tag:hover {
  border-color: var(--g);
  color: var(--g);
}

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

/* ═══════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════ */
.projects-list {
  display: flex;
  flex-direction: column;
}

.proj-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
  cursor: default;
}

.proj-item:hover {
  background: rgba(42, 92, 69, 0.025);
}

.proj-item:first-child {
  border-top: 1px solid var(--line);
}

.proj-n {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  color: var(--ink3);
  padding-top: 0.2rem;
  letter-spacing: 0.04em;
}

.proj-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.proj-jp {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--g);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.proj-desc {
  font-size: 0.84rem;
  color: var(--ink2);
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 0.9rem;
}

.proj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.65rem;
  background: var(--paper2);
  color: var(--ink3);
  border: 1px solid var(--line);
}

.proj-meta {
  text-align: right;
  padding-top: 0.2rem;
}

.proj-year {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--paper2);
  line-height: 1;
}

.proj-status {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g);
  margin-top: 0.3rem;
}

@media (max-width: 640px) {
  .proj-item {
    grid-template-columns: 2.5rem 1fr;
  }

  .proj-meta {
    display: none;
  }
}

/* ═══════════════════════════════════════
   TECH STACK
   ═══════════════════════════════════════ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
}

.stack-cat {
  border: 1px solid var(--line);
  padding: 2rem;
  margin: -1px 0 0 -1px;
}

.stack-cat-name {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.stack-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(20, 18, 16, 0.05);
}

.stack-item:last-child {
  border-bottom: none;
}

.stack-name {
  font-size: 0.8rem;
  color: var(--ink2);
}

.stack-pct {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  color: var(--ink3);
}

.stack-bar-wrap {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin-top: 0.15rem;
}

.stack-bar {
  height: 100%;
  background: var(--g);
  width: 0;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════
   EXPERIENCE / TIMELINE
   ═══════════════════════════════════════ */
.exp-timeline {
  display: flex;
  flex-direction: column;
}

.exp-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 4rem;
  padding: 2.8rem 0;
  border-bottom: 1px solid var(--line);
}

.exp-item:first-child {
  border-top: 1px solid var(--line);
}

.exp-period {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--ink3);
  margin-bottom: 0.5rem;
}

.exp-company {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}

.exp-loc {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-top: 0.3rem;
}

.exp-role {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.exp-desc {
  font-size: 0.86rem;
  color: var(--ink2);
  line-height: 1.9;
}

.exp-desc strong {
  color: var(--ink);
  font-weight: 500;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

@media (max-width: 640px) {
  .exp-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ═══════════════════════════════════════
   CERTIFICATIONS
   ═══════════════════════════════════════ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cert-card {
  background: var(--paper);
  padding: 1.8rem;
  transition: background 0.2s;
}

.cert-card:hover {
  background: var(--paper2);
}

.cert-icon2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.cert-name2 {
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.cert-issuer2 {
  font-size: 0.7rem;
  color: var(--ink3);
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════
   AI & AUTOMATION
   ═══════════════════════════════════════ */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.ai-card {
  background: var(--paper);
  padding: 2rem;
  transition: background 0.2s;
}

.ai-card:hover {
  background: var(--paper2);
}

.ai-card-label {
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--g);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.ai-card-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.ai-card-desc {
  font-size: 0.8rem;
  color: var(--ink2);
  line-height: 1.85;
}

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

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-headline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 2rem;
}

.contact-headline em {
  font-style: italic;
  color: var(--g);
}

.contact-sub {
  font-size: 0.9rem;
  color: var(--ink2);
  line-height: 1.9;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s;
}

.contact-link:hover {
  color: var(--g);
  padding-left: 0.5rem;
}

.cl-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 0.2rem;
}

.cl-val {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
}

.cl-arr {
  font-size: 0.8rem;
  transition: transform 0.2s;
  color: var(--ink3);
}

.contact-link:hover .cl-arr {
  transform: translate(4px, -4px);
  color: var(--g);
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.avail-block {
  padding: 2rem;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.avail-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--g);
}

.avail-status {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g);
  animation: pulse-dot 2s infinite;
}

.avail-text {
  font-size: 0.88rem;
  color: var(--ink2);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ═══════════════════════════════════════
   DEV PORTAL SECTION (inline dark band)
   ═══════════════════════════════════════ */
.dev-section {
  border-top: 1px solid var(--line);
  padding: 5rem 0;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.dev-section::before {
  content: "{ }";
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(8rem, 18vw, 15rem);
  font-weight: 300;
  color: rgba(0, 255, 135, 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.dev-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.dev-eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 255, 135, 0.6);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.dev-eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: rgba(0, 255, 135, 0.4);
}

.dev-headline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: #f7f4ef;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.dev-headline em {
  font-style: italic;
  color: #00ff87;
}

.dev-sub {
  font-size: 0.82rem;
  color: rgba(247, 244, 239, 0.45);
  line-height: 1.85;
  max-width: 420px;
}

.dev-enter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  flex-shrink: 0;
}

.dev-enter-hint {
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: rgba(247, 244, 239, 0.25);
  text-transform: uppercase;
  text-align: right;
}

.dev-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.8rem;
  border: 1px solid rgba(0, 255, 135, 0.4);
  color: #00ff87;
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.dev-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #00ff87;
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dev-btn:hover {
  color: #020806;
  border-color: #00ff87;
}

.dev-btn:hover::before {
  transform: translateX(0);
}

.dev-btn span {
  position: relative;
  z-index: 1;
}

.dev-btn-icon {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.3s;
}

.dev-btn:hover .dev-btn-icon {
  transform: rotate(90deg);
}

.dev-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
}

.dev-feature {
  font-family: "DM Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: rgba(247, 244, 239, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dev-feature::before {
  content: "◦";
  color: rgba(0, 255, 135, 0.4);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-left {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  color: var(--ink3);
  font-style: italic;
}

.footer-right {
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--ink3);
}

/* ═══════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ═══════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 14px rgba(37, 211, 102, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow:
    0 6px 22px rgba(37, 211, 102, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.whatsapp-float .wa-tooltip {
  position: absolute;
  left: calc(100% + 0.8rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--paper);
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
}

/* Pulse ring behind WhatsApp */
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.3);
  animation: wa-pulse 2.5s infinite;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════
   AUDIO TOGGLE BUTTON
   ═══════════════════════════════════════ */
.audio-toggle {
  position: fixed;
  bottom: 2rem;
  left: calc(2rem + 56px + 1rem);
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.audio-toggle:hover {
  background: var(--g);
  border-color: var(--g);
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(42, 92, 69, 0.25);
}

.audio-toggle:hover svg {
  fill: var(--paper);
}

.audio-toggle svg {
  width: 18px;
  height: 18px;
  fill: var(--ink3);
  transition: fill 0.2s;
}

.audio-toggle .audio-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}

.audio-toggle .audio-bars span {
  display: block;
  width: 2.5px;
  background: var(--ink3);
  border-radius: 1px;
  transition: background 0.2s;
}

.audio-toggle:hover .audio-bars span {
  background: var(--paper);
}

.audio-toggle.playing .audio-bars span {
  animation: audio-bar-bounce 0.8s ease-in-out infinite;
}

.audio-toggle.playing .audio-bars span:nth-child(1) {
  animation-delay: 0s;
  height: 6px;
}

.audio-toggle.playing .audio-bars span:nth-child(2) {
  animation-delay: 0.15s;
  height: 10px;
}

.audio-toggle.playing .audio-bars span:nth-child(3) {
  animation-delay: 0.3s;
  height: 14px;
}

.audio-toggle.playing .audio-bars span:nth-child(4) {
  animation-delay: 0.1s;
  height: 8px;
}

.audio-toggle:not(.playing) .audio-bars span {
  height: 3px !important;
  animation: none;
}

.audio-toggle .tooltip {
  position: absolute;
  bottom: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-family: "DM Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  border-radius: 2px;
}

.audio-toggle:hover .tooltip {
  opacity: 1;
}

@keyframes audio-bar-bounce {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.4);
  }
}

/* ═══════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.stagger .reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.stagger .reveal:nth-child(3) {
  transition-delay: 0.19s;
}
.stagger .reveal:nth-child(4) {
  transition-delay: 0.26s;
}
.stagger .reveal:nth-child(5) {
  transition-delay: 0.33s;
}
.stagger .reveal:nth-child(6) {
  transition-delay: 0.4s;
}

/* ═══════════════════════════════════════
   TOTORO DECORATIVE ELEMENTS
   Subtle leaf spirits floating
   ═══════════════════════════════════════ */
.totoro-leaf {
  position: fixed;
  z-index: 9997;
  pointer-events: none;
  opacity: 0;
  animation: leaf-float 18s infinite ease-in-out;
}

.totoro-leaf:nth-child(1) {
  left: 5%;
  animation-delay: 0s;
}

.totoro-leaf:nth-child(2) {
  left: 25%;
  animation-delay: 4s;
}

.totoro-leaf:nth-child(3) {
  left: 75%;
  animation-delay: 8s;
}

.totoro-leaf:nth-child(4) {
  left: 92%;
  animation-delay: 12s;
}

@keyframes leaf-float {
  0% {
    top: -5%;
    opacity: 0;
    transform: rotate(0deg) translateX(0);
  }
  10% {
    opacity: 0.06;
  }
  50% {
    opacity: 0.04;
    transform: rotate(180deg) translateX(40px);
  }
  90% {
    opacity: 0.06;
  }
  100% {
    top: 105%;
    opacity: 0;
    transform: rotate(360deg) translateX(-20px);
  }
}
