/* ============================================================
   SIVILL — Apple-style design system
   Senior-grade, shared across index + detail pages
   ============================================================ */

/* System font stack (Apple's own approach) — zero font requests, instant render */

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

:root {
  /* surfaces */
  --bg: #000000;
  --bg-light: #f5f5f7;
  --surface: #0a0a0c;
  --surface-2: #141416;
  --card: rgba(255,255,255,0.045);
  --card-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.18);

  /* text */
  --text: #f5f5f7;
  --text-dim: #86868b;
  --text-dim2: #a1a1a6;
  --ink: #1d1d1f;
  --ink-dim: #6e6e73;

  /* brand energy */
  --accent: #ffd60a;
  --accent-2: #ffb800;
  --accent-glow: rgba(255,214,10,0.45);
  --blue: #2997ff;

  /* shape + motion */
  --r-sm: 14px;
  --r: 22px;
  --r-lg: 28px;
  --pill: 980px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1);

  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---------- electrician concept: faint circuit-board backdrop ---------- */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffd60a' stroke-width='1' opacity='0.06'%3E%3Cpath d='M0 30 H40 V70 H80 V20 H120'/%3E%3Cpath d='M20 120 V80 H60 V40 H100 V0'/%3E%3Cpath d='M0 95 H30 V60'/%3E%3C/g%3E%3Cg fill='%23ffd60a' opacity='0.10'%3E%3Ccircle cx='40' cy='30' r='2.4'/%3E%3Ccircle cx='80' cy='70' r='2.4'/%3E%3Ccircle cx='80' cy='20' r='2.4'/%3E%3Ccircle cx='60' cy='80' r='2.4'/%3E%3Ccircle cx='100' cy='40' r='2.4'/%3E%3Ccircle cx='30' cy='95' r='2.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}

