/* Trigon Media site layer. Loaded after tokens.css and components.css.
   Holds what the mockups need that components.css does not cover yet.
   Rules: tokens only, no inline grid definitions, mobile rules in the two media queries at the end. */

html { scroll-padding-top: 24px; }
body { overflow-x: hidden; }
main { display: block; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.on-dark :focus-visible, .section--ink :focus-visible, .card--ink:focus-visible, .card--brick:focus-visible { outline-color: var(--ivory); }

/* Header */
.site-header-bar { position: relative; z-index: 20; border-bottom: 1px solid var(--rule); }
/* a little more room between the header line and the first content */
.site-header-bar + main .hero, .site-header-bar + main .page-intro { padding-top: 48px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn--dark { min-height: 44px; }
.btn--dark[aria-current="page"] { background: var(--brick); }
.nav { align-items: center; }
.nav > a, .nav__group > a { display: inline-flex; align-items: center; min-height: 44px; }
.nav__group { position: relative; }
.nav__group.is-active > a { color: var(--brick); }
.nav__sub { position: absolute; left: -20px; top: 100%; min-width: 200px; padding: 8px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-hover); display: none; flex-direction: column; }
.nav__sub a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; }
.nav__sub a:hover { background: var(--ivory); }
.nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub { display: flex; }
/* Wordmark follows the lockup SVGs: "Trigon" upright, "Media" italic in the accent */
.brand { font-size: 24px; letter-spacing: -.01em; }
.brand span { white-space: nowrap; }
.brand em { font-style: italic; font-weight: 400; color: var(--brick); }
.site-footer .brand em { color: var(--brick-soft); }
.nav { font-size: 16px; }
.nav a { white-space: nowrap; }
/* Seven menu items: close the gaps up a little before the menu button takes over at 980px */
@media (max-width: 1180px) { .nav { gap: 22px; } }
@media (max-width: 1060px) { .nav { gap: 18px; } }
.nav__contact { display: none !important; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: var(--r-pill); background: transparent; color: var(--ink); font: 500 var(--fs-small) var(--font-body); cursor: pointer; }
.menu-btn__icon { position: relative; width: 16px; height: 10px; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s ease; }
.menu-btn__icon::before { top: 0; } .menu-btn__icon::after { bottom: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__icon::before { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon::after { transform: translateY(-4.25px) rotate(-45deg); }

/* Type helpers */
.h1--home { font-size: var(--fs-h1-home); line-height: 1.04; }
.h1--article { font-size: 60px; line-height: 1.06; }
.section--ink .h2, .on-dark .h2 { color: var(--ivory); }
.hero .eyebrow--home { margin-bottom: 24px; }
.lead--wide { max-width: 660px; margin-top: 24px; }
.body-lg { margin: 24px 0 0; font-size: 18px; color: var(--ink-2); }
.body-lg + .body-lg { margin-top: 18px; }
.stack > .body-lg:first-child, .body-lg.stack-first { margin-top: 0; }
.eyebrow--spaced { margin-top: 28px; }
.section--flush-top { padding-top: 24px; }
.body-lg--tight { margin-top: 20px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--home { margin-bottom: 56px; }
.section-head--tight { margin-bottom: 36px; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head--row > div { max-width: 620px; }
.label { margin: 0 0 16px; }

/* Buttons */
.btn--outline-ivory { padding: 12px 28px; border: 1.5px solid var(--ivory); color: var(--ivory); font-size: var(--fs-small); font-weight: 500; }
.btn--pill-ivory { display: inline-block; padding: 14px 28px; border-radius: var(--r-pill); background: var(--ivory); color: var(--ink); font-size: var(--fs-small); font-weight: 600; }
.btn-row--tight { margin-top: 32px; }
/* Buttons that open WhatsApp carry the WhatsApp glyph, in the button's own text colour (no extra accent colour) */
.btn--wa { display: inline-flex; align-items: center; gap: 10px; padding-left: 26px; }
.btn__icon { flex-shrink: 0; }

/* Hero */
.hero__media { position: relative; }
.hero__media .frame { width: 100%; }
.frame--flat { box-shadow: none; }
.frame--arch { position: relative; }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-video__toggle { position: absolute; right: 20px; bottom: 20px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 21, 26, .55); color: var(--ivory); cursor: pointer; transition: background .2s ease; }
.hero-video__toggle:hover { background: rgba(20, 21, 26, .8); }
.hero-video__toggle:focus-visible { outline: 2px solid var(--ivory); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ink); }
.hero-video__toggle svg { fill: currentColor; }
.hero-video__icon-play { display: none; }
.hero-video__toggle.is-paused .hero-video__icon-play { display: block; }
.hero-video__toggle.is-paused .hero-video__icon-pause { display: none; }
.frame--square { aspect-ratio: 1 / 1; max-width: 520px; }
.frame--web { aspect-ratio: 5 / 3.6; }
.page-intro { padding-top: 32px; padding-bottom: 48px; }
.page-intro--contact { padding-bottom: 72px; }

/* Card variants */
.card--service, .card--why { display: flex; flex-direction: column; }
.card--service .card__media { position: relative; height: 280px; }
.card--service .card__body { padding: 28px 32px 36px; }
.card--service .card__title { font-size: var(--fs-h3-service); line-height: 1.2; }
.card--area .card__media { height: 260px; }
.card--why .card__media { height: 170px; }
.card--why .card__body { padding: 24px; }
.card--why .card__title { font-size: 24px; font-weight: 500; line-height: 1.25; }
.card--why p { font-size: var(--fs-small); }
.card--merch .card__media { background: var(--sand-deep); }

/* Lists rendered as steps and chips */
.steps, .chips { list-style: none; margin: 0; padding: 0; }
.contact-card__label { margin-top: 0; }

/* Steps and tips */
.step p { font-size: var(--fs-card); color: var(--ink); }
.tip { background: #fff; border-radius: var(--r-step); padding: 28px; }
.tip h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.25; }
.tip p { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.tip--ink { background: var(--ink); color: var(--ivory); }
.tip--ink p { color: var(--stone); }

/* Numbered list (homepage start from zero) */
.numbered { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; font-size: var(--fs-card); }
.numbered li { display: flex; gap: 12px; }
.numbered span { color: var(--brick); font-weight: 600; }

/* Checklist and note tweaks */
.checklist li { font-size: var(--fs-body); }
.note { margin: 24px 0 0; }
.note--banner { margin: 0; padding: 18px 24px; border-radius: 18px; }

/* Showreel (homepage) */
.reel { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.film--feature { grid-row: span 2; min-height: 420px; }
.film--small { min-height: 200px; }
.film--feature::after { background: linear-gradient(to top, rgba(20, 21, 26, .85), rgba(20, 21, 26, 0) 55%); }
.film--feature .film__play { width: 84px; height: 84px; }
.film--feature .film__label { left: 28px; bottom: 24px; font-family: var(--font-display); font-size: 26px; font-weight: 400; }
.film--small .film__label { left: 20px; bottom: 16px; font-size: var(--fs-small); }
.film--still { min-height: 320px; border-radius: var(--r-card); background: var(--ink); }
.film--still::after { background: linear-gradient(to top, rgba(20, 21, 26, .85), rgba(20, 21, 26, 0) 55%); }
.film--still .film__label { left: 24px; bottom: 20px; font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.film--still:hover img { transform: none; }
.film__play svg { display: block; margin-left: 3px; }
/* 135% (components.css) still shows the dance still's credits on wide tiles; 150% hides them at every width */
.film--crop-credits img { width: 150%; }

/* Feature card (print to paper guide) */
.card.feature-card { display: grid; border-radius: 28px; }
.feature-card__media { display: flex; align-items: center; justify-content: center; padding: 24px; background: #fff; }
.feature-card__media img { width: 100%; height: auto; }
.feature-card .card__body { padding: 48px; }
.feature-card .h2 { font-size: 40px; }
.feature-card .card__body p:not(.eyebrow) { margin: 18px 0 28px; font-size: var(--fs-body); }
.card .eyebrow { margin: 0 0 16px; font-size: var(--fs-eyebrow); }
.card--ink .eyebrow, .on-dark.card .eyebrow { color: var(--brick-soft); }
a.card:hover .btn--pill-ivory { transform: var(--lift-btn); }
.btn--pill-ivory { transition: transform .2s ease; }


/* Contact cards */
.contact-card__value { display: inline-block; }
.contact-card__note { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.contact-card--brick { background: var(--brick); color: #fff; }
.contact-card--brick .contact-card__label, .contact-card--brick .contact-card__note { color: var(--blush); }
.contact-card--ink { background: var(--ink); color: var(--ivory); }
.contact-card--ink .contact-card__label { color: var(--brick-soft); }
.contact-card--ink .contact-card__note { color: var(--stone); }
a.contact-card__value:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact-card--brick :focus-visible, .contact-card--ink :focus-visible { outline-color: var(--ivory); }

/* Articles */
.panel { background: #fff; border-radius: var(--r-card); padding: 40px; }
.panel--image { padding: 28px; }
.panel--image img { width: 100%; height: auto; }
.panel--ink { background: var(--ink); color: var(--ivory); }
.panel--ink p:not(.eyebrow) { margin: 0; color: var(--stone); }
.article-block { padding-bottom: 72px; }
.contact-grid-wrap { padding-bottom: var(--section-y); }
.chip--link { display: inline-flex; align-items: center; min-height: 44px; transition: border-color .2s ease; }
.chip--link:hover { border-color: var(--ink); }
.panel__title { margin: 0 0 16px; font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.15; }
.h2--article { font-size: 38px; }
.value-table { margin: 0; border-top: 1px solid var(--rule); }
.value-table div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.value-table dt, .value-table dd { margin: 0; }
.value-table dd { font-family: var(--font-display); font-size: 20px; color: var(--brick); white-space: nowrap; }

/* CTA band section */
.band-wrap { padding-bottom: var(--section-y-home); }
.section--ink + .band-wrap, .section--sand + .band-wrap, .ends-sand + .band-wrap { padding-top: var(--section-y); }
.band--home { padding: 80px 56px; }
.band--home h2 { font-size: 56px; }
.band .btn--light { color: var(--ink); }

/* Footer */
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer__brand { max-width: 280px; }
.site-footer__brand p { margin: 16px 0 0; font-size: var(--fs-small); }
.site-footer .brand { color: var(--ivory); min-height: 48px; }
.site-footer .brand:hover { color: var(--ivory); }
.site-footer nav, .site-footer .social { align-content: flex-start; }
.site-footer a { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer a:hover { color: var(--ivory); }
.site-footer .legal { margin-bottom: 0; }
.site-footer :focus-visible { outline-color: var(--ivory); }

/* Responsive */
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .site-header { position: relative; }
  .nav.is-open { display: flex; position: absolute; left: var(--gutter); right: var(--gutter); top: 88px; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px; background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-hover); font-size: 17px; }
  .nav.is-open > a, .nav.is-open .nav__group > a { display: flex; min-height: 52px; border-bottom: 1px solid var(--rule); }
  .nav.is-open > a:last-child { border-bottom: 0; }
  .nav.is-open .nav__sub { position: static; display: flex; min-width: 0; padding: 4px 0 8px 16px; box-shadow: none; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav.is-open .nav__sub a { padding: 0; color: var(--ink-2); }
  .nav.is-open .nav__sub a[aria-current="page"] { color: var(--brick); }
  .hero__media { max-width: 640px; }
  .frame--4x5, .frame--arch { max-width: 520px; }
  .reel { grid-template-columns: 1fr 1fr; }
  .film--feature { grid-column: 1 / -1; grid-row: auto; }
  .feature-card .card__body { padding: 40px; }
}
@media (max-width: 640px) {
  .h1--article { font-size: 40px; }
  .h2--sm, .feature-card .h2, .h2--article { font-size: 32px; }
  .panel__title { font-size: 28px; }
  .band--home { padding: 48px 24px; }
  .band--home h2 { font-size: var(--fs-h2); }
  .band-wrap { padding-bottom: 72px; }
  .section--home { padding: 80px 0; }
  .section { padding: 72px 0; }
  .hero { padding-bottom: 72px; }
  .section-head, .section-head--home { margin-bottom: 36px; }
  .reel { grid-template-columns: 1fr; }
  .film--feature { grid-column: auto; min-height: 340px; }
  .frame--4x5 { max-width: 420px; }
  .frame--arch { border-radius: 180px 180px 24px 24px; }
  .frame--video { aspect-ratio: 1 / 1; } /* landscape video in a tall arch loses most of the frame on phones; square shows more of it */
  .card--service .card__media { height: 240px; }
  .card--service .card__body { padding: 24px 24px 30px; }
  .card--service .card__title { font-size: 28px; }
  .panel { padding: 28px 24px; }
  .film--still { min-height: 240px; }
  .value-table div { flex-direction: column; gap: 2px; }
  .value-table dd { white-space: normal; }
  .btn { padding-inline: 26px; }
  .header-actions .btn--dark { display: none; }
  .nav.is-open .nav__contact { display: flex !important; }
}
