/* Rigged African Elephant for Blender: project page (AnimalAnimator.com).
   Palette: a savanna at dusk. Warm charcoal (wet elephant skin) as the base, sunset amber as the main accent,
   open-sky blue for key numbers, acacia sage and tusk ivory as supports. Same palette as the elephant guide. */
:root {
  --bg: #0f0d0b; --s1: #171411; --s2: #1f1b17; --s3: #28231e; --line: #383029; --line2: #52463b;
  --ink: #efe8df; --head: #fbf6ef; --dim: #c6baab; --faint: #9d9183;
  --amber: #f0a35e; --amber2: #f8c896; --sky: #6cb8e8; --sky2: #b3dcf5; --sage: #a8c77a; --ivory: #f1dca7;
  --grad: linear-gradient(100deg, #f0a35e 0%, #f1dca7 34%, #a8c77a 64%, #6cb8e8 100%);
  --r: 20px; --r-sm: 12px; --wrap: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden;
  background:
    radial-gradient(1100px 640px at 90% -10%, rgba(108, 184, 232, .12), transparent 60%),
    radial-gradient(1000px 640px at -10% 8%, rgba(240, 163, 94, .12), transparent 62%),
    var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--amber2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--head); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); color: var(--head); font-weight: 700; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(1.8rem, 1.1rem + 2.4vw, 2.75rem); line-height: 1.12; max-width: 22ch; }
h3 { font-size: 1.3rem; line-height: 1.25; }
code, kbd { font: 500 .88em/1 ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--s3); border: 1px solid var(--line); border-radius: 6px; padding: .18em .42em; color: var(--ivory); }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--amber); color: #171411; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.35em; border-radius: 999px; border: 1px solid transparent;
  background: var(--amber); color: #1a140e; font: 800 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(240, 163, 94, .7);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--amber2); color: #1a140e; transform: translateY(-2px); }
.btn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost { background: transparent; color: var(--head); border-color: var(--line2); box-shadow: none; }
.btn-ghost:hover { background: var(--s2); color: var(--head); border-color: var(--amber); }
.btn-sm { min-height: 40px; padding: .55em 1.1em; font-size: .92rem; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(15, 13, 11, .78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--head); text-decoration: none; font: 600 1.08rem/1 var(--sans); letter-spacing: -.01em; }
.brand b { color: var(--amber); font-weight: 800; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { color: var(--dim); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav nav a:hover { color: var(--head); background: var(--s2); }
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero-in { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(31, 27, 23, .7); color: var(--ivory); font-weight: 700; font-size: .86rem; letter-spacing: .02em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(168, 199, 122, .18); }
h1 { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; font-weight: 500; }
.lead { margin: 22px 0 30px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--dim); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 18px 0 0; color: var(--faint); font-size: .92rem; }
.fine b { color: var(--dim); }
.frame { position: relative; border-radius: var(--r); overflow: hidden; background: var(--s1); border: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 40px 100px -40px rgba(240, 163, 94, .45), 0 20px 50px -30px rgba(0, 0, 0, .9); aspect-ratio: 16 / 9; }
.frame video { width: 100%; height: 100%; object-fit: cover; }
.hero-media { margin: 0; }
.hero-media .frame { transform: perspective(1400px) rotateY(-4deg); }
.hero-media figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--faint); font-size: .9rem; }
.tag { font: 600 .78rem/1 ui-monospace, Consolas, monospace; color: var(--sky2); background: rgba(108, 184, 232, .12); border: 1px solid rgba(108, 184, 232, .3); padding: 5px 8px; border-radius: 6px; }

.stats { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: rgba(23, 20, 17, .7); overflow: hidden; }
.stats li { padding: 22px 20px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats b { display: block; font: 700 clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem)/1.05 var(--serif); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--faint); font-size: .9rem; font-weight: 600; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-media .frame { transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li { border-left: 0; border-top: 1px solid var(--line); }
  .stats li:nth-child(-n+2) { border-top: 0; }
  .stats li:nth-child(even) { border-left: 1px solid var(--line); }
  .stats li:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 116px) 0; }
