/* Plus Jakarta Sans, variable weight 600-800 (SIL Open Font License) for the homepage statement */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("fonts/plus-jakarta-sans-var.woff2") format("woff2");
}
:root {
  --header-h: 64px;
  --ink: #111;
  --muted: #8a8a8a;
  --stage: #161616;
  font-family: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #fff; color: var(--ink); }
body { display: flex; flex-direction: column; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* Header */
.site-header {
  height: var(--header-h); flex: none; display: flex; align-items: center; gap: 28px;
  padding: 0 28px; background: #fff; position: relative; z-index: 10;
}
.logo { display: block; height: 100%; padding: 12px 0; margin-right: auto; }
.logo img { height: 100%; width: auto; display: block; }
.nav { display: flex; gap: 26px; font-size: 16px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.social { display: flex; gap: 12px; }
.social svg, .icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.social svg .fill { fill: var(--muted); stroke: none; }
.social svg .cut { fill: #fff; stroke: none; }
.social a:hover svg { stroke: var(--ink); }
.icon-btn { background: none; border: 0; border-left: 1px solid #e3e3e3; padding: 0 0 0 24px; height: 40px; }
.icon-btn:hover svg, .icon-btn[aria-pressed="true"] svg { stroke: var(--ink); }

/* Gallery */
main { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.gallery { position: relative; flex: 1; min-height: 0; background: var(--stage); overflow: hidden; touch-action: pan-y; }

/* Statement under the video: centered, always exactly 3 lines. Each line is its own block and the
   font size shrinks with the window so the longest line (about 41 characters) never wraps. */
.tagline {
  flex: none; margin: 0; background: #fff; color: var(--ink); text-align: center;
  font: 600 clamp(12px, calc((100vw - 32px) / 20.5), 28px) / 1.28 "Plus Jakarta Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: -.01em; transition: font-weight .25s ease;
  padding: clamp(26px, 3.6vw, 52px) 16px clamp(16px, 2.2vw, 30px);
}
.tagline span { display: block; white-space: nowrap; }
/* Semibold at rest, ExtraBold when the mouse is over it (mouse devices only) */
@media (hover: hover) { .tagline:hover { font-weight: 800; } }
.track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.65, 0, .25, 1); will-change: transform; }
/* Full bleed: each video fills the whole stage, edge to edge, and resizes with the window.
   The poster is cropped to fill; the playing video is letterboxed inside by YouTube. */
.slide { flex: 0 0 100%; height: 100%; }
.player { position: relative; width: 100%; height: 100%; background: #000; }
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player .play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .55); border: 0; border-radius: 50%; transition: background .2s, transform .2s;
}
.player .play::after { content: ""; position: absolute; left: 30px; top: 22px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.player:hover .play { background: #e62117; transform: translate(-50%, -50%) scale(1.06); }
.player .hit { position: absolute; inset: 0; background: none; border: 0; }

.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 96px;
  background: none; border: 0; z-index: 3; opacity: .75; transition: opacity .2s;
}
.arrow:hover { opacity: 1; }
.arrow.prev { left: 4px; } .arrow.next { right: 4px; }
.arrow svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.arrow[disabled] { opacity: .15; cursor: default; }

.info-btn {
  position: absolute; right: 16px; bottom: 16px; z-index: 4; width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.85); color: #222; font: italic 700 15px Georgia, serif;
}
.info {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); z-index: 5;
  background: rgba(15,15,15,.94); color: #eee; padding: 28px 28px 40px; overflow-y: auto; line-height: 1.55; font-size: 15px;
}
.info h2 { font-size: 22px; line-height: 1.25; margin: 0 40px 16px 0; font-weight: 600; }
.info #infoDesc p { margin: 0 0 1em; white-space: pre-line; }
.info-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; }
.counter { position: absolute; left: 20px; bottom: 16px; z-index: 3; color: #bbb; font-size: 13px; letter-spacing: .06em; }

/* Index grid */
.index {
  position: absolute; inset: 0; overflow-y: auto; background: #fff; padding: 28px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; align-content: start;
}
.card { background: none; border: 0; padding: 0; text-align: left; }
.card .thumb { aspect-ratio: 1; overflow: hidden; background: #000; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s, opacity .3s; }
.card:hover img { transform: scale(1.04); opacity: .85; }
.card span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.3; }

/* Mobile */
@media (max-width: 800px) {
  /* Too small to fit 18 across a phone: keep a scrolling row at a readable size. */
  :root { --header-h: 56px; }
  .site-header { padding: 0 14px; gap: 14px; }
  .social { display: none; }
  .nav { gap: 14px; font-size: 14px; }
  .icon-btn { padding-left: 14px; }
  .logo { margin-right: auto; }
  .arrow { width: 40px; }
  .index { padding: 14px; gap: 14px; grid-template-columns: repeat(2, 1fr); }
  .info { width: 100%; top: auto; max-height: 70%; }
}
@media (max-width: 560px) {
  :root { --header-h: 88px; }
  .site-header { flex-wrap: wrap; align-content: center; gap: 6px 0; }
  .logo { order: 1; height: 30px; padding: 0; }
  .icon-btn { order: 2; border: 0; padding: 0; height: 30px; }
  .nav { order: 3; width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .track { transition: none; } }

/* Content pages */
body.page { display: block; overflow: auto; }
body.page .site-header { position: sticky; top: 0; border-bottom: 1px solid #eee; }
.content { max-width: 1000px; margin: 0 auto; padding: 48px 28px 80px; }
.content h1 { font-size: 30px; line-height: 1.2; font-weight: 600; margin: 0 0 20px; }
.content h2 { font-size: 22px; font-weight: 600; margin: 32px 0 12px; }
.content p { line-height: 1.65; font-size: 17px; margin: 0 0 1.1em; }
.content a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #bbb; word-break: break-word; }
.content a:hover { text-decoration-color: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* About: text left, photo right; type sizes match the original Squarespace page */
.content:has(.about) { max-width: 1280px; padding-top: 28px; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.about .portrait { width: 100%; height: auto; display: block; }
.about h1, .about h2 { font-size: 18px; line-height: 1.6; font-weight: 600; color: #333; letter-spacing: .01em; margin: 0 0 12px; }
.about h2 { margin-top: 28px; }
.about p { font-size: 16px; line-height: 1.7; font-weight: 300; color: rgba(0, 0, 0, .7); letter-spacing: .02em; margin: 0 0 16px; }
.about .embed { margin-top: 28px; }

.news { max-width: 720px; margin: 0 auto; }
.post { padding: 0 0 36px; margin: 0 0 36px; border-bottom: 1px solid #eee; }
.post h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; }
.post h2 a { text-decoration: none; }
.post h2 a:hover { text-decoration: underline; }
.post time { display: block; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.post img { width: 100%; height: auto; display: block; margin: 0 0 18px; }

.narrow { max-width: 640px; margin: 0 auto; }
.narrow.two { max-width: 1000px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.form { display: grid; gap: 16px; margin-top: 8px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: #444; }
.form label em { font-style: normal; }
.form label span { color: var(--muted); font-size: 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #ccc; border-radius: 0; background: #fff; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid #111; outline-offset: -1px; border-color: #111; }
.form button { justify-self: start; background: #111; color: #fff; border: 0; padding: 12px 32px; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.form button:hover { background: #333; }
.form button:disabled { opacity: .5; cursor: default; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.note { min-height: 1.4em; margin: 0; font-size: 15px; }
.note.ok { color: #1a7a3a; } .note.err { color: #b3261e; }

@media (max-width: 800px) {
  .content { padding: 28px 16px 60px; }
  .about, .narrow.two { grid-template-columns: 1fr; gap: 28px; }
  .form .row { grid-template-columns: 1fr; }
}

/* Click-to-play video on content pages */
.embed { margin: 36px 0 0; }
.embed .embed-play, .embed iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; overflow: hidden; }
.embed .embed-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.embed .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); background: rgba(0, 0, 0, .55); border-radius: 50%; transition: background .2s, transform .2s; }
.embed .play::after { content: ""; position: absolute; left: 30px; top: 22px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.embed .embed-play:hover .play { background: #e62117; transform: translate(-50%, -50%) scale(1.06); }
.embed figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.post .embed { margin: 0 0 18px; }

/* Homepage: the slider + statement fill the first screen; the clients table scrolls in below. */
body.home { display: block; overflow: auto; height: auto; }
body.home .site-header { position: sticky; top: 0; }
body.home main { display: block; }
.hero {
  position: relative; display: flex; flex-direction: column;
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
}
.vision { max-width: 1200px; margin: 0 auto; padding: clamp(4px, 1vw, 14px) 28px clamp(48px, 8vw, 100px); font-family: "Plus Jakarta Sans", "Segoe UI", Helvetica, Arial, sans-serif; }
.vision h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.01em; margin: 0 0 24px; text-align: left; }
.vision-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.vision-grid a { display: block; }
.vision-grid img { width: 100%; height: auto; display: block; }
.vision-grid p { margin: 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: #333; }
.vision:not(.flip) { padding-bottom: clamp(16px, 2.5vw, 32px); }
.vision.flip { padding-top: 0; }
.vision.flip h2 { text-align: right; }
.vision.flip .vision-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
@media (max-width: 800px) {
  .vision { padding-left: 16px; padding-right: 16px; }
  .vision-grid, .vision.flip .vision-grid { grid-template-columns: 1fr; gap: 20px; }
  .vision.flip .vision-grid a { display: block; }
.vision-grid img { order: -1; }
  .vision.flip h2 { text-align: left; }
}