/* energy divider — a glowing line with a travelling spark */
.energy-divider {
  position: relative; height: 1px; max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  overflow: visible;
}
.energy-divider::after {
  content: ''; position: absolute; top: 50%; left: 0; width: 60px; height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px var(--accent-glow);
  animation: spark-travel 5s var(--ease) infinite;
}
@keyframes spark-travel { 0% { left: -60px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* ---------- custom lightning cursor (subtle brand touch) ---------- */
@media (pointer: fine) {
  * { cursor: none !important; }
}
#cursor {
  position: fixed; top: 0; left: 0; width: 18px; height: auto;
  content: url('lightning-cursor.png');
  pointer-events: none; z-index: 99999;
  will-change: transform;
  transform: translate(var(--cx,-999px), var(--cy,-999px)) rotate(105deg) scale(var(--cs,1));
  transition: opacity .25s ease, filter .2s ease, scale .14s var(--ease);
  filter: drop-shadow(0 0 7px rgba(255,214,10,0.7));
  opacity: 1; --cs: 1;
}
#cursor.active   { --cs: 1.25; }
#cursor.hovering { --cs: 1.35; filter: drop-shadow(0 0 12px rgba(255,214,10,1)); }
#cursor.hidden   { opacity: 0; }
#cursor.behind   { opacity: 0; z-index: -1; }

/* ============================================================
   NAV  — frosted, Apple-style
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.2rem, 4vw, 2.6rem);
  background: rgba(8,8,10,0.62);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background .4s var(--ease);
}
.nav-logo img { height: 26px; width: auto; mix-blend-mode: screen; }
.nav-menu { display: flex; gap: clamp(1.1rem, 2.4vw, 2.2rem); align-items: center; }
.nav-menu a {
  font-size: 0.82rem; font-weight: 400; color: var(--text-dim2);
  letter-spacing: -0.01em; transition: color .3s var(--ease);
}
.nav-menu a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--accent); color: #000;
  font-size: 0.8rem; font-weight: 600;
  padding: .42rem 1rem; border-radius: var(--pill);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-cta:hover { transform: scale(1.04); box-shadow: 0 0 24px var(--accent-glow); }
.nav-back { display: inline-flex; align-items: center; gap: .5rem; font-size: 0.82rem; color: var(--text-dim2); }
.nav-back:hover { color: var(--text); }

/* hamburger (mobile only) */
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 0; background: transparent;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS — Apple pills
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: 1rem; font-weight: 500; letter-spacing: -0.01em;
  padding: .85rem 1.7rem; border-radius: var(--pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 40px var(--accent-glow); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-blue { color: var(--blue); }
.btn-blue::after { content: '›'; font-size: 1.2em; transition: transform .3s var(--ease); }
.btn-blue:hover::after { transform: translateX(4px); }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.section { padding: clamp(5rem, 11vh, 9rem) clamp(1.2rem, 4vw, 2rem); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.center { text-align: center; }
.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); margin-bottom: 0.9rem; text-transform: none;
}
.headline {
  font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.03em;
}
.headline.grad {
  background: linear-gradient(180deg, #ffffff 30%, #b9b9bf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--text-dim2);
  font-weight: 400; max-width: 620px; line-height: 1.5; margin-top: 1.2rem;
}
.section-light { background: var(--bg-light); color: var(--ink); }
.section-light .eyebrow { color: var(--accent-2); }
.section-light .headline.grad { background: linear-gradient(180deg,#1d1d1f,#515154); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-light .sub { color: var(--ink-dim); }

/* ============================================================
   HERO  (index)
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 1.2rem 4rem; overflow: hidden;
  /* static glow fallback — visible even when the 3D canvas is disabled */
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(255,214,10,0.14), transparent 70%),
    radial-gradient(circle at 50% 120%, rgba(41,151,255,0.08), transparent 60%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, transparent 40%, rgba(0,0,0,0.55) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 700; line-height: 1.02;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #fff 35%, #c7c7cf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em { font-style: normal; color: var(--accent); -webkit-text-fill-color: var(--accent); }
.hero p.lead { font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--text-dim2); margin: 1.4rem auto 0; max-width: 560px; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--text-dim); font-size: 0.78rem; letter-spacing: 0.04em;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  animation: floaty 2.4s ease-in-out infinite;
}
.scroll-hint span:last-child { font-size: 1.1rem; }
@keyframes floaty { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(7px)} }

/* ============================================================
   BENTO GRID — services
   ============================================================ */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px; gap: 16px; margin-top: 3rem;
}
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--border);
  padding: 1.8rem; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .5s var(--ease-apple), border-color .4s var(--ease), background .4s var(--ease), box-shadow .5s var(--ease);
  isolation: isolate;
}
.tile:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--card-hover); box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
.tile.span-2 { grid-column: span 2; }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile-bg { position: absolute; inset: 0; z-index: -1; object-fit: cover; width: 100%; height: 100%; opacity: 0.42; transition: transform .8s var(--ease-apple), opacity .5s var(--ease); }
.tile:hover .tile-bg { transform: scale(1.06); opacity: 0.55; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.78) 100%); }
.tile-icon { font-size: 1.7rem; margin-bottom: auto; filter: drop-shadow(0 0 16px var(--accent-glow)); }
.tile-cat { font-size: 0.74rem; font-weight: 600; color: var(--accent); margin-bottom: .5rem; }
.tile h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.tile p { font-size: 0.92rem; color: var(--text-dim2); margin-top: .5rem; max-width: 30ch; }
.tile .more { margin-top: 1rem; font-size: 0.86rem; color: var(--text); display: inline-flex; align-items: center; gap: .35rem; opacity: .85; }
.tile .more::after { content: '›'; font-size: 1.2em; transition: transform .3s var(--ease); }
.tile:hover .more::after { transform: translateX(5px); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; border-radius: var(--r-lg); object-fit: cover; box-shadow: 0 40px 90px rgba(0,0,0,0.6); }
.about-photo::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--border); }
.about-body h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.4rem; }
.about-body p { color: var(--text-dim2); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.1rem; }
.about-body strong { color: var(--text); font-weight: 600; }
.about-quote { border-left: 2px solid var(--accent); padding-left: 1.1rem; color: var(--accent) !important; font-size: 1.2rem !important; font-style: italic; }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--surface); padding: 2.6rem 1.5rem; text-align: center; transition: background .4s var(--ease); }
.stat:hover { background: var(--surface-2); }
.stat-num { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.9rem; color: var(--text-dim); margin-top: .6rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 3rem; }
.shot { position: relative; aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-apple); }
.shot:hover img { transform: scale(1.05); }
.shot figcaption { position: absolute; left: 1.2rem; bottom: 1.1rem; font-size: 0.9rem; font-weight: 500; text-shadow: 0 2px 12px rgba(0,0,0,0.8); }

/* ============================================================
   TIP CARDS
   ============================================================ */