.band { background: linear-gradient(180deg, rgba(23, 20, 17, .9), rgba(23, 20, 17, .55)); border-block: 1px solid rgba(255, 255, 255, .05); }
.kicker { margin: 0 0 12px; color: var(--amber); font: 800 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.sub { margin: 16px 0 0; color: var(--dim); max-width: 44em; font-size: 1.05rem; }
.note { margin: 14px 0 0; color: var(--faint); font-size: .9rem; }

/* ---------- Sketchfab facade ---------- */
.viewer { position: relative; margin-top: 36px; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--s1); border: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 40px 100px -50px rgba(108, 184, 232, .5); }
.viewer img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); transition: filter .3s ease, transform .6s ease; }
.viewer:hover img { filter: brightness(.95); transform: scale(1.015); }
.viewer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 16px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: rgba(15, 13, 11, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--head); font: 700 1rem/1.2 var(--sans); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.play:hover { background: rgba(15, 13, 11, .9); border-color: var(--amber); }
.play svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--amber); fill: #1a140e; flex: none; }
@media (max-width: 560px) { .play span { display: none; } .play { padding: 10px; } }

/* ---------- animations ---------- */
.anim { display: grid; grid-template-columns: 1fr 320px; gap: 28px; margin-top: 40px; align-items: start; }
.anim-panel { margin-top: 24px; }
.anim-panel h3 { margin-bottom: 10px; }
.anim-panel p { margin: 0 0 10px; color: var(--dim); max-width: 46em; }
.anim-panel .sci { color: var(--faint); font-size: .92rem; padding-left: 14px; border-left: 2px solid var(--sage); }
.tabs { display: grid; gap: 10px; }
.tabs button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(31, 27, 23, .6); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.tabs button:hover { border-color: var(--line2); background: var(--s2); transform: translateX(3px); }
.tabs button[aria-selected="true"] { border-color: var(--amber); background: linear-gradient(90deg, rgba(240, 163, 94, .16), rgba(31, 27, 23, .6)); }
.tabs .n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--s3); color: var(--amber2); font: 700 .95rem/1 var(--serif); }
.tabs button[aria-selected="true"] .n { background: var(--amber); color: #1a140e; }
.tabs .t { display: grid; font-weight: 700; color: var(--head); line-height: 1.3; }
.tabs small { color: var(--faint); font-weight: 500; font-size: .85rem; }
@media (max-width: 900px) {
  .anim { grid-template-columns: 1fr; }
  .tabs { grid-row: 1; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .tabs button:hover { transform: none; }
}

/* ---------- rig ---------- */
.shot { display: block; width: 100%; padding: 0; border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--r); overflow: hidden; background: var(--s1); color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.shot img { width: 100%; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.02); }
.shot.wide { margin-top: 40px; box-shadow: 0 40px 100px -50px rgba(240, 163, 94, .5); }
.cap { display: block; padding: 14px 18px 18px; color: var(--dim); font-size: .95rem; }
.cap b { color: var(--head); }
.cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cards li { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(23, 20, 17, .75); }
.cards b { display: block; margin-bottom: 6px; color: var(--ivory); font-size: 1.02rem; }
.cards span { color: var(--dim); font-size: .94rem; line-height: 1.6; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- process strip ---------- */
.strip {
  list-style: none; margin: 40px 0 0; padding: 4px max(16px, calc((100% - var(--wrap)) / 2)) 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100% - var(--wrap)) / 2));
  scrollbar-color: var(--line2) transparent;
}
.strip li { scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--s1); }
.strip img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.strip b { display: flex; align-items: center; gap: 10px; padding: 16px 18px 4px; color: var(--head); }
.strip i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--s3); color: var(--amber2); font: 700 .8rem/1 var(--sans); font-style: normal; }
.strip span { display: block; padding: 0 18px 18px; color: var(--dim); font-size: .92rem; line-height: 1.55; }

