/* DAfree homepage */

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(640px, 86svh, 860px); display: flex; flex-direction: column; justify-content: center; padding: 130px 0 90px; overflow: hidden; margin-top: -78px; }
.hero__flock { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero__in { position: relative; z-index: 2; width: 100%; pointer-events: none; }
.hero__in a, .hero__in button { pointer-events: auto; }
.hero__title { max-width: 12.5ch; font-size: clamp(46px, 7.4vw, 104px); line-height: 1.02; letter-spacing: -.02em; }
.hero__title span, .hero__title em { display: inline; }
.hero .lede { margin: 28px 0 36px; max-width: 520px; }
.hero__title > * { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: rise 1.4s var(--ease) forwards; }
.hero__title em { animation-delay: .35s; }
.hero .eyebrow, .hero .lede, .hero .btn-row { opacity: 0; animation: fade 1.2s var(--ease) forwards; }
.hero .eyebrow { animation-delay: .1s; } .hero .lede { animation-delay: .7s; } .hero .btn-row { animation-delay: .9s; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { to { opacity: 1; } }

.hero__find { position: absolute; z-index: 3; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: 90px; max-width: 300px; font-size: 14px; line-height: 1.6; color: var(--ink-2); text-align: right; opacity: 0; animation: fade 1.2s 1.6s var(--ease) forwards; }
.hero__find p { margin: 0; transition: opacity .6s, transform .6s var(--ease); }
.hero__hint-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--beak); margin-right: 6px; vertical-align: 1px; animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(232, 181, 48, .6); } 80%, 100% { box-shadow: 0 0 0 12px rgba(232, 181, 48, 0); } }
.hero__show { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.hero__found { position: absolute; right: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(8px); pointer-events: none; color: var(--ink); }
.hero__found em { font-family: var(--serif); font-size: 1.35em; color: var(--ink); }
.hero.is-found .hero__hint { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.hero.is-found .hero__found { opacity: 1; transform: none; pointer-events: auto; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; z-index: 3; width: 24px; height: 40px; margin-left: -12px; border: 1px solid var(--line-2); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; border-radius: 2px; background: var(--ink); animation: wheel 2s infinite var(--ease); }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 999px) {
  /* the flock gets a compact band above the headline */
  .hero { min-height: 0; display: block; padding: 270px 0 64px; }
  .hero__find { position: relative; inset: auto; max-width: var(--wrap); margin: 30px auto 0; padding: 0 var(--gutter); text-align: left; }
  .hero__found { left: var(--gutter); right: var(--gutter); width: auto; top: 0; bottom: auto; }
  .hero__scroll { display: none; }
}
@media (max-width: 560px) { .hero { padding-top: 250px; } }

/* ---------- Journey (sticky, scroll-driven) ---------- */
.journey { position: relative; height: 320vh; }
.journey__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.journey__sticky .wrap { width: 100%; }
.journey h2 { font-size: clamp(32px, 4.8vw, 64px); max-width: 18ch; }
.j-word { color: rgba(43, 37, 35, .28); transition: color .6s; }
.j-word.is-on { color: var(--ink); }
.j-word.is-on em { color: var(--slate); }
.j-word em { color: inherit; }
.journey__stage { margin: clamp(30px, 6vh, 60px) 0 10px; color: var(--ink); }
.journey__svg { width: 100%; height: auto; overflow: visible; }
.j-st { opacity: .3; transition: opacity .6s; }
.j-st.is-on { opacity: 1; }
.j-bulb-glow, .j-rays, .j-door-glow, .j-free-gull { opacity: 0; transition: opacity .8s; }
.j-st--1.is-on .j-bulb-glow, .j-st--1.is-on .j-rays { opacity: 1; }
.j-st--2.is-on .j-door-glow, .j-st--2.is-on .j-free-gull { opacity: 1; }
.j-door { transform-origin: -26px 43px; transition: transform 1s var(--ease); }
.j-st--2.is-on .j-door { transform: scaleX(.35); }
.j-labels text { opacity: .6; }
.journey__copy { position: relative; min-height: 6.5em; max-width: 560px; }
.j-copy { position: absolute; inset: 0 auto auto 0; margin: 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s var(--ease); }
.j-copy strong { color: var(--ink); font-weight: 600; }
.j-copy.is-on { opacity: 1; transform: none; }
@media (max-width: 700px) { .journey__svg .j-labels { font-size: 22px; } }

/* ---------- Numbers ---------- */
.numbers__head { text-align: center; margin-bottom: 34px; }
.numbers__field { position: relative; height: clamp(380px, 52vw, 560px); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.numbers__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.numbers__big { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; pointer-events: none; }
.numbers__n { font-family: var(--serif); font-weight: 500; font-size: clamp(56px, 10vw, 136px); line-height: 1; letter-spacing: -.03em; color: var(--ink); text-shadow: 0 0 30px #fff, 0 0 14px #fff, 0 0 6px #fff; }
.numbers__cap { display: block; max-width: 460px; margin-top: 18px; color: var(--ink); font-size: clamp(15px, 1.4vw, 18px); font-weight: 500; text-shadow: 0 0 14px #fff, 0 0 8px #fff, 0 0 4px #fff; }
.numbers__key { margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .85); padding: 4px 10px; border-radius: 999px; }
.numbers__key i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.numbers__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.stat { padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.stat__n { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 4vw, 52px); line-height: 1.05; color: var(--slate); }
.stat__l { display: block; margin-top: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.numbers__src { margin-top: 18px; text-align: center; }
@media (max-width: 820px) { .numbers__row { grid-template-columns: 1fr; } }

/* ---------- Forms (join the dots) ---------- */
.forms__head { max-width: 760px; margin-bottom: 40px; }
.forms__head .lede { margin-top: 22px; }
.forms__map { position: relative; display: grid; grid-template-columns: 1fr 320px; grid-template-areas: "tabs tabs" "sky panel"; gap: 22px 30px; align-items: center; }
.forms__tabs { grid-area: tabs; display: flex; flex-wrap: wrap; gap: 8px; }
.forms__tab { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 14px; color: var(--ink-2); cursor: pointer; transition: all .25s; }
.forms__tab:hover { color: var(--ink); border-color: var(--ink); }
.forms__tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.forms__sky { grid-area: sky; position: relative; border-radius: 26px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); overflow: hidden; background-image: radial-gradient(rgba(43, 37, 35, .07) 1px, transparent 1px); background-size: 22px 22px; }
.forms__svg { width: 100%; height: auto; cursor: pointer; user-select: none; }
.forms__panel { grid-area: panel; }
.forms__num { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .24em; color: var(--red); margin-bottom: 10px; }
.forms__name { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 16px; font-style: italic; color: var(--ink); }
.forms__desc { color: var(--ink-2); }
.forms__note { margin-top: 22px; }
.c-group { cursor: pointer; }
.c-group .c-star { fill: var(--ink); opacity: .35; transition: opacity .5s, fill .5s; }
.c-group .c-halo { fill: var(--red); opacity: 0; transition: opacity .6s; }
.c-group .c-line { stroke: var(--red); stroke-width: 1.8; fill: none; opacity: 0; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.2s var(--ease), opacity .4s; }
.c-group .c-label { font-family: "DM Sans", sans-serif; font-size: 17px; font-weight: 500; fill: var(--ink); opacity: 0; transition: opacity .25s; pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.c-group.is-on .c-label { transition: opacity .6s .35s; }
.c-group .c-title { font-family: "Playfair Display", serif; font-style: italic; font-size: 24px; fill: rgba(43, 37, 35, .4); transition: fill .5s, opacity .5s; text-anchor: middle; }
.c-group:hover .c-star { opacity: .7; }
.c-group:hover .c-line { opacity: .25; }
.c-group.is-on .c-star { opacity: 1; fill: var(--red); }
.c-group.is-on .c-halo { opacity: .14; }
.c-group.is-on .c-line { opacity: .9; stroke-dashoffset: 0; }
.c-group.is-on .c-label { opacity: 1; }
.c-group.is-on .c-title { fill: transparent; }
@media (max-width: 960px) {
  .forms__map { grid-template-columns: 1fr; grid-template-areas: "tabs" "sky" "panel"; }
  .forms__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
  .forms__tabs::-webkit-scrollbar { display: none; }
  .forms__tab { flex: none; }
}

/* ---------- Thermostat ---------- */
.thermo { overflow: hidden; }
.thermo__warmth { position: absolute; inset: 0; pointer-events: none; opacity: var(--heat, 0); transition: opacity .3s; background: radial-gradient(50% 60% at 28% 50%, rgba(214, 90, 50, .16), rgba(214, 90, 50, 0) 70%); }
.thermo__warmth::after { content: ""; position: absolute; inset: 0; opacity: var(--chill, 0); background: radial-gradient(50% 60% at 28% 50%, rgba(93, 140, 200, .2), rgba(93, 140, 200, 0) 70%); }
.thermo__dialwrap { text-align: center; }
.thermo__dial { width: min(420px, 100%); margin: 0 auto; touch-action: none; cursor: grab; }
.thermo__dial:active { cursor: grabbing; }
.thermo__drag { margin-top: 8px; letter-spacing: .2em; text-transform: uppercase; font-size: 11.5px; font-weight: 600; }
.thermo__state { margin: 30px 0 32px; padding: 22px 24px; border-left: 3px solid var(--slate); background: var(--card); box-shadow: var(--shadow); border-radius: 0 14px 14px 0; min-height: 132px; }
.thermo__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; transition: color .3s; }
.thermo__msg { margin: 0; font-family: var(--serif); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: var(--ink); }
.thermo.is-hot .thermo__label { color: var(--red-2); }
.thermo.is-hot .thermo__state { border-left-color: var(--red-2); }
.thermo.is-cold .thermo__label { color: #3f78bf; }
.thermo.is-cold .thermo__state { border-left-color: #3f78bf; }

/* ---------- Beyond the law ---------- */
.law__img { margin: 0; position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow); }
.law__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.02); }
.law__top h2 { margin-bottom: 24px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(70px, 10vw, 120px); border-top: 1px solid var(--ink); }
.pillar { padding: 32px 26px 10px 26px; border-right: 1px solid var(--line); }
.pillar:first-child { padding-left: 0; }
.pillar:last-child { border-right: 0; }
.pillar__n { font-family: var(--serif); font-style: italic; color: var(--slate); font-size: 20px; }
.pillar h3 { margin: 12px 0 10px; font-size: 23px; }
.pillar p { color: var(--ink-2); font-size: 15.5px; }
.law__approach { margin: clamp(60px, 8vw, 100px) auto 0; text-align: center; font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); line-height: 1.4; max-width: 900px; }
.law__approach span:last-child { display: block; font-size: .62em; color: var(--ink-2); margin-top: 10px; font-style: italic; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar:nth-child(2) { border-right: 0; } .pillar:nth-child(3) { padding-left: 0; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } .pillar { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; } }

/* ---------- Symbol ---------- */
.symbol { background: var(--mist); }
.symbol h2 { margin-bottom: 20px; }
.symbol .lede { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: clamp(20px, 2vw, 25px); margin-bottom: 24px; }
.symbol__quote { margin: 30px 0; padding-left: 22px; border-left: 2px solid var(--ink); font-family: var(--serif); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; color: var(--ink); font-style: italic; }
.symbol__moon { margin: 0; text-align: center; }
.symbol__ring { position: relative; width: min(460px, 86%); aspect-ratio: 1; margin: 0 auto 18px; border-radius: 50%; padding: 12px; background: #fff; box-shadow: 0 30px 60px rgba(43, 37, 35, .12); }
.symbol__ring::before { content: ""; position: absolute; inset: -36px; border-radius: 50%; border: 1px dashed rgba(43, 37, 35, .25); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.symbol__ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@media (max-width: 880px) { .symbol__moon { order: -1; } }

/* ---------- Film ---------- */
.film__card { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 28px; overflow: hidden; cursor: pointer; background: #0b1d36; text-align: left; aspect-ratio: 21 / 9; box-shadow: 0 30px 70px rgba(43, 37, 35, .18); color: #fff; }
.film__card img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform 1.4s var(--ease), opacity .6s; }
.film__card:hover img { transform: scale(1.04); opacity: 1; }
.film__play { position: absolute; right: clamp(20px, 4vw, 44px); bottom: clamp(18px, 3.4vw, 38px); width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(255, 255, 255, .16); transition: transform .4s var(--ease), box-shadow .4s; }
.film__play svg { width: 30px; height: 30px; margin-left: 4px; }
.film__card:hover .film__play { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(255, 255, 255, .12); }
.film__meta { position: absolute; left: clamp(20px, 4vw, 44px); bottom: clamp(18px, 3.4vw, 38px); }
.film__meta .eyebrow { margin-bottom: 6px; color: rgba(255, 255, 255, .8); }
.film__title { display: block; font-family: var(--serif); font-size: clamp(24px, 3.4vw, 44px); line-height: 1.1; }
.film__title em { color: #fff; }
@media (max-width: 640px) { .film__card { aspect-ratio: 4 / 3.4; } .film__play { width: 60px; height: 60px; } .film__play svg { width: 22px; height: 22px; } .film__meta { right: 90px; } }

/* ---------- Ways in ---------- */
.ways__head { margin-bottom: 40px; }
.ways__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 18px; }
.way { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 30px 30px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; transition: border-color .35s, transform .45s var(--ease), box-shadow .35s; min-height: 320px; }
.way:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 20px 44px rgba(43, 37, 35, .1); }
.way h3 { font-size: clamp(24px, 2.2vw, 30px); }
.way p { color: var(--ink-2); font-size: 15.5px; margin: 0; flex: 1; }
.way__tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.way--big { background: var(--red); border-color: var(--red); color: #fff; }
.way--big h3, .way--big .arrow-link { color: #fff; }
.way--big p { color: rgba(255, 255, 255, .85); }
.way--big .way__tag { color: rgba(255, 255, 255, .75); }
.way--big:hover { border-color: var(--red); box-shadow: 0 20px 44px rgba(148, 6, 6, .25); }
.way__stars { position: absolute; right: -10px; top: 20px; width: 260px; opacity: .5; pointer-events: none; transition: opacity .4s; }
.way__stars g, .way__stars path { fill: #fff; stroke: #fff; }
.way__stars path { fill: none; }
.way--big:hover .way__stars { opacity: .95; }
.way--big h3, .way--big p, .way--big .arrow-link, .way--big .way__tag { position: relative; }
@media (max-width: 980px) { .ways__grid { grid-template-columns: 1fr 1fr; } .way--big { grid-column: 1 / -1; } }
@media (max-width: 620px) { .ways__grid { grid-template-columns: 1fr; } .way { min-height: 0; } }

/* ---------- Newsletter ---------- */
.news__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.news__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.news__list a { display: grid; grid-template-columns: 90px 1fr 24px; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .35s var(--ease), color .3s; }
.news__list a:hover { padding-left: 12px; color: var(--slate); }
.news__no { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); }
.news__t { font-family: var(--serif); font-size: clamp(19px, 2vw, 25px); line-height: 1.35; }
.news__list svg { width: 20px; height: 20px; opacity: .6; }
@media (max-width: 560px) { .news__list a { grid-template-columns: 1fr 20px; gap: 6px 14px; } .news__no { grid-column: 1 / -1; } }
