/* ============================================================
   Ryan Seeras site styles
   Sections in order:
     1. Hero            4. Journey / timeline
     2. Statement band  5. Selected work
     3. Writing         6. Contact
   ============================================================ */

/* ---------- shared ---------- */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
}

/* Keep anchor targets clear of the fixed nav pill. */
section[id] { scroll-margin-top: 100px; }

.sparkle {
  display: inline-block;
  flex-shrink: 0;
  fill: currentColor;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Entrance animation. Content ends at full opacity, so it is never
   left hidden if animations are skipped. */
@keyframes rsIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.reveal { animation: rsIn 0.6s var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none !important; }
}

/* Section eyebrow: sparkle + tracked label + hairline rule */
.band-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2.5rem;
}
.band-label .sparkle { color: var(--clay-500); }
.band-label__text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.band-label__rule {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast);
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--ink-950);
  color: var(--text-on-dark);
  border: 1px solid var(--ink-950);
}
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--ink-900);
}
.btn--full { width: 100%; }

/* ---------- nav ---------- */

.nav-wrap {
  position: fixed;
  top: 22px;
  left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: clamp(0.5rem, 3vw, 2.5rem);
  background: transparent;
  border-radius: var(--radius-pill);
  box-shadow: none;
  padding: 1.1rem clamp(1.5rem, 4vw, 3.5rem);
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
/* Fades into a white pill once past the hero fold. */
.nav-pill.is-scrolled {
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--dur-fast);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.is-active {
  font-weight: 600;
  color: var(--text-primary);
}

/* ---------- 1. hero ---------- */

.hero {
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 3rem;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero__wordmark {
  position: relative;
  margin: 1.5rem 0 0;
  width: min(92vw, 900px);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: 0.84;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink-900);
}
.hero__title-accent { color: var(--clay-500); }

/* Portrait sits over the wordmark and drifts toward the cursor. */
.hero__portrait {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  transition: transform 0.35s var(--ease-out);
  width: clamp(88px, 11vw, 140px);
  aspect-ratio: 3 / 4;
  border-radius: 50% / 46%;
  overflow: hidden;
  will-change: transform;
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__sparkle { margin: 2.4rem 0 0; color: var(--ink-900); }

.hero__pitch {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.6;
  color: var(--ink-900);
  max-width: 640px;
  margin: 2.2rem 0 0;
}

.hero__actions {
  margin-top: 2.6rem;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__scroll {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll-line {
  width: 1px;
  height: 34px;
  background: var(--ink-900);
}
.hero__scroll-label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---------- 2. statement band ---------- */

.statement {
  background: var(--ink-950);
  color: var(--cream-50);
}
.statement__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 8rem) var(--container-pad);
}
.statement .band-label { margin-bottom: 2.5rem; }
.statement .band-label__text { color: var(--sand-400); }

.statement__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.statement__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--cream-50);
}
.statement__title-accent { color: var(--clay-400); }

.statement__body {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--sand-400);
  margin: 2rem 0 0;
  max-width: 560px;
}

.statement__skills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.skill-chip {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(199, 191, 175, 0.35);
  color: var(--cream-50);
}

.statement__media {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}
.statement__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 30%;
  display: block;
}

/* ---------- 3. writing marquee ---------- */

.writing {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  overflow: hidden;
}
.writing__rows {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@keyframes wscroll    { from { transform: translateX(0);    } to { transform: translateX(-50%); } }
@keyframes wscrollRev { from { transform: translateX(-50%); } to { transform: translateX(0);    } }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: wscroll 72s linear infinite;
}
.marquee__track--slow    { animation-duration: 84s; }
.marquee__track--reverse { animation-name: wscrollRev; }

/* Pause so a card can actually be clicked. */
.marquee:hover .marquee__track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; }
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
}

.wcard {
  flex: 0 0 clamp(220px, 20vw, 310px);
  text-decoration: none;
  display: block;
}
.wcard__inner { transition: transform var(--dur-base) var(--ease-out); }
.wcard:hover .wcard__inner { transform: translateY(-4px); }

.wcard__frame {
  background: var(--cream-200);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.wcard__media {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
}
.wcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wcard__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-500);
  margin: 1.1rem 0 0.4rem;
}
.wcard__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--ink-900);
  margin: 0;
}

/* ---------- 4. journey timeline ---------- */

.journey { padding: clamp(3rem, 7vw, 6rem) var(--container-pad); }

.journey__lead {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.5;
  color: var(--ink-900);
  margin: 0 0 3.5rem;
  max-width: 720px;
}

.journey__list {
  display: flex;
  flex-direction: column;
  max-width: 820px;
}

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 56px) 1fr;
  gap: 1.75rem;
  padding-bottom: 2.5rem;
}
.chapter:last-child { padding-bottom: 0; }

.chapter__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.chapter__num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--clay-500);
}
.chapter__line {
  flex: 1;
  width: 1px;
  background: var(--border-subtle);
  margin-top: 10px;
}
.chapter:last-child .chapter__line { display: none; }

.chapter__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  color: var(--ink-900);
  margin: 0 0 0.6rem;
}
.chapter__body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
  max-width: 640px;
}

/* ---------- 5. selected work ---------- */

.work { padding: clamp(3rem, 7vw, 6rem) var(--container-pad); }

.work__list { display: flex; flex-direction: column; }

.work-item {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  border-radius: var(--radius-md);
  transition: box-shadow var(--dur-base) var(--ease-out),
              padding var(--dur-base) var(--ease-out);
}
.work-item.is-open {
  box-shadow: inset 0 0 0 2px var(--clay-500);
  border-top-color: transparent;
  padding: 1.5rem clamp(1rem, 2vw, 1.5rem);
}

.work-item__button {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.work-item__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 8px;
}
.work-item__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-item__id {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  column-gap: 1.5rem;
  align-items: center;
  min-width: 0;
}
.work-item__name {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.1vw, 1.375rem);
  color: var(--ink-900);
}
.work-item__role {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.work-item__blurb {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-item__metrics {
  display: flex;
  align-items: center;
  gap: 18px;
}
.work-item__metric {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--clay-500);
  line-height: 1;
}
.work-item__metric-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 3px;
}
.work-item__toggle {
  font-size: 22px;
  color: var(--clay-500);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out);
}
.work-item.is-open .work-item__toggle { transform: rotate(45deg); }

/* Collapsible panel via grid-template-rows so it animates to auto height. */
.work-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}
.work-item.is-open .work-item__panel { grid-template-rows: 1fr; }
.work-item__panel > div { overflow: hidden; }

.work-item__detail {
  padding-top: 1.5rem;
  padding-left: clamp(0px, 2vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 700px;
}
.work-item__intro {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-900);
  margin: 0;
}
.work-item__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.work-item__bullets li {
  display: flex;
  gap: 12px;
}
.work-item__bullets .sparkle {
  margin-top: 5px;
  color: var(--clay-500);
}
.work-item__bullets span:last-child {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-900);
}

.work__end { border-top: 1px solid var(--border-subtle); }

@media (max-width: 760px) {
  .work-item__blurb { display: none; }
  .work-item__id { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

/* Standalone now that the contact section is gone. Sits on the page
   background rather than the clay band it used to live inside. */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: clamp(2rem, 6vw, 4rem);
}
.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2rem) var(--container-pad);
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-footer .sparkle { color: var(--clay-500); }
.site-footer p {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0;
}
