/* Public website layout. */
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; margin-top: 32px; }

.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 70px; padding-inline: max(20px, calc((100% - 1180px) / 2)); transition: background-color .3s; }
.nav.is-solid, .nav.is-open { background: rgb(10 9 8 / .94); backdrop-filter: blur(10px); }
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--gold-light); }
.nav__links .nav__cta { border: 1px solid var(--gold-deep); padding: 8px 18px; border-radius: var(--radius); color: var(--text); }
.nav__toggle { display: none; }
.nav__progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--progress, 0)); }

.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding-top: 108px; overflow: hidden; isolation: isolate; }
.hero__video { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero__glow { position: absolute; z-index: -1; inset: -20% -10% 20% 35%; background: radial-gradient(closest-side, rgb(212 175 95 / .2), rgb(138 108 47 / .07) 55%, transparent); animation: drift 14s ease-in-out infinite alternate; }
.hero__content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.hero__content > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) backwards; }
.hero__content > :nth-child(2) { animation-delay: .08s; }
.hero__content > :nth-child(3) { animation-delay: .18s; }
.hero__content > :nth-child(4) { animation-delay: .28s; }
.hero__content > :nth-child(5) { animation-delay: .38s; }
.kicker { font: 400 .85rem var(--mono); color: var(--gold); margin: 0 0 8px; }
.hero__name { font-size: clamp(4.4rem, 19vw, 14rem); font-weight: 700; letter-spacing: .01em; line-height: .92; text-transform: uppercase; background: linear-gradient(105deg, #8a6c2f 0%, #f6e3ad 28%, #c9a24f 48%, #fff0c4 62%, #8a6c2f 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__content > .hero__name { animation: rise .9s .08s cubic-bezier(.2,.7,.2,1) backwards, shine 9s 1s ease-in-out infinite alternate; }
.hero__lead { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.7rem); line-height: 1.2; margin: 18px 0 0; }
.hero__lead em { color: var(--gold-light); }
.hero__text { max-width: 56ch; color: var(--muted); margin: 18px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.timeline { border-top: 1px solid var(--line); background: rgb(18 16 13 / .75); padding: 10px 0 18px; }
.timeline__head { display: flex; justify-content: space-between; padding: 0 20px 8px; font: 400 .72rem var(--mono); color: var(--muted); }
.timeline__head span:first-child { color: var(--gold-light); font-variant-numeric: tabular-nums; }
.timeline__tracks { position: relative; display: grid; gap: 4px; }
.track { display: flex; gap: 3px; height: 18px; padding-inline: 20px; }
.track i { display: block; border-radius: 2px; background: var(--gold-deep); opacity: .75; }
.track--v2 i { flex: 0 0 14%; margin-left: 9%; background: #5b4a26; }
.track--v1 { height: 30px; }
.track--v1 i:nth-child(1) { flex: 2.2; background: linear-gradient(90deg,#6e5626,#b8923f); }
.track--v1 i:nth-child(2) { flex: 1.1; background: #3d3320; }
.track--v1 i:nth-child(3) { flex: 3; background: linear-gradient(90deg,#a8863a,#55431f); }
.track--v1 i:nth-child(4) { flex: .8; background: #c9a655; }
.track--v1 i:nth-child(5) { flex: 2; background: #4a3c20; }
.track--a1 i { flex: 1; background: repeating-linear-gradient(90deg, #6f5a2d 0 2px, transparent 2px 5px, #4d3f22 5px 6px, transparent 6px 11px); }
.playhead { position: absolute; top: -8px; bottom: -4px; left: 0; width: 2px; background: var(--gold-light); box-shadow: 0 0 14px var(--gold); animation: scrub 16s linear infinite; }
.playhead::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: var(--gold-light); }

.section { padding: clamp(76px, 10vw, 136px) 0; }
.section--panel { background: var(--panel); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 40px; margin-bottom: 40px; }
.section__head p { color: var(--muted); margin: 0; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

.reel { max-width: 1040px; margin: 0 auto; }
.reel__frame { aspect-ratio: 16 / 9; border: 1px solid var(--gold-deep); padding: 6px; border-radius: 6px; box-shadow: 0 40px 110px rgb(212 175 95 / .13); }
.reel__facade { position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: linear-gradient(135deg,#221d13,#0a0908); cursor: pointer; overflow: hidden; }
.reel__facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, opacity .3s; }
.reel__facade:hover img { transform: scale(1.03); opacity: .85; }
.reel__empty { display: grid; place-items: center; height: 100%; margin: 0; background: linear-gradient(135deg,#1c1810,#0a0908); color: var(--muted); font: 400 clamp(1.2rem, 3vw, 1.8rem) var(--display); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font: 600 .84rem var(--body); cursor: pointer; transition: .25s; }
.chip:hover { border-color: var(--gold-deep); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #171106; }
.chip__count { font: 500 .72rem var(--mono); opacity: .75; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 28px 22px; }
.card { animation: rise .55s ease backwards; min-width: 0; }
.card__button { display: block; width: 100%; padding: 0; text-align: left; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(135deg, #2a2316, #0e0c09 70%); transition: border-color .3s, box-shadow .3s; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card__button:hover .card__media, .card__button:focus-visible .card__media { border-color: var(--gold); box-shadow: 0 18px 50px rgb(212 175 95 / .17); }
.card__button:hover img { transform: scale(1.06); }
.card__play { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; translate: -50% -50%; border-radius: 50%; border: 1px solid var(--gold-light); background: rgb(10 9 8 / .65); transition: background-color .3s, scale .3s; }
.card__play::after { content: ""; position: absolute; top: 50%; left: 54%; translate: -50% -50%; border-block: 9px solid transparent; border-left: 14px solid var(--gold-light); }
.card__play--large { width: 88px; height: 88px; }
button:hover .card__play { background: var(--gold); scale: 1.08; }
button:hover .card__play::after { border-left-color: #171106; }
.card__time { position: absolute; right: 8px; bottom: 8px; padding: 1px 7px; background: rgb(0 0 0 / .78); border-radius: 3px; font: 400 .75rem var(--mono); }
.card__body { display: grid; gap: 3px; padding-top: 12px; overflow-wrap: anywhere; }
.card__category { font: 400 .75rem var(--mono); color: var(--gold); }
.card__title { font-family: var(--display); font-size: 1.35rem; line-height: 1.25; }
.card__text { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice { border: 1px dashed var(--gold-deep); border-radius: 6px; padding: 38px 22px; text-align: center; color: var(--muted); margin: 0 0 28px; }

.about { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px 64px; }
.about .section__head { align-content: start; align-items: start; margin: 0; }
.about__lead { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; margin: 0 0 22px; }
.about__text > p:not(.about__lead) { color: var(--muted); max-width: 62ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; margin: 36px 0 0; border-top: 1px solid var(--line); padding-top: 24px; }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-size: 1.25rem; color: var(--gold-light); }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.skills li { background: var(--panel); padding: 30px 26px; }
.skills li:hover { background: var(--panel-2); }
.skills h3 { font-size: 1.45rem; color: var(--gold-light); margin-bottom: 10px; }
.skills p { margin: 0; color: var(--muted); font-size: .94rem; }
.software { text-align: center; margin-top: 56px; }
.software__label { margin: 0; font-size: .85rem; color: var(--muted); }
.software__name { margin: 4px 0 0; font-family: var(--display); font-style: italic; font-size: clamp(2.2rem, 7vw, 4.6rem); color: var(--gold); }

.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact__text { color: var(--muted); }
.links { margin-top: 30px; }
.links li { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
.links span { font-size: .8rem; color: var(--muted); }
.links a { overflow-wrap: anywhere; font-weight: 600; text-decoration: none; }
.links a:hover { text-decoration: underline; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding: clamp(20px, 4vw, 34px); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.field--wide { grid-column: 1 / -1; }
.field { min-width: 0; }
.trap { position: absolute; left: -9999px; }
.form__status { margin: 12px 0 0; }
.form__status:empty { display: none; }
.form__status[data-tone="success"] { color: var(--ok); }
.form__status[data-tone="error"] { color: var(--danger); }
.form__privacy { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }

.footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .88rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer ul { display: flex; gap: 22px; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes shine { to { background-position: 100% 0; } }
@keyframes scrub { from { left: 20px; } to { left: calc(100% - 22px); } }
@keyframes drift { to { transform: translate(-8%, 6%) scale(1.12); } }

@media (max-width: 880px) {
  .about, .contact { grid-template-columns: 1fr; }
  .nav__toggle { display: block; order: 2; min-height: 38px; padding: 4px 16px; background: transparent; color: var(--text); border: 1px solid var(--gold-deep); border-radius: var(--radius); font: 600 .85rem var(--body); }
  .nav__links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; background: rgb(10 9 8 / .98); border-bottom: 1px solid var(--line); max-height: calc(100dvh - 70px); overflow: auto; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .nav__links .nav__cta { text-align: center; margin-top: 10px; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; margin-inline: -20px; padding-inline: 20px; }
  .chip { flex: 0 0 auto; }
  .actions .btn { width: 100%; }
}
