/* ==========================================================================
   Fenstron — main.css
   Design: Figma 7Bkaz5k8xggPVyeKUfNUwJ, frame "Coming soon — Desktop 1440" (1440 × 1320).
   Desktop (≥1024): the coming soon page fits the screen height. Sizes use --u, a pixel that
   shrinks with the viewport height (1px at ≥1340px high); fonts keep a readable minimum.
   Breakpoints: 1279, 1023 (one column, normal scrolling), 767 (mobile), 479 (small).
   ========================================================================== */

/* Fonts (self-hosted, no requests to Google) ------------------------------ */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Tokens ------------------------------------------------------------------ */
:root {
	--orange: #F26A1B;
	--orange-dark: #D9560B;
	--orange-soft: #FFF1E8;
	--ink: #16171A;
	--dark: #1F2125;
	--dark-line: #33363C;
	--dark-border: #43464D;
	--light: #F3F2EF;
	--white: #FFFFFF;
	--text: #4B4F57;
	--muted: #7C8088;
	--muted-light: #A3A6AC;
	--line: #D9D6D0;
	--line-soft: #E2DFD9;
	--placeholder: #8B8F96;
	--check-border: #B8B5AF;
	--dot: #CFCCC6;
	--band-label: #9A9DA3;
	--success: #1E7B4A;
	--error: #C2410C;

	--font-head: "Outfit", system-ui, sans-serif;
	--font-body: "Manrope", system-ui, sans-serif;

	--u: 1px;
	--pad-x: clamp(20px, 6.667vw, 96px);
	--seam: 4px;
	--radius: 4px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--icon-accent: var(--orange);
}
@media (min-width: 1024px) {
	:root { --u: max(.5px, min(1px, 100svh / 1300)); }
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--light); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, fieldset, figure { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.u-accent { color: var(--orange); }
.u-sr, .screen-reader-response { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: var(--white); font-weight: 700; text-decoration: none; border-radius: var(--radius); }
.skip-link:focus { top: 16px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon__accent { stroke: var(--icon-accent); }

.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--orange); font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 12px; height: 2px; background: currentColor; flex: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: max(46px, calc(56 * var(--u))); padding: 0 28px; border: 0; border-radius: var(--radius); background: var(--orange); color: var(--white); font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease); }
.button:hover { background: var(--orange-dark); }
.button .icon { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.button:hover .icon { transform: translateX(3px); }
.button--block { width: 100%; }

.logo { display: inline-block; flex: none; }
.logo img { width: max(170px, calc(296 * var(--u))); height: auto; }

/* Coming soon layout ------------------------------------------------------ */
@media (min-width: 1024px) {
	/* Page = coming soon + band, together exactly one screen high (taller only when content needs it). */
	body.home { display: flex; flex-direction: column; min-height: 100svh; }
	body.home .cs { flex: 1 0 auto; }
}
.cs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cs__main { display: flex; flex-direction: column; gap: calc(56 * var(--u)); padding: calc(56 * var(--u)) 64px calc(64 * var(--u)) var(--pad-x); min-width: 0; }
.cs__content { display: flex; flex-direction: column; gap: calc(48 * var(--u)); max-width: 680px; }

/* Intro */
.cs-intro { display: flex; flex-direction: column; gap: calc(48 * var(--u)); container-type: inline-size; }
.cs-intro__head { display: flex; flex-direction: column; gap: calc(24 * var(--u)); }
.cs-intro__title { color: var(--ink); font-family: var(--font-head); font-size: max(30px, min(6.4cqi, calc(72 * var(--u)))); font-weight: 600; line-height: 1.06; letter-spacing: -.02em; }
.cs-intro__text { max-width: 660px; font-size: max(15px, calc(18 * var(--u))); line-height: 1.55; }

.usps { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: calc(24 * var(--u)) 28px; }
.usp { display: flex; align-items: center; gap: 16px; }
.usp__icon { display: grid; place-items: center; width: max(40px, calc(52 * var(--u))); height: max(40px, calc(52 * var(--u))); flex: none; background: var(--white); border: 1px solid var(--line-soft); border-radius: 6px; color: var(--ink); }
.usp__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.usp__title { color: var(--ink); font-family: var(--font-head); font-size: max(15px, calc(17 * var(--u))); font-weight: 600; line-height: 1.3; }
.usp__sub { color: var(--muted); font-size: max(13px, calc(14 * var(--u))); line-height: 1.45; }

/* Recent work slider */
.work { display: flex; flex-direction: column; gap: calc(18 * var(--u)); min-width: 0; }
.work__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.work__label { color: var(--muted); font-family: var(--font-body); font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; }
.work__nav { display: flex; align-items: center; gap: 8px; }
.work__count { margin-right: 6px; color: var(--ink); font-family: var(--font-head); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.work__total { color: var(--muted-light); }
.work__btn { display: grid; place-items: center; width: max(36px, calc(42 * var(--u))); height: max(36px, calc(42 * var(--u))); padding: 0; border: 1px solid var(--line); border-radius: 2px; background: var(--white); color: var(--ink); cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease); }
.work__btn .icon { width: 18px; height: 18px; }
.work__btn--prev .icon { transform: scaleX(-1); }
.work__btn--prev:hover { border-color: var(--ink); }
.work__btn--next { background: var(--ink); border-color: var(--ink); color: var(--white); }
.work__btn--next:hover { background: var(--orange); border-color: var(--orange); }
.work__btn:disabled { opacity: .35; cursor: default; }
.work__btn:disabled:hover { border-color: var(--line); }
.work__btn--next:disabled:hover { background: var(--ink); border-color: var(--ink); }

.work__track { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin: -4px; padding: 4px; }
.work__track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 max(146px, calc(248 * var(--u))); height: max(100px, calc(170 * var(--u))); overflow: hidden; border-radius: var(--radius); background: var(--dark); scroll-snap-align: start; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.65) 100%); pointer-events: none; }
.slide__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.slide:hover .slide__img { transform: scale(1.04); }
.slide__title { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: var(--white); font-size: 14px; font-weight: 600; line-height: 1.3; }

