/* Panda Super Media — static rebuild
   Black and white site; only the work is in colour.
   Display: Big Shoulders Display (a Chicago typeface). Body: Archivo. */

:root {
  --black: #000;
  --white: #fff;
  --smoke: #a3a3a3;
  --line: #2b2b2b;
  --amber: #ffb300;
  --display: "Big Shoulders Display", "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --pad: max(clamp(1.25rem, 4vw, 4rem), calc((100vw - 70rem) / 2));
  --gap: clamp(4.5rem, 10vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.2em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
::selection { background: var(--white); color: var(--black); }

.skip {
  position: absolute; left: var(--pad); top: -5rem; z-index: 100;
  background: var(--white); color: var(--black); padding: .6rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.005em;
  margin: 0;
}
.t-mega  { font-size: clamp(4.5rem, 19vw, 7rem); }
.t-huge  { font-size: clamp(3.25rem, 11vw, 4.5rem); }
.t-large { font-size: clamp(2.5rem, 6.5vw, 3rem); }
.t-mid   { font-size: clamp(1.75rem, 3.4vw, 2rem); line-height: 1; }
.lede    { font-size: clamp(1.2rem, 1.9vw, 1.4rem); line-height: 1.45; max-width: 46ch; }
.muted   { color: var(--smoke); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--pad);
  background: linear-gradient(#000c, #0000);
}
.wordmark {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: 1.5rem; line-height: 1; text-decoration: none; white-space: nowrap;
}
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.site-nav a {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: 1.25rem; line-height: 1; text-decoration: none; padding: .35rem 0;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-color: var(--smoke); }
.site-nav a[aria-current="page"] { border-color: var(--white); }
@media (max-width: 600px) {
  .wordmark { font-size: 1.2rem; }
  .site-nav { gap: .9rem; }
  .site-nav a { font-size: 1.05rem; }
  .site-nav .nav-home { display: none; }
}

/* ---------- Layout ---------- */
.wrap { padding-inline: var(--pad); }
.band { padding-block: var(--gap); }
.band + .band { border-top: 1px solid var(--line); }
.split {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start;
}
.split > * { min-width: 0; }
.split > .a { grid-column: 1 / span 7; }
.split > .b { grid-column: 8 / -1; }
.split.even > .a { grid-column: 1 / span 6; }
.split.even > .b { grid-column: 7 / -1; }
@media (max-width: 860px) {
  .split > .a, .split > .b, .split.even > .a, .split.even > .b { grid-column: 1 / -1; }
}
.stack > * + * { margin-top: clamp(1.25rem, 2.5vw, 2rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: 1.5rem; line-height: 1; padding: .85rem 1.4rem .8rem;
  background: var(--white); color: var(--black); border: 2px solid var(--white);
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--black); color: var(--white); }
.btn.ghost { background: transparent; color: var(--white); }
.btn.ghost:hover { background: var(--white); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end;
  background: #000 center / cover no-repeat;
}
.hero-video { position: absolute; inset: 0; overflow: hidden; }
.hero-video iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #000d 0%, #0006 45%, #0000 75%), linear-gradient(0deg, #000 0%, #0000 35%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding: 6rem var(--pad) clamp(1.5rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem;
}
.hero h1 { font-size: min(31vw, 9.5rem); line-height: .82; }
.hero h1 span { display: block; }
.hero-side { max-width: 24rem; }
.hero-side .motto {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: .95; margin-bottom: 1.25rem;
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
  .hero h1 span:nth-child(2) { animation-delay: .12s; }
  .hero h1 span:nth-child(3) { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(.5em); opacity: 0; } }
}

