/*
 * Cygnet landing.
 *
 * Product footage first. Every visual on these pages is the real app,
 * recorded or captured; the page around it stays quiet: teal for actions,
 * amber used once or twice, cool grey ground, Schibsted Grotesk throughout.
 */

:root {
  --paper: #f6f8f8;
  --ground: #e8eef0;
  --ink: #13212b;
  --steel: #4f5f69;
  --faint: #86959e;
  --rule: #d2dcdf;
  --teal: #0e6e73;
  --teal-ink: #0a5357;
  --teal-wash: #dcebec;
  --amber: #e3a33b;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --max: 76rem;
  --shadow: 0 1px 2px rgba(19, 33, 43, 0.06), 0 18px 40px -22px rgba(19, 33, 43, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--amber); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 10; background: var(--ink); color: #fff; padding: 0.5rem 0.75rem; }
.skip:focus { left: 0.5rem; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 760; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; max-width: 38rem; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--steel); }

/* ---------- header ---------- */

.top { position: sticky; top: 0; z-index: 5; background: rgba(246, 248, 248, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 1.75rem; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand span { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.035em; }
.nav { display: flex; gap: 1.6rem; font-size: 0.97rem; }
.nav a, .signin { text-decoration: none; color: var(--steel); }
.nav a:hover, .signin:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--teal); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.85rem; padding: 0 1.3rem;
  border-radius: 7px; border: 1.5px solid transparent;
  font: inherit; font-weight: 650; font-size: 0.98rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-ink); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #d1912a; }
.top .btn { min-height: 2.35rem; font-size: 0.92rem; padding: 0 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 2rem; }
.link { font-weight: 650; color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
.link:hover { color: var(--ink); }

/* ---------- media frames ---------- */

.frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #e9edf0; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.frame video, .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .clip-toggle {
  position: absolute; right: 0.6rem; bottom: 0.6rem; z-index: 2;
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem;
  border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(19, 33, 43, 0.72); color: #fff;
  opacity: 0; transition: opacity 0.2s;
}
.frame:hover .clip-toggle, .frame .clip-toggle:focus-visible, .frame.paused .clip-toggle { opacity: 1; }
.frame .clip-toggle svg { width: 14px; height: 14px; }
figure { margin: 0; }
figcaption { margin-top: 0.75rem; font-size: 0.93rem; color: var(--steel); max-width: 40rem; }