.work__dots { display: flex; gap: 8px; }
.work__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); transition: background-color .2s var(--ease); }
.work__dot.is-active { background: var(--orange); }

/* Right panel: photo + quote card */
.cs-side { position: relative; display: flex; flex-direction: column; background: var(--dark); border-left: var(--seam) solid var(--orange); min-width: 0; }
.cs-side { justify-content: flex-end; padding-top: calc(120 * var(--u)); }
.cs-side__photo { position: absolute; inset: 0; overflow: hidden; }
.cs-side__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(31,33,37,.25) 0%, rgba(31,33,37,0) 25%, rgba(31,33,37,0) 70%, rgba(31,33,37,.55) 100%); }
.cs-side__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.cs-side__label { position: absolute; top: calc(56 * var(--u)); left: 56px; z-index: 2; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 112px); padding: 10px 14px; border-radius: 2px; background: rgba(31,33,37,.85); color: var(--white); font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; }
.cs-side__label::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--orange); }

.quote-card { position: relative; z-index: 1; display: flex; flex-direction: column; gap: calc(32 * var(--u)); width: min(400px, 100% - 112px); margin: 0 56px calc(56 * var(--u)) auto; padding: calc(48 * var(--u)) 36px calc(44 * var(--u)); background: var(--white); border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.quote-card__head { display: flex; flex-direction: column; gap: calc(10 * var(--u)); }
.quote-card__title { color: var(--ink); font-family: var(--font-head); font-size: max(22px, calc(28 * var(--u))); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.quote-card__text { font-size: max(14px, calc(15 * var(--u))); line-height: 1.55; }

/* Form (Contact Form 7 with own markup) ----------------------------------- */
.wpcf7 form, .form { display: flex; flex-direction: column; gap: calc(28 * var(--u)); }
.hidden-fields-container { display: none; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(16 * var(--u)) 16px; }
.field { display: flex; flex-direction: column; gap: calc(8 * var(--u)); min-width: 0; }
.field__label { padding: 0; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.3; }
.wpcf7-form-control-wrap { display: block; }
.field__input { width: 100%; height: max(42px, calc(50 * var(--u))); padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); font-size: 15px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field__input::placeholder { color: var(--placeholder); opacity: 1; }
.field__input:hover { border-color: var(--check-border); }
.field__input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,106,27,.18); }
.field__input.wpcf7-not-valid { border-color: var(--error); }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; color: var(--error); font-size: 13px; line-height: 1.35; }

