/* =================================================================
   Aflah Ap — Portfolio
   Stylesheet (production)
================================================================= */

:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --surface: #0e0e0e;
  --surface-2: #141414;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --text: #f5f5f0;
  --text-muted: rgba(245, 245, 240, 0.62);
  --text-soft: rgba(245, 245, 240, 0.40);
  --accent: #ff2d2d;
  --accent-soft: rgba(255, 45, 45, 0.18);
  --radius: 0px;
  --container: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --f-display: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #222; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }

/* Typography helpers */
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.accent { color: var(--accent); }
.muted { color: var(--text-soft); }
.stroke {
  -webkit-text-stroke: 1.5px rgba(245, 245, 240, 0.25);
  color: transparent;
}

/* =================================================================
   AMBIENT BG / GLOW
================================================================= */
.ambient-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: float 18s ease-in-out infinite;
}
.glow-1 { width: 520px; height: 520px; background: var(--accent); top: -120px; left: -120px; }
.glow-2 { width: 420px; height: 420px; background: #fff; opacity: 0.05; bottom: -160px; right: -120px; animation-delay: -8s; }
.glow-3 { width: 360px; height: 360px; background: var(--accent); opacity: 0.18; top: 40%; right: 18%; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

/* Subtle noise overlay */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* =================================================================
   SCROLL PROGRESS
================================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #ff7a7a);
  z-index: 100;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(255, 45, 45, 0.55);
}

/* =================================================================
   NAVBAR
================================================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 90;
  padding: 20px 0;
  transition: all 0.4s var(--ease);
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  display: inline-block;
  animation: blink 1.4s infinite;
  box-shadow: 0 0 10px var(--accent);
}
.brand-sep { color: var(--text-soft); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.nav-links { display: none; gap: 32px; }
.nav-links a {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: none !important; }

@media (min-width: 992px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex !important; }
}

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 34px; height: 34px;
}
.hamburger span {
  display: block; height: 1.5px; width: 24px;
  background: var(--text); transition: all 0.4s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 992px) { .hamburger { display: none; } }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  padding: 96px 24px 40px;
  display: flex; flex-direction: column; gap: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: transform 0.5s var(--ease), opacity 0.35s ease, visibility 0s 0.5s;
  z-index: 80;
  overflow-y: auto;
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.5s var(--ease), opacity 0.35s ease, visibility 0s;
}
.mobile-menu a {
  padding: 18px 0;
  font-family: var(--f-display);
  font-size: 26px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 24px; }

@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

/* =================================================================
   BUTTONS
================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--f-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(255, 45, 45, 0.65);
}
.btn-primary:hover {
  background: #fff; color: #000;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* =================================================================
   HERO
================================================================= */
.hero {
  min-height: 100vh;
  position: relative;
  padding: 140px 0 80px;
  z-index: 2;
}
.hero-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--text-soft);
  margin-bottom: 48px;
}
.hero-meta .status, .hero-meta .loc {
  display: inline-flex; align-items: center; gap: 8px;
}
.status-dot { font-size: 8px; color: var(--accent); animation: blink 1.4s infinite; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 992px) {
  .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 0; }
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: clamp(56px, 13vw, 180px);
}
.hero-title .line { display: block; }
.hero-title em.serif {
  font-weight: 400;
  text-transform: lowercase;
  display: inline;
}
.typed { display: inline; }
.caret {
  display: inline-block;
  color: var(--accent);
  animation: caret 1s steps(2) infinite;
  margin-left: 4px;
  font-weight: 400;
}
@keyframes caret { 50% { opacity: 0; } }

.hero-lede {
  margin: 32px 0;
  max-width: 560px;
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--text-muted);
  line-height: 1.6;
}
.hero-lede strong { color: var(--text); font-weight: 500; }

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

.hero-portrait {
  display: flex; justify-content: center;
  position: relative;
}
.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.portrait-frame::before {
  content: "";
  position: absolute; inset: -12px;
  border: 1px solid var(--accent);
  z-index: -1;
}
.portrait-frame img {
  width: 100%;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.7s ease;
}
.portrait-frame:hover img { filter: grayscale(0%) contrast(1.05); }
.portrait-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.6), transparent 50%);
  pointer-events: none;
}
.portrait-tag {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--accent);
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em;
  padding: 8px 16px;
}

.hero-scroll {
  margin-top: 64px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--text-soft);
  display: inline-flex; align-items: center; gap: 12px;
}
.hero-scroll i { animation: bounce 2s infinite; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* =================================================================
   MARQUEE
================================================================= */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
}
.marquee-track span {
  font-family: var(--f-display);
  font-size: clamp(48px, 8vw, 120px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 32px;
  line-height: 1;
}
.marquee-track .dot {
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =================================================================
   SECTIONS — common
================================================================= */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) { .section { padding: 140px 0; } }

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 992px) {
  .section-grid { grid-template-columns: 1fr 3fr; gap: 64px; }
}

.section-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--text-soft);
  display: inline-flex; align-items: center; gap: 16px;
  margin-bottom: 16px;
}
.section-label .bar {
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: clamp(36px, 6vw, 84px);
}

