/* Portfolio stylesheet.
   Layout: one left-aligned 1160px column; paper and white bands alternate down the page.
   The client rating report in the hero is the one loud element. Everything around it stays quiet. */

@font-face { font-family: "Manrope"; src: url(fonts/manrope.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jbmono.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f3f6fb;
  --surface: #ffffff;
  --ink: #0c1a36;
  --text: #2a3650;
  --muted: #5b6780;
  --line: #d7dfec;
  --line-soft: #e6ecf5;
  --blue: #1a56db;
  --blue-deep: #123c9e;
  --tint: #e8f0ff;
  --gold: #dc950b;
  --up: #0a8457;
  --up-tint: #e3f5ed;
  --warn: #7a5200;
  --warn-tint: #fff5d9;
  --danger: #b3261e;
  --danger-tint: #fdecea;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: 24px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid #8fb0f5; outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 6px; background: var(--ink); color: #fff; }
.skip:focus { left: 8px; color: #fff; }
.ic { flex: none; vertical-align: -3px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); font-weight: 800; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--blue); color: #fff; font: 500 .8rem var(--mono); letter-spacing: 0; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav a:hover { background: var(--tint); color: var(--blue-deep); }
.menu { position: relative; }
.menu summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 8px; font-weight: 700; font-size: .95rem; white-space: nowrap; list-style: none; cursor: pointer; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.hire summary { background: var(--blue); color: #fff; }
.hire summary:hover { background: var(--blue-deep); }
.hire[open] summary .ic { transform: rotate(180deg); }
.nav-menu { display: none; }
.nav-menu summary { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -18px rgba(12, 26, 54, .35); }
.menu-panel a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.menu-panel a:hover { background: var(--tint); }
.menu-panel a span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.menu-panel small { font: 500 .78rem var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.menu-panel .ic { color: var(--blue); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid var(--blue); border-radius: 8px; background: var(--blue); color: #fff; font: 700 .98rem var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-ghost { background: #fff; border-color: #c3cee0; color: var(--blue-deep); }
.btn-ghost:hover { background: var(--tint); border-color: #a9bff0; color: var(--blue-deep); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-danger, .btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(40px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
  background-color: var(--paper);
  background-image: linear-gradient(to bottom, rgba(243, 246, 251, 0) 50%, var(--paper)), linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.avail { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 12px; border: 1px solid #bfe3d3; border-radius: 99px; background: var(--up-tint); color: var(--up); font-weight: 700; font-size: .85rem; }
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); }
.h1-who { display: block; margin-bottom: 16px; color: var(--blue-deep); font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.lede { max-width: 56ch; margin: 20px 0 0; font-size: 1.15rem; line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* the client rating report */
.report { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 30px 60px -36px rgba(18, 60, 158, .45); }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: #f9fbfe; color: var(--muted); font: 500 .8rem var(--mono); }
.verified { display: inline-flex; align-items: center; gap: 6px; color: var(--up); font: 500 .78rem var(--mono); white-space: nowrap; }
.verified .ic { width: 15px; height: 15px; }
.report-score { display: flex; align-items: center; gap: 18px; padding: 20px 20px 6px; }
.score { margin: 0; color: var(--ink); font: 500 3.6rem/1 var(--mono); letter-spacing: -.08em; }
.score small { margin-left: .35em; color: var(--muted); font-size: 1.1rem; letter-spacing: 0; }
.score-none { font-size: 2.2rem; }
.score-side { display: flex; flex-direction: column; gap: 2px; margin: 0; color: var(--muted); font-size: .92rem; }
.stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; white-space: nowrap; }
.stars .off { color: #d3d9e5; }
.report-curve { padding: 6px 20px 0; }
.curve { display: block; width: 100%; height: auto; overflow: visible; }
.curve-base { stroke: var(--line); stroke-width: 1; }
.curve-ideal { stroke: #9fadc6; stroke-width: 1; stroke-dasharray: 3 4; }
.curve-area { fill: var(--tint); }
.curve-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.curve-dot { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.curve-ring { fill: none; stroke: var(--blue); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ping 1.6s ease-out .5s 2; }
@keyframes ping { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
.curve-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 6px 0 0; color: var(--muted); font: 500 .74rem var(--mono); }
.curve-empty { margin: 0; padding: 26px 0; color: var(--muted); font-size: .92rem; }
.report-rows { margin: 14px 0 0; border-top: 1px solid var(--line); }
.report-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 20px; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.report-rows div:last-child { border-bottom: 0; }
.report-rows dt { color: var(--muted); }
.report-rows dd { margin: 0; color: var(--ink); font: 500 .9rem var(--mono); text-align: right; }

/* ---------- bands and section heads ---------- */
.band { padding-block: clamp(56px, 7vw, 96px); }
.band-white { background: var(--surface); border-block: 1px solid var(--line); }
.hero + .band-white, .band-white + .band-white { border-top: 0; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 32px; margin-bottom: 36px; }
.sec-sub { max-width: 60ch; margin: 10px 0 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; border: 1px solid #c3cee0; border-radius: 99px; background: #fff; color: var(--text); font: 600 .9rem var(--font); cursor: pointer; }
.chip:hover { border-color: #a9bff0; background: var(--tint); }
.chip.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.empty { margin: 0; padding: 28px; border: 1px dashed #c3cee0; border-radius: 12px; color: var(--muted); text-align: center; }

/* ---------- projects ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 36px; }
.work { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.shot { display: block; overflow: hidden; text-decoration: none; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.work:hover .shot { border-color: #9db5ee; }
.shot-blank { display: grid; place-items: center; align-content: center; gap: 8px; width: 100%; height: 100%; padding: 16px; background: repeating-linear-gradient(135deg, #eef2f9 0 14px, #e7ecf6 14px 28px); color: var(--muted); font-weight: 700; text-align: center; }
.work-cat { margin: 0 0 6px; color: var(--blue-deep); font-size: .85rem; font-weight: 700; }
.tag-private { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px solid #c3cee0; border-radius: 99px; color: var(--muted); font-size: .76rem; font-weight: 600; }
.work h3 { font-size: 1.4rem; font-weight: 800; }
.work h3 a { color: inherit; text-decoration: none; }
.work h3 a:hover { color: var(--blue); }
.work-sum { max-width: 52ch; margin: 8px 0 10px; }
.work-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .9rem; }
.work-rate b { color: var(--ink); font: 500 .95rem var(--mono); }

/* ---------- reviews ---------- */
.quotes { columns: 3 300px; column-gap: 24px; }
.quotes-2 { columns: 2 320px; }
.quote { break-inside: avoid; margin: 0 0 24px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.band-white .quote { background: #fafcff; }
.quote-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; }
.quote blockquote { margin: 14px 0 18px; color: var(--ink); font-size: 1.02rem; line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--blue-deep); font: 500 .85rem var(--mono); }
.who { display: flex; flex-direction: column; line-height: 1.3; color: var(--ink); }
.who span { color: var(--muted); font-size: .88rem; }
.quote-meta { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .85rem; }
.reviews-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.report-flat { position: sticky; top: 92px; padding-bottom: 20px; box-shadow: none; }
.report-flat .btn { display: flex; margin: 18px 20px 0; }
.dist { display: grid; gap: 8px; padding: 14px 20px 0; }
.dist-row { display: grid; grid-template-columns: 52px 1fr 24px; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.dist-n { color: var(--ink); font: 500 .82rem var(--mono); text-align: right; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.portrait { display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 14px; background: var(--blue); color: #fff; font: 500 3.4rem var(--mono); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.link-list { margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 2px; color: var(--ink); font-weight: 700; text-decoration: none; }
.link-list a:hover { color: var(--blue); }
.prose { max-width: 66ch; margin-top: 16px; }
.prose p:last-child { margin-bottom: 0; }
.sub { margin: 36px 0 16px; font-size: 1.05rem; font-weight: 800; }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 32px; }
.skill-top { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 7px; color: var(--ink); font-weight: 700; }
.skill-top b { color: var(--blue-deep); font: 500 .95rem var(--mono); }
.track { display: block; overflow: hidden; height: 8px; border-radius: 99px; background: var(--tint); }
.fill { display: block; height: 100%; border-radius: 99px; background: var(--blue); }
.skill-used { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--muted); font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: .86rem; font-weight: 600; }
.tag small { color: var(--muted); font: 500 .75rem var(--mono); }
.journey { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.journey .sub { margin-top: 0; margin-bottom: 30px; }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 22px 24px 20px 0; border-top: 2px solid var(--line); }
.timeline li::before { content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--surface); }
.when { color: var(--blue-deep); font: 500 .9rem var(--mono); }
.timeline h4 { margin: 6px 0; font-size: 1.05rem; font-weight: 800; }
.timeline p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- services and products ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.service { padding: 24px 0; border-top: 1px solid var(--line); }
.service h3 { margin-bottom: 8px; }
.service p { max-width: 52ch; margin: 0; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 24px; }
.product { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.product-img { display: block; aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); background: var(--paper); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.product-body h3 a { color: inherit; text-decoration: none; }
.product-body h3 a:hover { color: var(--blue); }
.product-body p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.product-body .product-buy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }
.price { color: var(--ink); font: 500 1.25rem var(--mono); }

/* ---------- contact and forms ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-copy p { max-width: 46ch; margin: 14px 0 0; color: var(--muted); }
.direct { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.direct a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; }
.direct a:hover { border-color: #9db5ee; }
.direct .ic { width: 20px; height: 20px; color: var(--blue); }
.direct a > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.direct-val { color: var(--muted); font: 500 .86rem var(--mono); overflow-wrap: anywhere; }
.contact-form { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; color: var(--ink); font-size: .92rem; font-weight: 700; }
.field small { color: var(--muted); font-weight: 500; }
.field-wide { grid-column: 1 / -1; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=password], input[type=date], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c3cee0; border-radius: 8px; background: #fff;
  color: #000; -webkit-text-fill-color: #000; caret-color: var(--blue); font: 500 1rem var(--font);
}
textarea { line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #b9cdf8; outline-offset: 0; border-color: var(--blue); }
::placeholder { color: #7b869b; -webkit-text-fill-color: #7b869b; opacity: 1; }
input:-webkit-autofill, textarea:-webkit-autofill { -webkit-text-fill-color: #000; box-shadow: 0 0 0 100px #fff inset; }
input[type=file] { max-width: 100%; color: var(--text); font: 500 .92rem var(--font); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 4px; }
.note { display: block; margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.note p { margin: 8px 0 0; }
.note-ok { border-color: #bfe3d3; background: var(--up-tint); color: #075e3f; }
.note-err { border-color: #f3c1bc; background: var(--danger-tint); color: #8c1d17; }
.note-info { display: flex; align-items: flex-start; gap: 10px; border-color: #ecd58f; background: var(--warn-tint); color: #5f4300; }

/* ---------- inner pages ---------- */
.page { padding-block: clamp(28px, 4vw, 48px) clamp(56px, 7vw, 96px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: .88rem; }
.crumbs a { color: var(--muted); }
.page-head { max-width: 800px; margin-bottom: 32px; }
.page-head .lede { margin-top: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .82rem; font-weight: 600; }
.facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 700; }
.facts dd b { font: 500 .95rem var(--mono); }
.facts-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 28px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 8px 0 48px; }
.gallery-c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-pair .gallery-item:first-child { grid-column: auto; aspect-ratio: 16 / 10; }
.gallery-item { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: zoom-in; }
.gallery-item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.gallery-cap { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 10px; border-radius: 6px; background: rgba(12, 26, 54, .84); color: #fff; font-size: .82rem; font-weight: 600; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.detail-main h2 { font-size: 1.5rem; }
.side-title { margin: 0 0 12px; font-size: .95rem; font-weight: 800; letter-spacing: 0; }
.detail-side > * + .side-title { margin-top: 28px; }
.detail-side .link-list { margin-top: 0; }
.side-cta { margin-top: 28px; padding: 20px; border-radius: 12px; background: var(--tint); }
.side-cta p { margin: 0 0 12px; color: var(--ink); font-weight: 800; }
.video { margin: 28px 0 0; }
.yt { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--ink); color: #fff; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.yt-play { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 99px; background: var(--blue); color: #fff; font-weight: 700; white-space: nowrap; transform: translate(-50%, -50%); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.video figcaption { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.page-reviews { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.page-reviews h2 { margin-bottom: 24px; }

/* ---------- product page, payment, orders ---------- */
.buy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }
.buy-img { overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.buy-img img { width: 100%; height: 100%; object-fit: cover; }
.buy-price { margin: 14px 0 0; color: var(--ink); font: 500 2rem var(--mono); }
.buy-price small { color: var(--muted); font: 500 .85rem var(--font); }
.pay { max-width: 860px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.pay > h2 { margin-bottom: 24px; }
.steps { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding-left: 52px; counter-increment: step; }
.step::before { content: counter(step); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--blue); border-radius: 50%; color: var(--blue-deep); font: 500 .95rem var(--mono); }
.step h3 { margin-bottom: 14px; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.method { position: relative; order: 1; cursor: pointer; }
.method input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.method span { display: flex; flex-direction: column; height: 100%; padding: 13px 15px; border: 1px solid #c3cee0; border-radius: 10px; background: #fff; color: var(--ink); line-height: 1.35; }
.method small { color: var(--muted); font-size: .8rem; }
.method input:checked + span { border-color: var(--blue); background: var(--tint); box-shadow: 0 0 0 1px var(--blue); }
.method input:focus-visible + span { outline: 3px solid #8fb0f5; outline-offset: 2px; }
.pay-panel { display: none; order: 2; grid-column: 1 / -1; min-width: 0; margin-top: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.method:has(input:checked) + .pay-panel { display: block; }
@supports not selector(:has(*)) { .pay-panel { display: block; } }
.pay-panel p { margin: 0 0 10px; }
.pay-panel p:last-child { margin-bottom: 0; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.addr { flex: 1 1 240px; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #000; font: 500 .92rem var(--mono); overflow-wrap: anywhere; }
.pay-warn { color: var(--warn); font-size: .9rem; font-weight: 700; }
.pay-small { margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
.pay-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.status { display: inline-flex; margin: 0 0 14px; padding: 5px 12px; border-radius: 99px; background: var(--warn-tint); color: var(--warn); font-size: .85rem; font-weight: 700; }
.status-paid { background: var(--up-tint); color: var(--up); }
.status-cancelled { background: var(--danger-tint); color: var(--danger); }
.delivery { margin-top: 10px; overflow-wrap: anywhere; }

/* ---------- review form ---------- */
.rate { margin: 0; padding: 0; border: 0; }
.rate legend { margin-bottom: 6px; padding: 0; color: var(--ink); font-size: .92rem; font-weight: 700; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate-stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rate-stars label { padding: 2px; color: #cdd5e2; font-size: 2.7rem; line-height: 1; cursor: pointer; }
.rate-stars input:checked ~ label, .rate-stars label:hover, .rate-stars label:hover ~ label { color: var(--gold); }
.rate-stars input:focus-visible + label { outline: 3px solid #8fb0f5; border-radius: 6px; }
.rate-word { margin: 6px 0 0; color: var(--muted); font-size: .92rem; font-weight: 500; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: 1fr auto; place-items: center; gap: 12px; padding: max(56px, env(safe-area-inset-top, 0px)) 16px 20px; background: rgba(8, 16, 34, .93); }
.lightbox img { max-width: 100%; max-height: 100%; min-height: 0; border-radius: 8px; background: #fff; object-fit: contain; }
.lightbox p { margin: 0; color: #fff; font-size: .92rem; text-align: center; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(8, 16, 34, .6); color: #fff; cursor: pointer; }
.lightbox .lb-close { top: max(10px, env(safe-area-inset-top, 0px)); right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; }
.lightbox .lb-next { right: 12px; top: 50%; }
.lightbox .lb-prev .ic { transform: rotate(90deg); }
.lightbox .lb-next .ic { transform: rotate(-90deg); }

/* ---------- footer ---------- */
.site-foot { padding-block: 44px 32px; border-top: 1px solid var(--line); background: var(--surface); font-size: .92rem; }
.band-white + .site-foot, .page + .site-foot { border-top: 0; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot-id p { max-width: 34ch; margin: 10px 0 0; color: var(--muted); }
.foot-nav, .foot-contact { display: grid; align-content: start; gap: 8px; }
.foot-nav a, .foot-contact a { color: var(--text); font-weight: 600; text-decoration: none; }
.foot-nav a:hover, .foot-contact a:hover { color: var(--blue); }
.foot-contact span { color: var(--muted); font: 500 .82rem var(--mono); }
.disclaimer { max-width: 96ch; margin: 24px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.disclaimer b { color: var(--text); }
.copy { margin: 14px 0 0; color: var(--muted); font-size: .84rem; }

/* ---------- tablet ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .nav-menu { display: block; }
  .menu { position: static; }
  .menu-panel { left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); top: calc(100% + 6px); min-width: 0; }
  .hero-grid, .about, .contact, .detail, .reviews-layout, .buy { grid-template-columns: minmax(0, 1fr); }
  .report { max-width: 560px; }
  .report-flat { position: static; max-width: none; }
  .about-side { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
  .about-side .link-list { margin-top: 0; }
}

/* ---------- phone ---------- */
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .head-row { gap: 8px; min-height: 60px; }
  .brand-name { font-size: .92rem; }
  .menu summary { padding: 0 12px; }
  .nav-menu summary span { display: none; }
  .work-grid, .services, .skills, .pay-fields, .facts-stack { grid-template-columns: minmax(0, 1fr); }
  .work-grid { gap: 36px; }
  .work h3 { font-size: 1.25rem; }
  .quotes, .quotes-2 { columns: 1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .about-side { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
  .portrait { font-size: 2rem; }
  .cta-row .btn { flex: 1 1 auto; }
  .score { font-size: 3rem; }
  .lede { font-size: 1.06rem; }
  .step { padding-left: 0; padding-top: 46px; }
  .step::before { top: 0; }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline li { padding: 0 0 26px 24px; border-top: 0; border-left: 2px solid var(--line); }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { left: -7px; top: 4px; }
  .foot-top { gap: 24px; }
}
@media (max-width: 350px) {
  .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* bar widths: .w0 to .w100 (inline styles are blocked by the site's security policy) */
.w0{width:0%}.w1{width:1%}.w2{width:2%}.w3{width:3%}.w4{width:4%}.w5{width:5%}.w6{width:6%}.w7{width:7%}.w8{width:8%}.w9{width:9%}.w10{width:10%}.w11{width:11%}.w12{width:12%}.w13{width:13%}.w14{width:14%}.w15{width:15%}.w16{width:16%}.w17{width:17%}.w18{width:18%}.w19{width:19%}.w20{width:20%}.w21{width:21%}.w22{width:22%}.w23{width:23%}.w24{width:24%}.w25{width:25%}.w26{width:26%}.w27{width:27%}.w28{width:28%}.w29{width:29%}.w30{width:30%}.w31{width:31%}.w32{width:32%}.w33{width:33%}.w34{width:34%}.w35{width:35%}.w36{width:36%}.w37{width:37%}.w38{width:38%}.w39{width:39%}.w40{width:40%}.w41{width:41%}.w42{width:42%}.w43{width:43%}.w44{width:44%}.w45{width:45%}.w46{width:46%}.w47{width:47%}.w48{width:48%}.w49{width:49%}.w50{width:50%}.w51{width:51%}.w52{width:52%}.w53{width:53%}.w54{width:54%}.w55{width:55%}.w56{width:56%}.w57{width:57%}.w58{width:58%}.w59{width:59%}.w60{width:60%}.w61{width:61%}.w62{width:62%}.w63{width:63%}.w64{width:64%}.w65{width:65%}.w66{width:66%}.w67{width:67%}.w68{width:68%}.w69{width:69%}.w70{width:70%}.w71{width:71%}.w72{width:72%}.w73{width:73%}.w74{width:74%}.w75{width:75%}.w76{width:76%}.w77{width:77%}.w78{width:78%}.w79{width:79%}.w80{width:80%}.w81{width:81%}.w82{width:82%}.w83{width:83%}.w84{width:84%}.w85{width:85%}.w86{width:86%}.w87{width:87%}.w88{width:88%}.w89{width:89%}.w90{width:90%}.w91{width:91%}.w92{width:92%}.w93{width:93%}.w94{width:94%}.w95{width:95%}.w96{width:96%}.w97{width:97%}.w98{width:98%}.w99{width:99%}.w100{width:100%}