/* slots for stills not yet captured */
.slot { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); background: repeating-linear-gradient(135deg, var(--ground) 0 12px, #e2e9eb 12px 24px); box-shadow: var(--shadow); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* ---------- hero ---------- */

.hero { padding: clamp(2.75rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: 1.25rem; max-width: 30rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 0.32rem 0.75rem; border-radius: 999px; background: #fff; border: 1px solid var(--rule); font-size: 0.88rem; font-weight: 600; color: var(--steel); }
.hero .tags { margin-top: clamp(2.5rem, 5vw, 3.5rem); justify-content: center; }

/* ---------- sections ---------- */

.band { padding: clamp(4rem, 9vw, 7rem) 0; }
.band.ground { background: var(--ground); }
.band.tight { padding-top: 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 0.9rem; color: var(--steel); font-size: 1.1rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.grid-2 + .grid-2 { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split .section-head { margin-bottom: 0; }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.points.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.points > div { border-top: 2px solid var(--teal); padding-top: 1.1rem; }
.points p { margin-top: 0.45rem; color: var(--steel); font-size: 0.98rem; }

.film { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.film .soon { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 0.6rem; color: #a9bcc4; font-size: 0.98rem; text-align: center; padding: 1rem; }
.film .soon img { width: 44px; height: 44px; opacity: 0.85; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--ink); }
.js .film video { opacity: 0; }
.js .film.ready video { opacity: 1; }

.closing { background: var(--teal); color: #fff; padding: clamp(3.5rem, 8vw, 5.5rem) 0; text-align: center; }
.closing h2 { max-width: 22ch; margin: 0 auto; }
.closing p { color: #d3e7e8; margin: 0.9rem auto 0; }
.closing .actions { justify-content: center; }
.closing .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.closing .btn-ghost:hover { border-color: #fff; }

.page-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { max-width: 16ch; }
.page-head .lede { margin-top: 1.1rem; }

.foot { padding: 2rem 0 2.5rem; font-size: 0.88rem; color: var(--steel); border-top: 1px solid var(--rule); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-left: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }


/* ---------- coming soon, teasers, contact ---------- */

.badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.28rem 0.7rem; border-radius: 999px; background: var(--teal-wash); color: var(--teal-ink); font-size: 0.85rem; font-weight: 650; margin-bottom: 1.1rem; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

.teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.teaser h3 { margin-top: 1.1rem; }
.teaser p { margin-top: 0.4rem; color: var(--steel); font-size: 0.98rem; }
.teaser .link { display: inline-block; margin-top: 0.7rem; font-size: 0.95rem; }

.teach { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.teach ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.teach li { padding-left: 1.5rem; position: relative; color: var(--steel); }
.teach li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 2px solid var(--teal); }
.teach li b { color: var(--ink); font-weight: 650; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-aside p + p { margin-top: 1rem; }
.contact-aside .email { font-weight: 650; font-size: 1.1rem; color: var(--teal-ink); }
.form { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; align-content: start; }
.field label { font-size: 0.92rem; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.65rem 0.75rem; border: 1.5px solid var(--rule); border-radius: 7px; background: #fff; width: 100%;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-wash); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .err { font-size: 0.86rem; color: #b3261e; min-height: 0; }
.field .err:empty { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.5rem; }
.form-note { font-size: 0.86rem; color: var(--steel); max-width: 30rem; }
.form-status { margin-top: 1rem; padding: 0.75rem 0.9rem; border-radius: 7px; font-size: 0.93rem; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--teal-wash); color: var(--teal-ink); }
.form-status.bad { background: #fbe9e7; color: #8c1d18; }


/* ---------- GIF tiles, expand, modal ---------- */

.tile {
  position: relative; display: block; width: 100%; padding: 0; margin: 0;
  aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--rule); background: #e9edf0; box-shadow: var(--shadow);
  font: inherit; color: inherit; text-align: left;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.expand {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.6rem; border-radius: 999px;
  background: rgba(19, 33, 43, 0.78); color: #fff; font-size: 0.8rem; font-weight: 600;
  opacity: 0; transition: opacity 0.18s; pointer-events: none;
}
.expand svg { width: 12px; height: 12px; }
.tile:hover .expand, .tile:focus-visible .expand, .frame:hover .expand, .frame:focus-within .expand { opacity: 1; }
.frame .expand { pointer-events: auto; border: 0; cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 600; }
.frame video.loop { cursor: zoom-in; }
.tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.modal { padding: 0; border: 0; border-radius: 12px; background: var(--ink); color: #fff; width: min(1100px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); overflow: hidden; }
.modal::backdrop { background: rgba(10, 18, 24, 0.72); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.7rem 0.7rem 1.1rem; }
.modal-head h2 { font-size: 1rem; font-weight: 650; letter-spacing: 0; }
.modal-close { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; }
.modal-close:hover { background: rgba(255, 255, 255, 0.2); }
.modal-close svg { width: 14px; height: 14px; }
.modal video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 6rem); background: #000; }
body.modal-open { overflow: hidden; }


/* ---------- products ---------- */

.products { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.product-card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: border-color 0.15s; }
.product-card:hover { border-color: var(--teal); }
.product-card .pic { aspect-ratio: 16 / 9; background: #e9edf0; border-bottom: 1px solid var(--rule); }
.product-card .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.product-card .body { padding: 1.25rem 1.4rem 1.4rem; display: grid; gap: 0.35rem; align-content: start; }
.product-card h3 { font-size: 1.35rem; }
.product-card .for { font-size: 0.92rem; color: var(--teal-ink); font-weight: 600; }
.product-card p { color: var(--steel); }
.product-card .go { margin-top: 0.6rem; font-weight: 650; color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
.foot .wrap > span { max-width: 34rem; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .split, .split.flip, .teach, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .teasers { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
  .tiles.three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .points.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid-2, .points, .points.four, .form .row, .tiles, .tiles.three { grid-template-columns: minmax(0, 1fr); }
  .expand { opacity: 1; }
  .top .wrap { gap: 1.1rem; }
  .top .btn { display: none; }
  .nav-contact { display: none; }
  .nav .long { display: none; }
  .products { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 1.1rem; font-size: 0.93rem; }
  .hero .tags { justify-content: flex-start; }
  .frame .clip-toggle { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .frame .clip-toggle { opacity: 1; }
}