/* ---------- use + specs ---------- */
.use { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.steps { counter-reset: s; list-style: none; margin: 30px 0 32px; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 0 52px; color: var(--dim); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--amber); color: var(--amber2); font: 700 .95rem/1 var(--serif); }
.steps b { color: var(--head); }
.specs-card { padding: clamp(22px, 3vw, 34px); border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(40, 35, 30, .9), rgba(23, 20, 17, .9)); }
.specs { margin: 18px 0 0; display: grid; grid-template-columns: max-content 1fr; }
.specs dt, .specs dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.specs dt { padding-right: 18px; color: var(--faint); font-weight: 700; font-size: .9rem; }
.specs dd { color: var(--ink); font-size: .95rem; }
@media (max-width: 900px) { .use { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .specs { grid-template-columns: 1fr; } .specs dd { border-top: 0; padding-top: 0; } }

/* ---------- credit ---------- */
.credit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.credit-box { padding: 24px; border-radius: var(--r); border: 1px dashed var(--line2); background: rgba(15, 13, 11, .6); }
.credit-box p { margin: 0 0 16px; font: 500 .95rem/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--ivory); overflow-wrap: anywhere; }
@media (max-width: 900px) { .credit { grid-template-columns: 1fr; } }

/* ---------- guide promo + related ---------- */
.promo { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(22px, 4vw, 48px); padding: clamp(14px, 2vw, 20px); border-radius: calc(var(--r) + 6px); text-decoration: none; color: inherit; background: linear-gradient(var(--s1), var(--s1)) padding-box, var(--grad) border-box; border: 1px solid transparent; transition: transform .25s ease; }
.promo:hover { transform: translateY(-3px); color: inherit; }
.promo img { border-radius: var(--r); aspect-ratio: 1200 / 630; object-fit: cover; }
.promo h2 { max-width: none; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); }
.promo p:not(.kicker) { color: var(--dim); margin: 14px 0 18px; }
.more { color: var(--amber2); font-weight: 800; }
.rel-title { margin: clamp(48px, 6vw, 72px) 0 18px; font-size: 1.35rem; }
.related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.related a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(23, 20, 17, .7); text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.related a:hover { border-color: var(--amber); background: var(--s2); }
.related b { display: block; color: var(--head); }
.related span { color: var(--faint); font-size: .92rem; }
@media (max-width: 800px) { .promo { grid-template-columns: 1fr; } .promo > div { padding: 0 8px 10px; } }

/* ---------- FAQ ---------- */
details { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(23, 20, 17, .75); }
details:first-of-type { margin-top: 32px; }
summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative; color: var(--head); font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--amber); font: 500 1.5rem/1 var(--sans); transition: transform .2s ease; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0; padding: 0 20px 20px; color: var(--dim); }

/* ---------- footer ---------- */
.foot { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot p { margin: 0; color: var(--faint); font-size: .9rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.foot nav a { color: var(--dim); font-size: .92rem; text-decoration: none; }
.foot nav a:hover { color: var(--amber2); }

/* ---------- lightbox ---------- */
dialog { max-width: min(1400px, 94vw); max-height: 94vh; padding: 0; border: 1px solid var(--line2); border-radius: var(--r); background: var(--s1); color: var(--dim); }
dialog::backdrop { background: rgba(8, 7, 6, .86); backdrop-filter: blur(4px); }
dialog img { width: 100%; max-height: 80vh; object-fit: contain; background: #000; }
dialog p { margin: 0; padding: 14px 20px 18px; font-size: .95rem; }
.lb-close { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(15, 13, 11, .8); color: var(--head); font: 400 1.6rem/1 var(--sans); cursor: pointer; }
.lb-close:hover { border-color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
