/* =========================================================
   Weight of Existence — singme
   Design base: 1440px desktop. Large type scales with vw.
   ========================================================= */

/* ABC Favorit (Dinamo). The trial file may NOT be published —
   buy a web licence and place the licensed .woff2 here. */
@font-face {
  font-family: "Favorit";
  src: url("../fonts/ABCFavorit-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f1ec;
  --ink: #1a1a1a;
  --grey: #d8d7d1;
  --accent: #ec5a3b;
  --muted: #8a8984;
  --line: rgba(26, 26, 26, .55);

  --m: 32px;                      /* outer margin */
  --col: 26.11vw;                 /* content column start (376px @1440) */
  --inset: 1.67vw;                /* extra indent for big text (24px @1440) */

  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: "Favorit", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, blockquote, figure, ol { margin: 0; padding: 0; }
ol { list-style: none; }
em { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- themes ---------- */
[data-theme="light"] { background: var(--paper); color: var(--ink); }
[data-theme="grey"]  { background: var(--grey);  color: var(--ink); }
[data-theme="dark"]  { background: var(--ink);   color: var(--paper); --line: rgba(243, 241, 236, .35); }

/* ---------- type scale ---------- */
.h-display, .hero__title, .marquee {
  font-weight: 400;
  font-size: 14.44vw;            /* 208px @1440 */
  line-height: .7;
  letter-spacing: -.085em;
}
.h-xxl { font-size: 8.9vw;  line-height: .9;  letter-spacing: -.06em;  font-weight: 400; }
.h-xl  { font-size: 6.95vw; line-height: .94; letter-spacing: -.055em; font-weight: 400; }
.h-l   { font-size: 5.4vw;  line-height: 1.01; letter-spacing: -.05em;  font-weight: 400; }
.accent { color: var(--accent); }

.label, .eyebrow, .field__label, .hero__meta, .photo figcaption,
.statement__img figcaption, .seeking__label, .process__note {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.label .num { display: inline-block; width: 3.3em; color: var(--muted); }
[data-theme="dark"] .label .num { color: #8f8e89; }
.eyebrow { color: var(--accent); margin-bottom: 2.2vw; font-size: 13px; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 72px; padding: 0 var(--m);
  color: var(--ink);
  transition: color .35s var(--ease);
  font-size: 14.5px;
}
.header.is-dark { color: var(--paper); }
.logo { justify-self: start; letter-spacing: -.02em; font-size: 15px; }
.logo sup { font-size: .55em; margin-left: 1px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { position: relative; transition: color .25s var(--ease); }
.nav a:not(.pill):hover { color: var(--accent); }
.pill {
  padding: 9px 18px 10px; border: 1px solid currentColor; border-radius: 999px;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.pill:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.lang { justify-self: end; font-size: 13px; }
.lang a:not([aria-current]) , .lang span { color: var(--muted); }
.lang a:hover { color: var(--accent); }
.menu-btn { display: none; }

/* ---------- layout ---------- */
.section { padding: 150px var(--m) 170px; }
.grid { position: relative; }
.grid > .label { position: absolute; left: 0; top: 0; }
.content { margin-left: calc(var(--col) - var(--m)); }
.content--inset, .content > .h-l, .content > .h-xl, .content > .h-xxl, .content > .h-display, .content > .cols-2 { padding-left: var(--inset); }
.content--inset > * { padding-left: 0; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4.9vw; margin-top: 8.2vw; }
.cols-2--narrow { max-width: 62.5vw; gap: 0 3.75vw; margin-top: 10vw; }
.cols-2 p { max-width: 33em; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  padding: 104px var(--m) 30px;
  display: flex; flex-direction: column;
}
.hero__meta { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hero__title { margin-top: 2.6vw; margin-left: -.4vw; }
.hero__title .line { display: block; overflow: hidden; padding: .06em 0 .02em; }
.hero__title .line > span { display: block; }
.hero__bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; padding-top: 40px; }
.hero__question { font-size: 2.22vw; line-height: 1.06; letter-spacing: -.035em; }
.circle-btn {
  width: 80px; height: 80px; border: 1px solid currentColor; border-radius: 50%;
  display: grid; place-items: center;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.circle-btn svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .4s var(--ease); }
.circle-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.circle-btn:hover svg { transform: translateY(4px); }

/* ---------- photo ---------- */
.photo { padding: 0 var(--m); }
.photo__frame { overflow: hidden; aspect-ratio: 1911 / 1180; background: #ccc; }
.photo__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transform: scale(1.06); transition: transform 1.6s var(--ease); }
.photo.is-in .photo__frame img { transform: scale(1); }
.photo figcaption { display: flex; justify-content: space-between; padding: 14px 0 0; }

/* ---------- 02 approach ---------- */
.approach .grid { display: grid; grid-template-columns: var(--col) 1fr 23.1vw; }
.approach__title { grid-column: 2; padding-left: var(--inset); margin-left: calc(-1 * var(--m)); margin-top: -12px; }
.approach__text { grid-column: 3; display: grid; gap: 1.45em; }

/* ---------- 03 statement ---------- */
.statement { display: grid; grid-template-columns: 40.9vw 1fr; gap: 0 4.45vw; padding: 60px var(--m) 60px 0; }
.statement__img img { width: 100%; }
.statement__img figcaption { padding: 34px 0 0 23px; }
.statement__body { padding-right: 3.4vw; display: flex; flex-direction: column; }
.statement__body .label { position: static; }
.statement__quote { font-size: 4.65vw; line-height: 1.08; letter-spacing: -.05em; margin: 9.6vw 0 0; }
.cols-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.6vw;
  margin-top: auto; padding-top: 30px; border-top: 1px solid var(--line);
  color: #cfcdc7; font-size: 14px; line-height: 1.5;
}
.statement__quote + .cols-3 { margin-top: 12.8vw; }

/* ---------- 04 open call ---------- */
.opencall { padding-bottom: 180px; }
.seeking {
  display: grid; grid-template-columns: 17.1vw 1fr; max-width: 62.5vw;
  margin-top: 8.6vw; padding: 26px 0 28px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.seeking__label { font-size: 11px; padding-top: 6px; }
.seeking__text { font-size: 21px; line-height: 1.3; letter-spacing: -.01em; max-width: 34em; }

/* ---------- 05 process ---------- */
.process { padding-top: 135px; padding-bottom: 40px; }
.process__title { line-height: .88; letter-spacing: -.075em; font-size: 11.6vw; margin-top: -1vw; }
.steps { margin: 7.8vw 0 0 calc(var(--col) - var(--m)); border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 7.2vw 1fr 28.7vw; align-items: start;
  min-height: 165px; padding: 32px 0 40px; border-bottom: 1px solid var(--line);
}
.step__num { font-size: 11px; color: #6f6e69; padding-top: 6px; }
.step__title { font-size: 3.05vw; line-height: 1.05; letter-spacing: -.045em; font-weight: 400; transition: color .3s var(--ease), transform .45s var(--ease); }
.step p { padding-top: 4px; }
.step:hover .step__title { color: var(--accent); transform: translateX(8px); }
.steps .step:last-child { border-bottom-color: var(--ink); }
.process__note { margin: 26px 0 0 calc(var(--col) - var(--m) + 7.2vw); font-size: 11.5px; }

/* ---------- 06 notice ---------- */
.notice { padding-top: 100px; padding-bottom: 120px; }
.notice .h-xl { margin-top: -.2vw; }
.notice__text { max-width: 47.5vw; margin-top: 8.6vw; display: grid; gap: 1.5em; font-size: 17.5px; line-height: 1.43; }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: opacity .2s; }
.text-link:hover { opacity: .7; }

/* ---------- 07 apply / form ---------- */
.apply { padding-top: 140px; padding-bottom: 140px; }
.apply__title { margin-top: -12px; }
.form { max-width: 62.5vw; margin-top: 8.6vw; display: grid; gap: 52px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.2vw; }
.field { display: block; }
.field__label { display: block; margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  font: inherit; font-size: 18px; color: inherit; padding: 24px 0 14px; border-radius: 0;
  transition: border-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field textarea::placeholder { color: #8f8e89; }

.upload {
  display: flex; align-items: center; gap: .35em; position: relative; cursor: pointer;
  border: 1px dashed #8f8e89; padding: 18px 16px; font-size: 17px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.upload:hover { border-color: var(--ink); background: rgba(26,26,26,.03); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload.has-file .upload__name { color: var(--ink); }

.checks { display: grid; gap: 18px; margin-top: 30px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 16px; height: 16px; border: 1px solid #6f6e69; border-radius: 2px; background: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.check input::after { content: ""; width: 8px; height: 4px; border: solid var(--paper); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { opacity: 1; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.check a:hover { color: var(--accent); }

.submit {
  margin-top: 46px; display: flex; justify-content: space-between; align-items: center;
  width: 100%; height: 68px; padding: 0 24px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); font: inherit; font-size: 17px;
  transition: background-color .3s var(--ease);
}
.submit svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .35s var(--ease); }
.submit:hover { background: var(--accent); }
.submit:hover svg { transform: translate(3px, -3px); }

/* ---------- footer ---------- */
.footer { padding: 90px var(--m) 34px; overflow: hidden; }
.marquee { white-space: nowrap; overflow: hidden; margin: 0 calc(-1 * var(--m)); padding: .05em 0; }
.marquee__track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee__track span { padding: 0 .35em 0 var(--m); }
@keyframes marquee { to { transform: translateX(-50%); } }
.footer__bottom {
  margin-top: 90px; padding-top: 30px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: calc(47.6vw - var(--m)) 1fr auto; font-size: 13px; color: #bdbcb6;
}
.back-top { color: var(--paper); align-self: start; transition: color .25s var(--ease); }
.back-top:hover { color: var(--accent); }

/* ---------- motion: reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.js.is-loaded .hero__title .line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero__title .line > span { opacity: 1; transform: none; }
}

/* =========================================================
   Tablet / mobile (provisional — to be matched to the SP design)
   ========================================================= */
@media (max-width: 900px) {
  :root { --m: 20px; --col: var(--m); --inset: 0px; }
  body { font-size: 16px; }
  .header { grid-template-columns: 1fr auto; height: 60px; }
  .nav, .lang { display: none; }
  .menu-btn {
    display: grid; gap: 6px; width: 40px; height: 40px; place-content: center;
    background: none; border: 0; color: inherit; cursor: pointer; padding: 0; justify-self: end; position: relative; z-index: 60;
  }
  .menu-btn span:not(.sr-only) { width: 24px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--paper);
    padding: 110px var(--m) 40px; display: flex; flex-direction: column; justify-content: space-between;
    clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease);
  }
  .mobile-menu[hidden] { display: flex; visibility: hidden; }
  .mobile-menu.is-open { clip-path: inset(0); visibility: visible; }
  .mobile-menu nav { display: grid; gap: 6px; font-size: 13vw; line-height: 1; letter-spacing: -.05em; }
  .mobile-menu nav a:hover { color: var(--accent); }
  .header.menu-open { color: var(--paper); }

  .grid > .label { position: static; margin-bottom: 28px; }
  .section { padding: 90px var(--m) 100px; }
  .content { margin-left: 0; }
  .h-xxl { font-size: 13vw; } .h-xl { font-size: 11.5vw; } .h-l { font-size: 9.5vw; }
  .hero__title { font-size: 16vw; }
  .hero__question { font-size: 6vw; }
  .circle-btn { width: 56px; height: 56px; }
  .cols-2, .cols-2--narrow, .cols-3, .form__row--2 { grid-template-columns: 1fr; gap: 1.2em; max-width: none; margin-top: 48px; }
  .approach .grid { display: block; }
  .approach__title { margin: 0; padding: 0; }
  .approach__text { margin-top: 48px; }
  .statement { grid-template-columns: 1fr; padding: 0 0 80px; }
  .statement__body { padding: 60px var(--m) 0; }
  .statement__quote { font-size: 8.5vw; margin-top: 32px; }
  .statement__quote + .cols-3 { margin-top: 56px; }
  .seeking { grid-template-columns: 1fr; gap: 12px; max-width: none; margin-top: 56px; }
  .seeking__text { font-size: 19px; }
  .process__title { font-size: 19vw; }
  .steps { margin-left: 0; margin-top: 56px; }
  .step { grid-template-columns: 2.4em 1fr; min-height: 0; padding: 22px 0 28px; }
  .step__title { font-size: 7.5vw; }
  .step p { grid-column: 2; padding-top: 12px; }
  .process__note { margin-left: 0; }
  .notice__text { max-width: none; margin-top: 48px; font-size: 16px; }
  .form { max-width: none; margin-top: 56px; gap: 36px; }
  .footer__bottom { grid-template-columns: 1fr; gap: 18px; margin-top: 56px; }
  .marquee { font-size: 24vw; }
}