.chips { min-width: 0; padding: 0; border: 0; }
.chips legend { margin-bottom: calc(10 * var(--u)); }
.wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 8px; }
.wpcf7-list-item { margin: 0; }
.wpcf7-list-item label { display: inline-flex; align-items: center; gap: 10px; padding: max(7px, calc(9 * var(--u))) 16px max(7px, calc(9 * var(--u))) 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.3; cursor: pointer; user-select: none; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.wpcf7-list-item label:hover { border-color: var(--check-border); }
.wpcf7-list-item input { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; margin: 0; flex: none; border: 1px solid var(--check-border); border-radius: 3px; background: var(--white) no-repeat center / 10px; cursor: pointer; }
.wpcf7-list-item input:checked { border-color: var(--orange); background-color: var(--orange); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='square'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E"); }
.wpcf7-list-item input:focus-visible { outline: none; }
.wpcf7-list-item label:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.wpcf7-list-item label:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }

.form__actions { display: flex; flex-direction: column; gap: calc(12 * var(--u)); }
.wpcf7-spinner { display: none; }
form.submitting .wpcf7-submit { opacity: .7; cursor: progress; }
.form__note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.form__note a { color: var(--muted); text-underline-offset: 2px; }
.form__note a:hover { color: var(--ink); }

.wpcf7-response-output { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: 14px; line-height: 1.45; }
form.init .wpcf7-response-output, form.resetting .wpcf7-response-output, form.submitting .wpcf7-response-output { display: none; }
form.sent .wpcf7-response-output { border-color: var(--success); background: #EAF6EF; color: var(--success); font-weight: 600; }
form.invalid .wpcf7-response-output, form.unaccepted .wpcf7-response-output, form.failed .wpcf7-response-output, form.spam .wpcf7-response-output, form.aborted .wpcf7-response-output { border-color: var(--error); background: #FDF0E8; color: #9A3412; }
.form-fallback { font-size: 15px; }
.form-fallback a { color: var(--orange); font-weight: 600; }

/* Band (footer) ----------------------------------------------------------- */
.band { background: var(--dark); border-top: var(--seam) solid var(--orange); color: var(--white); }
.band__inner { display: flex; flex-direction: column; gap: calc(24 * var(--u)); padding: calc(40 * var(--u)) var(--pad-x) calc(28 * var(--u)); }
.band__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.band__contact { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.contact-item { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.contact-item__icon { display: grid; place-items: center; width: max(34px, calc(46 * var(--u))); height: max(34px, calc(46 * var(--u))); flex: none; border: 1px solid var(--dark-border); border-radius: 50%; color: var(--white); transition: border-color .2s var(--ease); }
.contact-item__icon .icon { width: 22px; height: 22px; }
.contact-item:hover .contact-item__icon { border-color: var(--orange); }
.contact-item__text { display: flex; flex-direction: column; gap: 2px; }
.contact-item__label, .band__label { color: var(--band-label); font-size: 10px; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; }
.contact-item__value { color: var(--white); font-size: 15px; font-weight: 600; line-height: 1.35; }
.contact-item:hover .contact-item__value { color: var(--orange); }
.band__partners { display: flex; flex-direction: column; gap: max(6px, calc(12 * var(--u))); }
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.partners li { height: var(--h, 18px); }
.partners img { width: auto; height: 100%; opacity: .85; }
.band__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: calc(20 * var(--u)); border-top: 1px solid var(--dark-line); color: var(--muted); font-size: 12px; line-height: 1.5; }
.band__link { color: var(--muted); text-underline-offset: 2px; }
.band__link:hover { color: var(--white); }

/* Text pages (privacy, 404) ----------------------------------------------- */
.topbar { background: var(--light); border-bottom: 1px solid var(--line-soft); }
.topbar__inner { padding: 24px var(--pad-x); }
.topbar .logo img { width: 200px; }
.text-page { padding: clamp(48px, 7vw, 96px) var(--pad-x) clamp(64px, 8vw, 120px); }
.text-page__inner { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.text-page__title { color: var(--ink); font-family: var(--font-head); font-size: clamp(34px, 4vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
.text-page__subtitle { color: var(--ink); font-family: var(--font-head); font-size: 24px; font-weight: 600; }
.text-page--404 .button { margin-top: 8px; }
.prose { font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; color: var(--ink); font-family: var(--font-head); font-size: 24px; font-weight: 600; line-height: 1.25; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--orange-dark); }
.prose strong { color: var(--ink); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1365px) {
	.cs__main { padding-right: 48px; }
	.quote-card { padding-inline: 28px; }
	.cs-side__label { left: 40px; }
	.usps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
	.cs { grid-template-columns: minmax(0, 1fr); }
	.cs__main { padding: 40px var(--pad-x) 56px; gap: 48px; }
	.cs__content { max-width: 680px; }
	.cs-side { display: block; padding-top: 0; border-left: 0; border-top: var(--seam) solid var(--orange); }
	.cs-side__photo { position: relative; height: clamp(300px, 52vw, 460px); }
	.cs-side__photo::after { background: linear-gradient(to bottom, rgba(31,33,37,0) 55%, var(--dark) 100%); }
	.quote-card { width: auto; max-width: 680px; margin: -140px var(--pad-x) 56px; }
	.cs-side__label { left: var(--pad-x); top: 24px; }
}

@media (max-width: 767px) {
	.logo img { width: 220px; }
	.cs__main { padding-top: 28px; gap: 40px; }
	.cs__content, .cs-intro { gap: 40px; }
	.cs-intro__head { gap: 20px; }
	.cs-intro__title { font-size: clamp(34px, 9.5vw, 44px); }
	.cs-intro__text { font-size: 17px; }
	.usps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.cs-side__photo { height: clamp(240px, 64vw, 340px); }
	.quote-card { gap: 24px; margin-top: -96px; margin-bottom: 40px; padding: 28px 20px 24px; }
	.quote-card__title { font-size: 24px; }
	.band__inner { padding-top: 36px; }
	.band__contact { flex-direction: column; gap: 18px; }
}

@media (max-width: 479px) {
	.form__grid { grid-template-columns: minmax(0, 1fr); }
	.slide { flex-basis: 220px; height: 150px; }
	.quote-card { margin-inline: 12px; }
	.cs-side__label { max-width: calc(100% - 40px); font-size: 10px; }
	.work__count { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Short desktop screens: the counter shows the position, the dots go. */
@media (min-width: 1024px) and (max-height: 900px) {
	.work__dots { display: none; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
	.band__contact { column-gap: 28px; }
	.partners { column-gap: 20px; }
}
/* Short desktop screens: the slider stays; USP subtitles go and the slides shrink, so the page fits one screen. */
@media (min-width: 1024px) and (max-height: 860px) {
	.usp__sub { display: none; }
	.usp__icon { width: 36px; height: 36px; }
	.usps { row-gap: 12px; }
	.work { gap: 10px; }
	.slide { flex-basis: calc(200 * var(--u) + 40px); height: calc(130 * var(--u) + 24px); }
}
/* Narrow or short laptops: the quote card gets a little more room so it stays within one screen. */
@media (min-width: 1024px) and (max-width: 1365px), (min-width: 1024px) and (max-height: 700px) {
	.quote-card { width: min(380px, 100% - 80px); margin-right: 40px; gap: calc(24 * var(--u)); padding-top: calc(36 * var(--u)); padding-bottom: calc(32 * var(--u)); }
	.wpcf7 form, .form { gap: calc(22 * var(--u)); }
}
/* Lower desktop screens: compacter chips and less room above the quote card. */
@media (min-width: 1024px) and (max-height: 860px) {
	.cs-side { padding-top: calc(64 * var(--u)); }
	.cs__main { gap: calc(44 * var(--u)); }
	.wpcf7-checkbox { gap: 6px; }
	.wpcf7-list-item label { gap: 8px; padding: 6px 12px 6px 10px; font-size: 13px; }
}
@media (min-width: 1024px) and (max-height: 760px) {
	.quote-card__text { display: none; }
}
/* Very low screens: the slider beats the USP row. */
@media (min-width: 1024px) and (max-height: 730px) {
	.usps { display: none; }
}