.section-head {
  display: flex; flex-direction: column; gap: 24px;
  margin-bottom: 56px;
}
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.section-tag {
  color: var(--text-muted);
  max-width: 360px;
  font-size: 14px;
}

/* =================================================================
   ABOUT
================================================================= */
.about-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: clamp(15px, 1vw, 17px);
}
@media (min-width: 768px) { .about-cols { grid-template-columns: 1fr 1fr; gap: 40px; } }
.about-cols strong { color: var(--text); font-weight: 500; }

.stats {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-lbl {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--text-soft);
  margin-top: 8px; display: block;
}

/* =================================================================
   SERVICES
================================================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(12, 1fr); gap: 20px; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  min-height: 240px;
}
.service-card::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 45, 45, 0.5);
  background: var(--surface-2);
}
.service-card:hover::before { opacity: 0.25; }
.service-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px;
}
.service-top i {
  font-size: 26px;
  color: rgba(255,255,255,0.85);
  transition: color 0.4s ease;
}
.service-card:hover .service-top i { color: var(--accent); }
.service-num {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--text-soft);
}
.service-card h3 {
  font-family: var(--f-display);
  font-size: clamp(22px, 2vw, 28px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 480px;
}

/* =================================================================
   WORK
================================================================= */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.5s var(--ease);
}
.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 45, 45, 0.5);
}
.work-img {
  position: relative;
  aspect-ratio: 16 / 11;
  background-size: cover;
  background-position: center;
  filter: grayscale(80%);
  transition: filter 0.6s ease, transform 0.7s var(--ease);
}
.work-card:hover .work-img { filter: grayscale(0%); transform: scale(1.04); }
.work-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.85), transparent 60%);
}
.work-cat {
  position: absolute; top: 16px; left: 16px;
  z-index: 2;
  background: rgba(5,5,5,0.7);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--line);
}
.work-meta { padding: 28px 24px 24px; }
.work-meta h3 {
  font-family: var(--f-display);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.work-meta p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.work-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.metric {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.view-link {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap 0.3s ease, color 0.3s ease;
}
.view-link:hover { gap: 14px; color: var(--accent); }

/* =================================================================
   SKILLS
================================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .skills-grid { grid-template-columns: 1fr 1fr; gap: 40px 80px; } }

.skill-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
  font-family: var(--f-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.skill-pct { color: var(--accent); font-size: 14px; }

.bar-track {
  width: 100%; height: 4px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.bar-fill {
  position: absolute; left: 0; top: 0;
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), #ff7a7a);
  box-shadow: 0 0 12px rgba(255, 45, 45, 0.55);
  transition: width 1.6s var(--ease);
}
.skill.in-view .bar-fill { width: var(--w); }

/* =================================================================
   TESTIMONIALS
================================================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

.t-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 32px;
  transition: border-color 0.5s ease;
}
.t-card:hover { border-color: rgba(255, 45, 45, 0.4); }
.t-quote { color: var(--accent); font-size: 22px; margin-bottom: 20px; display: block; }
.t-card blockquote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: rgba(245,245,240,0.92);
}
.t-card figcaption {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-end;
}
.t-card figcaption strong {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.02em;
  display: block;
}
.t-card figcaption span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-soft);
}
.stars { color: var(--accent); font-size: 11px; display: flex; gap: 2px; }

/* =================================================================
   CONTACT
================================================================= */
.section-contact {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 992px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.contact-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(72px, 14vw, 200px);
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 24px 0 32px;
}
.contact-left p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 32px;
}
.contact-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 32px;
}
.contact-list li {
  display: flex; align-items: center; gap: 16px;
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list i { color: var(--accent); width: 18px; }
.contact-list a:hover { color: var(--accent); }

.socials { display: flex; gap: 12px; }
.socials a {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: all 0.4s var(--ease);
}
.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* Contact form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 40px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (min-width: 768px) { .contact-form { padding: 48px 40px; } }

.field { margin-bottom: 24px; }
.field label {
  display: block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.field label .opt { color: var(--text-soft); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 0;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.4s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field input.error, .field textarea.error { border-bottom-color: var(--accent); }

.form-status {
  margin-top: 16px;
  font-size: 13px;
  min-height: 20px;
}
.form-status.ok { color: #4ade80; }
.form-status.err { color: var(--accent); }

/* =================================================================
   FOOTER
================================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  position: relative; z-index: 2;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.foot-brand {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px;
}
.foot-copy {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-soft);
}
.foot-links { display: flex; gap: 24px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--text-soft); }
.foot-links a:hover { color: var(--accent); }

/* =================================================================
   BACK TO TOP
================================================================= */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  background: var(--accent);
  color: #fff;
  z-index: 60;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.4s var(--ease);
  box-shadow: 0 12px 24px -10px rgba(255, 45, 45, 0.6);
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: #fff; color: #000; transform: translateY(-3px); }

/* =================================================================
   REVEAL ANIMATION
================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================================
   ACCESSIBILITY / REDUCED MOTION
================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
