/*
  Dreyriops: dark, gothic, professional.
  Near-black ground, bone text, blood red, a little tarnished brass. Cinzel for headings (carved-stone capitals),
  Cormorant Garamond italic for the voice, Inter for everything you have to read quickly.
  No inline styles anywhere, so the strict Content-Security-Policy in _headers can stay strict.
*/
:root {
  --bg: #0b0809;
  --bg-2: #120d0f;
  --panel: #161012;
  --panel-2: #1c1417;
  --line: #2e2125;
  --line-hi: #4a2c31;
  --ink: #ece4df;
  --muted: #b3a6a1;
  --red: #c90d23;
  --red-hi: #e8303f;
  --red-ink: #ff7b86; /* red for text on black: 7:1 */
  --brass: #b79a62;
  --radius: 10px;
  --display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --voice: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65;
  /* faint grain, like old paper in a dark room */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; }
a { color: var(--red-ink); text-underline-offset: 3px; }
a:hover { color: #ffa0a8; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: .04em; line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.voice { font-family: var(--voice); font-style: italic; font-weight: 500; font-size: clamp(1.35rem, 3vw, 1.8rem); color: var(--ink); }
.muted { color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 8, 9, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: .7; }
.bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.brand img { height: 38px; width: 38px; display: block; border-radius: 7px; }
.brand-text { font-family: var(--display); font-weight: 600; font-size: 1.08rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); }
@media (max-width: 420px) { .brand-text { font-size: .92rem; letter-spacing: .18em; } }
nav.main { margin-left: auto; display: flex; align-items: center; gap: 6px; }
nav.main a { font-family: var(--display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 6px; }
nav.main a:hover { color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-hi); color: var(--ink); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.menu-btn .icon { display: block; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  nav.main { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 20px 16px; display: none; }
  nav.main.open { display: flex; }
  nav.main a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  nav.main a[aria-current="page"] { box-shadow: none; color: var(--red-ink); }
}

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; font-size: .86rem; font-weight: 600;
  background: var(--red); color: #fff; border: 1px solid var(--red-hi); padding: 13px 24px; border-radius: 6px; text-decoration: none; cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; }
.btn:hover { background: var(--red-hi); color: #fff; box-shadow: 0 0 24px rgba(232, 48, 63, .35); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-hi); }
.btn.ghost:hover { background: var(--panel-2); border-color: var(--brass); box-shadow: none; }
.btn.small { padding: 9px 16px; font-size: .76rem; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ── hero ── */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 9vw, 100px); text-align: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background: radial-gradient(ellipse at 50% 38%, rgba(201, 13, 35, .32), rgba(120, 8, 22, .12) 38%, transparent 66%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 120%, transparent 55%, var(--bg) 100%); }
.rune-ring { position: absolute; left: 50%; top: 46%; width: min(980px, 130vw); transform: translate(-50%, -50%); z-index: -1; opacity: .5; color: var(--line-hi); }
@media (prefers-reduced-motion: no-preference) { .rune-ring { animation: slow-turn 240s linear infinite; } }
@keyframes slow-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero h1 { margin: 0; line-height: 0; font-size: 0; }
.hero .logo { width: min(560px, 88%); height: auto; margin: 0 auto 8px; display: block; filter: drop-shadow(0 6px 30px rgba(201, 13, 35, .25)); }
.hero .voice { margin: 10px auto 14px; }
.hero .lede { max-width: 640px; margin: 0 auto 28px; color: var(--muted); font-size: 1.08rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.trades { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; margin: 34px auto 0; padding: 0; list-style: none; font-family: var(--display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.trades li + li::before { content: "\2726"; color: var(--red); margin-right: 22px; }
@media (max-width: 640px) { .trades li + li::before { display: none; } .trades { gap: 6px 16px; } }

/* ── sections ── */
section.block { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
section.block.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--red-ink); margin: 0 0 12px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--red); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }
.divider { display: block; margin: 0 auto; color: var(--line-hi); width: 260px; height: 28px; }

/* cards */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: border-color .25s, transform .25s; }
.card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; background: linear-gradient(90deg, var(--red), transparent); opacity: .85; }
.card:hover { border-color: var(--line-hi); }
@media (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-3px); } }
.card .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-hi); color: var(--red-ink); background: rgba(201, 13, 35, .08); margin-bottom: 16px; font-size: 1.35rem; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: .8em; }
.card a.more { font-family: var(--display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }

.steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding: 22px 20px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.steps li::before { content: counter(s, upper-roman); display: block; font-family: var(--display); font-size: 1.7rem; color: var(--red); margin-bottom: 6px; }
.steps strong { display: block; font-family: var(--display); letter-spacing: .05em; margin-bottom: 4px; }
.steps span { color: var(--muted); }

.where { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.where > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--panel); }
.where h3 { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.where h3 .icon { color: var(--red-ink); }
.where ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }

