/* ==========================================================================
   Dogans TITANIC · v9 layer
   Assistant as the one type family (200 to 800), clean scroll motion,
   the TITANIC intro, cookie consent, product description, about timeline,
   article cards. Loaded after v8.css.
   ========================================================================== */

:root {
	--font-display: 'Assistant', system-ui, sans-serif;
	--font-body: 'Assistant', system-ui, sans-serif;
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
	--rv-y: 28px;
	--rv-dur: 1s;
}

[hidden] { display: none !important; }

/* ---------- typography: Assistant, heavy against light ---------- */
body { font-family: var(--font-body); font-weight: 400; font-feature-settings: 'kern'; letter-spacing: -.003em; }
h1, h2, h3, h4, .h1, .h2, .h3 { font-family: var(--font-display); }
h1, h2, .h1, .h2, .shead__h, .phead__title, .hero h1, .cta-c h2 { font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
h3, .h3 { font-weight: 700; letter-spacing: -.015em; }
.w-light { font-weight: 200; letter-spacing: -.02em; }
.section--dark .w-light, .hero .w-light, .phead .w-light, .bhead .w-light, .chero .w-light, .bcta .w-light { color: rgba(255, 255, 255, .78); }
.shead__h .w-light, .about__statement .w-light { color: #5A6B86; }
.shead__h { font-size: clamp(2.3rem, 4.8vw, 4.3rem); }
.hero h1 { font-size: clamp(2.6rem, 5.8vw, 5rem); max-width: 15ch; }
.phead__title { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.lead, .shead__side p, .phead__intro, .hero__side p, .faqx__intro, .contactx__p { font-weight: 300; }
.about__statement { font-weight: 300; font-size: clamp(1.6rem, 2.7vw, 2.45rem); line-height: 1.25; letter-spacing: -.02em; }
.about__statement .w-light { font-weight: 200; }
.badge-pill { font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .06em; gap: 8px; }
.btn { font-family: var(--font-body); font-weight: 700; letter-spacing: .005em; }
.nav__link { font-family: var(--font-body); font-weight: 500; font-size: 1.02rem; letter-spacing: .01em; }
.num, .stats dt { font-variant-numeric: tabular-nums lining-nums; }
.stats dt { font-weight: 800; letter-spacing: -.045em; font-size: clamp(2.6rem, 3.8vw, 3.4rem); }
.stats dd { font-weight: 300; font-size: 1.02rem; }
.why__top h3, .svc__h, .cats__name, .proj__body h3 { font-weight: 700; }
.why__card p, .svc__p { font-weight: 300; font-size: 1.05rem; }
.faq summary { font-weight: 600; }
.site-foot__col h2 { font-weight: 800; letter-spacing: -.02em; }
.mnav__link { font-family: var(--font-body); font-weight: 800; letter-spacing: -.02em; }
.prose { font-weight: 400; }
.prose h2 { font-weight: 800; }
.prose strong { font-weight: 700; }

/* ---------- scroll motion: calm, automatic, transform + opacity only ---------- */
html.js-motion :is(.shead > *, .about__statement, .stats > div, .about__pics > *, .svc__card, .reqbar, .why__card, .cats__item, .faqx__media, .faq details, .contactx__info, .contactx__form, .bcard, .bfeat, .tl2__card, .tl2__media, .gitem, .kit__card, .socialx__grid li, .film__text, .film__player, .pfam, .prodx__head > *, .pcard, .teaser__text, .teaser__media, .split > *, .gal figure, .art__cover, .art__cta, .pn, .related h2, .bcta__in > *, .site-foot__col, .case, .rows li, .note, .cap, .person, .checks li, .chapters li, .specs, .product__text, .cgot, .empty, .tcard, .optc, .optc-photo, .stepper__item, .checks2 li, .notec, .relc, .ctab__in > *, .reveal):not(.is-in) {
	opacity: 0;
	transform: translate3d(0, var(--rv-y), 0);
}
html.js-motion .is-rv {
	transition: opacity var(--rv-dur) var(--ease-out), transform calc(var(--rv-dur) * 1.1) var(--ease-out);
	transition-delay: var(--rv-delay, 0ms);
}
html.js-motion .is-rv.is-in { opacity: 1; transform: none; }

/* headline words rise from a mask */
/* Words fade in where they stand, one after another. No vertical movement at
   all: any rise (the old full-line mask, then a short .32em lift) left words at
   several heights mid-animation, which on phones read as the headline breaking
   into extra lines for a moment before settling. */
.wd { display: inline-block; vertical-align: top; }
.wd > span { display: inline-block; }
/* Until motion.js has split a headline into words it stays hidden: the plain
   text can wrap differently for a moment (fallback font, late script), which
   phones showed as a flash of extra lines. Same list as WORDS in motion.js;
   the head script lifts js-motion if motion.js never runs. */
html.js-motion :is(.shead__h, .sech__h, .ghead__h, .phead__title, .bhead__h, .chero__h, .art__title, .hero h1, .cta-c h2, .bcta h2):not(.split-words) { visibility: hidden; }
html.js-motion .split-words:not(.is-in) .wd > span { opacity: 0; }
html.js-motion .split-words .wd > span { transition: opacity .8s var(--ease-out); transition-delay: calc(var(--w, 0) * 60ms + 60ms); }
html.js-motion .split-words.is-in .wd > span { opacity: 1; }

/* images open from a soft inset */
html.js-motion .rv-img { overflow: hidden; }
html.js-motion .rv-img img, html.js-motion .rv-img video { transform: scale(1.12); transition: transform 1.8s var(--ease-out); }
html.js-motion .rv-img.is-in img, html.js-motion .rv-img.is-in video { transform: none; }
html.js-motion .rv-img:not(.is-in) { clip-path: inset(6% 6% 6% 6%); }
html.js-motion .rv-img { transition: clip-path 1.4s var(--ease-out), opacity var(--rv-dur) var(--ease-out), transform calc(var(--rv-dur) * 1.1) var(--ease-out); transition-delay: var(--rv-delay, 0ms); }
html.js-motion .rv-img.is-in { clip-path: inset(0 0 0 0); }

/* icons draw their own lines */
html.js-motion .draw .ic :is(path, circle, rect, line, polyline, polygon, ellipse) { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js-motion .draw.is-in .ic :is(path, circle, rect, line, polyline, polygon, ellipse), html.js-motion .is-in .draw .ic :is(path, circle, rect, line, polyline, polygon, ellipse) { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-io) .25s; }
.why__card:hover .why__top .ic { animation: ic-nudge .8s var(--ease-out); }
@keyframes ic-nudge { 30% { transform: rotate(-8deg) scale(1.08); } 60% { transform: rotate(5deg); } }

/* slow parallax on photo heads, set by motion.js */
.phead__bg, .hero__film { will-change: transform; transform: translate3d(0, var(--plx, 0px), 0) scale(1.08); }

/* ---------- intro: the lens is drawn, the mark fills, the page opens like an eye ---------- */
@property --eye { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.intro { display: none; }
html.dg-intro .intro {
	--eye: 0%;
	position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
	background: radial-gradient(120vmax 80vmax at 50% 50%, #0C2552 0%, #061531 55%, #030B1C 100%);
	-webkit-mask: radial-gradient(ellipse calc(var(--eye) * 1.9) var(--eye) at 50% 50%, transparent 98%, #000 100%);
	mask: radial-gradient(ellipse calc(var(--eye) * 1.9) var(--eye) at 50% 50%, transparent 98%, #000 100%);
	animation: intro-eye 1s var(--ease-io) 2.05s forwards;
}
html.dg-intro body { overflow: hidden; }
html.dg-intro.intro-done body { overflow: auto; }
.intro__glow { position: absolute; width: 70vmin; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(110, 155, 224, .35), transparent); opacity: 0; animation: intro-glow 2.2s var(--ease-out) .2s forwards; }
.intro__stage { position: relative; width: min(460px, 70vw); aspect-ratio: 640 / 270; animation: intro-stage 2.9s var(--ease-io) forwards; }
.intro__lens { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro__arc { stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-draw 1s var(--ease-io) .15s forwards, intro-fade .5s ease 1.05s forwards; }
.intro__ray { stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; animation: intro-draw 1.1s var(--ease-io) .05s forwards, intro-fade .6s ease 1.5s forwards; }
.intro__mark { position: absolute; inset: 0; color: #fff; }
.intro__svg { display: block; width: 100%; height: 100%; opacity: 0; filter: blur(6px); transform: scale(.985); animation: intro-fill .8s var(--ease-out) .85s forwards; }
.intro__sheen {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, transparent 40%, rgba(158, 192, 255, .95) 50%, transparent 60%) no-repeat;
	background-size: 280% 100%; background-position: 140% 0;
	-webkit-mask: url('../svg/titanic-mark.svg') center / contain no-repeat; mask: url('../svg/titanic-mark.svg') center / contain no-repeat;
	animation: intro-sheen 1s var(--ease-io) 1.25s forwards;
}
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-fade { to { opacity: 0; } }
@keyframes intro-fill { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes intro-sheen { to { background-position: -40% 0; } }
@keyframes intro-glow { 40% { opacity: 1; } to { opacity: .6; transform: scale(1.15); } }
@keyframes intro-stage { 0%, 70% { transform: none; opacity: 1; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes intro-eye { to { --eye: 150%; visibility: hidden; } }
html.dg-intro .hero h1, html.dg-intro .hero__ctas { animation-delay: 2.35s, 2.55s; }

/* ---------- cookie consent ---------- */
.cc { position: fixed; z-index: 400; inset-inline: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); max-width: 620px; margin-inline-start: auto; background: #fff; color: var(--ink); border: 1px solid rgba(11, 27, 51, .1); box-shadow: 0 30px 80px -30px rgba(6, 21, 49, .45); padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 18px; animation: cc-in .8s var(--ease-out) both; }
html.dg-intro .cc { animation-delay: 2.9s; }
@keyframes cc-in { from { opacity: 0; transform: translateY(24px); } }
.cc[hidden] { display: none; }
.cc__main { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.cc__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--tint); color: var(--accent); }
.cc__text h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.cc__text p { margin-top: 6px; font-weight: 300; font-size: .93rem; line-height: 1.6; color: var(--ink-2); }
.cc__text a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.cc__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc__actions .btn { padding: 12px 20px; }
.cc__prefs { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.cc__prefs[hidden] { display: none; }
.cc__opt { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 10px 0; cursor: pointer; }
.cc__opt input { position: absolute; opacity: 0; pointer-events: none; }
.cc__opt strong { display: block; font-weight: 700; }
.cc__opt small { display: block; color: var(--ink-3); font-size: .9rem; font-weight: 300; line-height: 1.5; }
.cc__sw { position: relative; width: 42px; height: 24px; border-radius: 99px; background: #D5DBE4; transition: background .3s; margin-top: 2px; }
.cc__sw::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .35s var(--ease-out); }
.cc__opt input:checked + .cc__sw { background: var(--accent); }
.cc__opt input:checked + .cc__sw::after { transform: translateX(-18px); }
.cc__opt input:disabled + .cc__sw { opacity: .55; }
.cc__opt input:focus-visible + .cc__sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-foot__cc { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .6); font-size: .9rem; }
.site-foot__cc:hover { color: #fff; }

/* ---------- product page: one description ---------- */
.product__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.product__meta .badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-weight: 700; padding: 7px 12px; }
.product__info h1 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-top: 14px; }
.product__brand { color: var(--ink-3); font-weight: 300; }
.product__text { margin-top: 22px; font-size: 1.08rem; font-weight: 300; line-height: 1.75; color: var(--ink-2); }
.product__text strong { font-weight: 700; color: var(--ink); }
.specs { margin-top: 26px; border-top: 1px solid var(--line); }
.specs__list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.specs__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs__row dt { color: var(--ink-3); font-weight: 400; font-size: .95rem; }
.specs__row dd { margin: 0; font-weight: 700; text-align: end; }
.specs__notes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.specs__notes li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--pill); background: var(--tint); color: var(--navy); font-weight: 600; font-size: .9rem; }
.specs__notes .ic { color: var(--accent); }
.attrs { display: none; }
.badge--prod { display: inline-flex; align-items: center; gap: 5px; background: var(--navy); }

/* product cards: production gets the stronger mark */
.pcard { border-radius: 0; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .3s; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -40px rgba(6, 21, 49, .5); border-color: rgba(11, 27, 51, .16); }
.pcard__media { background: #fff; }
.pcard__title { font-weight: 700; font-size: 1.02rem; letter-spacing: -.005em; }
.pcard__cat { font-weight: 600; letter-spacing: .02em; color: var(--accent); }
.pcard--prod { border-top: 3px solid var(--accent); }
.pcard--prod .badge--prod { background: linear-gradient(135deg, #1A4590, var(--dark)); box-shadow: 0 8px 18px -10px rgba(6, 21, 49, .7); }
.pcard__actions .btn { border-radius: var(--pill); }

/* ---------- about: the road, drawn as you scroll ---------- */
.tl2 { position: relative; margin-top: clamp(20px, 4vw, 40px); }
.tl2__axis { position: absolute; top: 0; bottom: 0; inset-inline-start: 50%; width: 2px; margin-inline-start: -1px; background: rgba(11, 27, 51, .08); }
.tl2__fill { position: absolute; inset-inline: 0; top: 0; height: 100%; background: linear-gradient(180deg, var(--accent), #6E9BE0); transform-origin: top; transform: scaleY(var(--tl, 0)); }
.tl2__list { display: grid; gap: clamp(48px, 7vw, 110px); }
.tl2__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(64px, 9vw, 150px); align-items: center; }
.tl2__item:nth-child(even) .tl2__card { order: 2; }
.tl2__dot { position: absolute; top: 50%; inset-inline-start: 50%; width: 22px; height: 22px; margin: -11px 0 0; transform: translateX(50%); border-radius: 50%; background: #fff; border: 2px solid #C9D3E2; display: grid; place-items: center; transition: border-color .6s var(--ease-out), transform .6s var(--ease-out); z-index: 1; }
.tl2__dot > span { width: 8px; height: 8px; border-radius: 50%; background: #C9D3E2; transition: background .6s, transform .6s var(--ease-out); }
.tl2__item.is-on .tl2__dot { border-color: var(--accent); transform: translateX(50%) scale(1.15); }
.tl2__item.is-on .tl2__dot > span { background: var(--accent); }
.tl2__item.is-on .tl2__dot::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--accent); animation: tl-ping 2.4s var(--ease-out) infinite; }
@keyframes tl-ping { from { opacity: .55; transform: scale(.6); } to { opacity: 0; transform: scale(1.6); } }
.tl2__card { padding: clamp(26px, 3vw, 42px); background: #fff; border: 1px solid rgba(11, 27, 51, .08); box-shadow: 0 30px 60px -48px rgba(6, 21, 49, .5); }
.tl2__top { display: flex; align-items: center; gap: 14px; }
.tl2__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--tint); color: var(--accent); flex: none; }
.tl2__time { font-weight: 800; font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.tl2__card h3 { margin-top: 20px; font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 800; letter-spacing: -.025em; }
.tl2__card p { margin-top: 10px; color: var(--ink-2); font-weight: 300; font-size: 1.08rem; line-height: 1.65; }
.tl2__media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #E9EDF2; }
.tl2__media img { width: 100%; height: 100%; object-fit: cover; }
.tl2__media--empty { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #E6EAF0 0 14px, #EDF0F4 14px 28px); border: 1px dashed #B9C3D1; }
.tl2__slot { display: grid; justify-items: center; gap: 10px; color: #8794A8; font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
html.js-motion .tl2__item:nth-child(odd) .tl2__card:not(.is-in) { transform: translate3d(30px, 0, 0); }
html.js-motion .tl2__item:nth-child(even) .tl2__card:not(.is-in) { transform: translate3d(-30px, 0, 0); }

/* ---------- article cards (blog, home, about) ---------- */
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); }
.bcard { position: relative; display: flex; flex-direction: column; background: #fff; }
.bcard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.cover { position: relative; display: block; width: 100%; height: 100%; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.cover--empty { display: grid; place-items: center; background: linear-gradient(135deg, #0E2A5C, var(--dark)); color: rgba(255, 255, 255, .22); }
.cover__mark { width: 46%; }
.cover__mood { position: absolute; bottom: 10px; inset-inline-end: 10px; padding: 3px 10px; border-radius: var(--pill); background: rgba(6, 21, 49, .55); color: rgba(255, 255, 255, .9); font-size: .72rem; }
.bcard:hover .cover img { transform: scale(1.06); }
.bcard__cat { position: absolute; top: 14px; inset-inline-start: 14px; padding: 7px 13px; border-radius: var(--pill); background: rgba(255, 255, 255, .92); color: var(--navy); font-weight: 700; font-size: .8rem; letter-spacing: .03em; backdrop-filter: blur(6px); }
.bcard__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 2px 6px; flex: 1; }
.pmeta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-3); font-size: .9rem; font-weight: 400; }
.bcard__title { font-size: clamp(1.3rem, 1.7vw, 1.55rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.18; }
.bcard__title a::after { content: ''; position: absolute; inset: 0; }
.bcard__title a:focus-visible { outline: none; }
.bcard:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 6px; }
.bcard__excerpt { color: var(--ink-2); font-weight: 300; line-height: 1.6; }
.bcard__more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 700; font-size: .95rem; }
.bcard__more .dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; transition: transform .5s var(--ease-out); }
.bcard__more .ic-arrow { transform: scaleX(-1); }
.bcard:hover .bcard__more .dot { transform: translateX(-5px); }
.bteaser .shead { margin-bottom: clamp(36px, 5vw, 64px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.tl2__axis { inset-inline-start: 11px; }
	.tl2__item { grid-template-columns: 1fr; gap: 18px; padding-inline-start: 44px; }
	.tl2__item:nth-child(even) .tl2__card { order: 0; }
	.tl2__dot { inset-inline-start: 0; top: 30px; transform: none; }
	.tl2__item.is-on .tl2__dot { transform: scale(1.15); }
	html.js-motion .tl2__item .tl2__card:not(.is-in) { transform: translate3d(0, var(--rv-y), 0); }
	.specs__list { grid-template-columns: 1fr; }
	.cc__actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 560px) {
	.bgrid { grid-template-columns: 1fr; }
	.cc__main { grid-template-columns: 1fr; }
	.cc__ic { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.phead__bg, .hero__film { transform: none; }
	.tl2__item.is-on .tl2__dot::after { animation: none; }
	.intro { display: none !important; }
}
html.a11y-noanim .intro, body.dg-noanim .intro { display: none !important; }
html.a11y-noanim .tl2__dot::after { animation: none; }