.tips-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 3rem; }
.tip {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 2rem; overflow: hidden;
  transition: transform .5s var(--ease-apple), border-color .4s var(--ease), background .4s var(--ease), box-shadow .5s var(--ease);
}
.tip:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--card-hover); box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
.tip-no { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); margin-bottom: .8rem; }
.tip h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: .7rem; }
.tip p { font-size: 0.95rem; color: var(--text-dim2); line-height: 1.6; }
.tip .more { margin-top: 1.4rem; font-size: 0.88rem; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; }
.tip .more::after { content: '›'; font-size: 1.2em; transition: transform .3s var(--ease); }
.tip:hover .more::after { transform: translateX(5px); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 1.4rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; background: rgba(255,214,10,0.1); border: 1px solid rgba(255,214,10,0.22); }
.info-k { font-size: 0.74rem; letter-spacing: 0.04em; color: var(--text-dim); text-transform: uppercase; }
.info-v { font-size: 1rem; margin-top: .15rem; }
.info-v a { color: var(--accent); }
.map { margin-top: 1.8rem; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.map iframe { width: 100%; height: 240px; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); }

form { display: grid; gap: 1rem; }
.field label { display: block; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); margin-bottom: .45rem; }
.field input, .field textarea {
  width: 100%; padding: .9rem 1.05rem; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font); font-size: 0.95rem; outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #5f5f65; }
.field input:focus, .field textarea:focus { border-color: var(--accent); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 4px rgba(255,214,10,0.1); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form-note { font-size: 0.82rem; color: var(--text-dim); margin-top: .4rem; }
.form-note a { color: var(--accent); }
#statusMsg { margin-top: .4rem; padding: .9rem 1rem; font-size: 0.9rem; border-radius: var(--r-sm); display: none; }
#statusMsg.error { display: block; background: rgba(255,69,58,0.12); border: 1px solid rgba(255,69,58,0.3); color: #ffd5d2; }
#statusMsg.success { display: block; background: rgba(48,209,88,0.12); border: 1px solid rgba(48,209,88,0.3); color: #c7f5cf; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 2.2rem clamp(1.2rem,4vw,2.6rem); }
.footer-in { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer img { height: 22px; width: auto; opacity: .6; mix-blend-mode: screen; }
.footer small { color: var(--text-dim); font-size: 0.8rem; }
.footer a { color: var(--accent); }

/* ============================================================
   DETAIL PAGE (article)
   ============================================================ */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0.6; }
.detail-hero { position: relative; padding: 9rem 1.2rem 3rem; text-align: center; }
.detail-hero .eyebrow { display: flex; justify-content: center; gap: .5rem; }
.detail-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; max-width: 16ch; margin: 0 auto; background: linear-gradient(180deg,#fff 40%,#bcbcc4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.detail-hero .lead { font-size: clamp(1.05rem,2.2vw,1.4rem); color: var(--text-dim2); max-width: 640px; margin: 1.3rem auto 0; }
.article { max-width: 760px; margin: 0 auto; padding: 2rem 1.2rem 5rem; }
.article h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: -0.025em; margin: 2.6rem 0 1rem; }
.article p { color: var(--text-dim2); font-size: 1.08rem; line-height: 1.75; margin-bottom: 1.2rem; }
.article strong { color: var(--text); font-weight: 600; }
.check { list-style: none; display: grid; gap: .9rem; margin: 1.4rem 0 2rem; }
.check li { position: relative; padding: 1rem 1.2rem 1rem 3rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text-dim2); line-height: 1.55; }
.check li strong { color: var(--text); }
.check li::before { content: '⚡'; position: absolute; left: 1.05rem; top: 1rem; color: var(--accent); filter: drop-shadow(0 0 8px var(--accent-glow)); }
.callout { background: linear-gradient(135deg, rgba(255,214,10,0.1), rgba(255,184,0,0.03)); border: 1px solid rgba(255,214,10,0.25); border-radius: var(--r); padding: 1.6rem 1.8rem; margin: 2rem 0; }
.callout p { margin: 0; color: var(--text); }
.cta-band { text-align: center; padding: 3rem 1.2rem 5rem; }
.cta-band h2 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1.6rem; }
.cta-band .btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-apple), transform .9s var(--ease-apple); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 52px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(8,8,10,0.96); backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    padding: .5rem 1.5rem 1rem;
    transform: translateY(-130%); transition: transform .4s var(--ease);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { width: 100%; padding: .95rem 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-menu a:last-child { border-bottom: 0; }
  .bento { grid-template-columns: repeat(2,1fr); grid-auto-rows: 200px; }
  .tile.big { grid-column: span 2; grid-row: span 2; }
  .tile.span-2 { grid-column: span 2; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; margin: 0 auto; }
  .gallery { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .tile.big, .tile.span-2 { grid-column: span 1; }
  .tile.big { grid-row: span 1; }
}
@media (pointer: coarse) { #cursor { display: none; } * { cursor: auto !important; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } .reveal { transition: none; } }