.cta-band { text-align: center; padding: clamp(40px, 6vw, 64px) 24px; border: 1px solid var(--line-hi); border-radius: 14px;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 13, 35, .28), transparent 70%), var(--panel); position: relative; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--brass); opacity: .7; }
.cta-band::before { left: 10px; top: 10px; border-right: 0; border-bottom: 0; }
.cta-band::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }

/* services page */
.service { display: grid; gap: 28px; grid-template-columns: 1fr; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-of-type { border-top: 0; }
@media (min-width: 860px) { .service { grid-template-columns: 1.15fr 1fr; gap: 48px; } }
.service header { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.service header .ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-hi); color: var(--red-ink); font-size: 1.5rem; background: rgba(201, 13, 35, .08); flex: none; }
.service header h2 { margin: 0; }
.service .good { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px 22px; align-self: start; }
.service .good h3 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.service .good ul { margin: 0 0 14px; padding-left: 1.1rem; color: var(--muted); }
.service .good ul:last-child { margin-bottom: 0; }
.tag { display: inline-block; font-family: var(--display); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--line-hi); color: var(--brass); margin: 0 6px 6px 0; }

/* gallery */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.chip { font-family: var(--display); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; background: transparent; color: var(--muted); border: 1px solid var(--line-hi); border-radius: 30px; padding: 8px 16px; cursor: pointer; }
.chip:hover { color: var(--ink); border-color: var(--brass); }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red-hi); color: #fff; }
.shots { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.shot[hidden] { display: none; }
.shot .frame { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--line-hi); background: repeating-linear-gradient(135deg, #130e10 0 14px, #161012 14px 28px); position: relative; }
.shot .frame img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.shot .frame .icon { width: 44px; height: 44px; }
.shot .frame small { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-family: var(--display); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: #6d5a5d; }
.shot figcaption { padding: 12px 16px; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); }
.shot figcaption b { color: var(--ink); font-weight: 600; }

/* page header (inner pages) */
.page-head { padding: clamp(44px, 7vw, 84px) 0 clamp(28px, 4vw, 48px); position: relative; overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: -40% 0 auto; height: 160%; z-index: -1; background: radial-gradient(ellipse at 20% 0%, rgba(201, 13, 35, .2), transparent 60%); }
.page-head p { max-width: 640px; color: var(--muted); font-size: 1.08rem; }

/* forms */
form.quote { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.row2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
label, .label { font-family: var(--display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
label .req { color: var(--red-ink); }
.hint { font-size: .88rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #0f0b0c; border: 1px solid var(--line-hi); border-radius: 8px; padding: 12px 14px; }
textarea { min-height: 150px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red-hi); box-shadow: 0 0 0 3px rgba(232, 48, 63, .25); }
.drop { border: 1px dashed var(--line-hi); border-radius: 8px; padding: 18px; background: #0f0b0c; display: grid; gap: 8px; }
.drop input[type="file"] { color: var(--muted); font: inherit; width: 100%; }
.drop input[type="file"]::file-selector-button { font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-hi); border-radius: 6px; padding: 9px 14px; margin-right: 12px; cursor: pointer; }
.photo-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line-hi); background: var(--panel-2); }
.status[hidden] { display: none; }
.status.ok { border-color: #2f7a4a; background: #0f1d15; color: #b9efc9; }
.status.bad { border-color: var(--red-hi); background: #25090d; color: #ffc7cc; }
.side { display: grid; gap: 20px; align-content: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { color: var(--red-ink); margin-top: 3px; font-size: 1.2rem; }
.contact-list b { display: block; font-family: var(--display); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.contact-list a { color: var(--ink); }
.layout-2 { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .layout-2 { grid-template-columns: 1.4fr 1fr; gap: 48px; } }
.notice { border-left: 3px solid var(--red); padding: 10px 16px; background: var(--panel); border-radius: 0 8px 8px 0; color: var(--muted); font-size: .95rem; }

/* footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: #080607; padding: 44px 0 28px; }
.foot { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
.foot .foot-logo { height: 78px; width: auto; margin-bottom: 14px; }
.foot h3 { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.fine { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: #7e716d; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media print { .site-header, .site-footer, .cta-band, .rune-ring { display: none; } body { background: #fff; color: #000; } }