/* ---------- Page heads (inner pages) ---------- */
.page-head { padding: clamp(8rem, 18vw, 11rem) var(--pad) clamp(2.5rem, 6vw, 4rem); }
.page-head .lede { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

/* ---------- Services rows ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem 3rem; align-items: end;
  padding-block: clamp(1.25rem, 3vw, 2.25rem); border-top: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows p { color: var(--smoke); padding-bottom: .4em; }
@media (max-width: 860px) { .rows li { grid-template-columns: 1fr; } }

/* ---------- Photos: black and white, like the panda ---------- */
.photo { filter: grayscale(1) contrast(1.08); width: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 16 / 10; }

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin: 0; }
.numbers div { border-top: 3px solid var(--white); padding-top: 1rem; }
.numbers dt { font-family: var(--display); font-weight: 600; line-height: .85; font-size: clamp(3rem, 7.5vw, 4.5rem); }
.numbers dd { margin: .6rem 0 0; color: var(--smoke); max-width: 16ch; }
@media (max-width: 860px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Quote ---------- */
.quote { margin: 0; }
.quote p { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: .92; max-width: 24ch; }
.quote footer { margin-top: 1.5rem; color: var(--smoke); }

/* ---------- Portfolio ---------- */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 4rem); align-items: end; padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.work .frame { grid-column: 1 / span 8; }
.work .info { grid-column: 9 / -1; }
.work:nth-of-type(even) .frame { grid-column: 5 / -1; order: 2; }
.work:nth-of-type(even) .info { grid-column: 1 / span 4; order: 1; }
.work .info p { color: var(--smoke); margin-top: 1rem; }
@media (max-width: 860px) {
  .work .frame, .work .info, .work:nth-of-type(even) .frame, .work:nth-of-type(even) .info { grid-column: 1 / -1; order: 0; }
}
.frame { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; outline: 1px solid var(--line); }
.frame img, .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.frame img { transition: transform .5s ease; }
.frame:hover img { transform: scale(1.03); }
.frame .play {
  position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 2;
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 1.4rem; line-height: 1;
  background: var(--white); color: var(--black); padding: .7rem 1rem .65rem;
}
.frame .play::before { content: ""; border-style: solid; border-width: .4em 0 .4em .65em; border-color: transparent transparent transparent currentColor; }
.frame:hover .play, .frame:focus-visible .play { background: var(--amber); }

/* ---------- About ---------- */
.portraits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.5rem, 1.5vw, 1.25rem); }
.portraits img { aspect-ratio: 3 / 4; }
@media (max-width: 700px) { .portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team { list-style: none; margin: 0; padding: 0; }
.team li { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: .95; font-size: clamp(2.25rem, 7vw, 2.75rem); padding-block: .3em; border-top: 1px solid var(--line); }
.team li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Contact ---------- */
.contact-lines { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.contact-lines a { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: .9; text-decoration: none; overflow-wrap: anywhere; display: inline-block; }
.contact-lines a:hover { color: var(--amber); }
.contact-lines .tel { font-size: clamp(3rem, 12.5vw, 6rem); }
.contact-lines .mail { font-size: clamp(1.6rem, 6.2vw, 3.25rem); }
.contact-lines span { display: block; color: var(--smoke); margin-bottom: .4rem; }
address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4rem) var(--pad); display: grid; gap: 2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); color: var(--smoke); font-size: 1rem; }
.site-footer .wordmark { color: var(--white); font-size: 2rem; display: inline-block; margin-bottom: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer p { margin: 0; }
@media (max-width: 760px) { .site-footer { grid-template-columns: 1fr; } }

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

/* Portfolio titles sit in a narrow column beside the video */
.work .info h2 { font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: .92; }
.work .info { min-width: 0; }

/* ---------- Calmer desktop: phones keep the layout above ---------- */
@media (min-width: 861px) {
  /* Portfolio: an even two-column grid, video on top, text underneath */
  .works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4.5rem 3rem; padding-bottom: var(--gap); }
  .works .work { display: block; padding: 0; border: 0; }
  .works .work .info { margin-top: 1.25rem; }
  .works .work .info h2 { font-size: 2.25rem; line-height: 1; }
  .works .work .info p { margin-top: .6rem; }
  /* Team: two quiet columns instead of one giant list */
  .team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
  .team li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  /* Photos take less of the screen */
  .photo.tall { aspect-ratio: 1 / 1; }
}
