:root {
  --bg: #f7f6f1;
  --paper: #fffef9;
  --ink: #121212;
  --muted: #666866;
  --soft: #eceae1;
  --line: rgba(18,18,18,.12);
  --line-strong: rgba(18,18,18,.22);
  --accent: #dfff1f;
  --accent-strong: #c8ff00;
  --danger: #b42318;
  --success: #1d6b33;
  --pad: clamp(20px, 4.7vw, 72px);
  --display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  line-height: 1.45;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--accent); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 14px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
}
.skip-link:focus { top: 14px; }

.site-header {
  position: sticky;
  z-index: 90;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px var(--pad);
  background: rgba(247,246,241,.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .24s ease, background .24s ease;
}
.site-header.is-scrolled { background: rgba(247,246,241,.94); border-bottom-color: var(--line); }
.brand { font-weight: 950; letter-spacing: -.055em; font-size: clamp(18px, 2vw, 24px); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.nav a, .nav-cta, .text-link { transition: color .2s ease, opacity .2s ease, transform .2s ease, background .2s ease; }
.nav a:hover, .text-link:hover { color: var(--ink); opacity: .72; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav-cta { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.55); white-space: nowrap; }
.nav-cta:hover { background: var(--accent); border-color: transparent; }

.section { width: 100%; max-width: 1440px; margin: 0 auto; padding: clamp(74px, 9vw, 132px) var(--pad); }
.section--compact { padding-top: clamp(20px, 4vw, 60px); }
.eyebrow, .section-label { margin: 0 0 18px; font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #607000; }
h1, h2, h3, p { margin-top: 0; }

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, .72fr);
  gap: clamp(34px, 7vw, 108px);
  align-items: center;
  padding-top: clamp(52px, 7vw, 96px);
}
.hero__rail { position: absolute; left: max(12px, calc(var(--pad) / 2)); top: 23%; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; letter-spacing: .21em; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.hero__rail span { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--accent-strong); box-shadow: 0 0 24px rgba(201,255,0,.75); }

.hero h1 { margin: 0 0 26px; max-width: 930px; font-family: var(--display); font-size: clamp(48px, 8.6vw, 112px); line-height: .91; letter-spacing: -.058em; font-weight: 950; overflow-wrap: normal; hyphens: none; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { margin-top: .17em; max-width: 850px; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: .58em; line-height: 1.02; letter-spacing: -.045em; }
.lead { max-width: 620px; margin-bottom: 32px; color: var(--muted); font-size: clamp(18px, 1.65vw, 24px); line-height: 1.34; }
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.button { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 15px 22px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--accent); color: var(--ink); box-shadow: 0 16px 42px rgba(201,255,0,.18); }
.button--primary:hover { background: var(--accent-strong); }
.text-link { color: var(--muted); font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.hero__visual { position: relative; min-height: clamp(420px, 49vw, 650px); }
.portrait { position: absolute; inset: 0; overflow: hidden; border-radius: clamp(26px, 3vw, 42px); border: 1px solid rgba(18,18,18,.08); background: linear-gradient(135deg, #eceae2, #fffef8 44%, #d8d5ca); box-shadow: 0 38px 100px rgba(17,17,17,.09); }
.portrait::before { content: ""; position: absolute; width: 58%; height: 72%; right: 8%; bottom: 0; border-radius: 48% 48% 0 0; background: radial-gradient(circle at 48% 20%, #f6f2e8 0 13%, transparent 14%), radial-gradient(circle at 44% 31%, #161616 0 3%, transparent 4%), linear-gradient(130deg, #222 0 27%, #706e68 31%, #151515 65%); filter: grayscale(1); clip-path: polygon(28% 0, 80% 4%, 100% 36%, 87% 100%, 0 100%, 2% 22%); opacity: .86; }
.portrait__face { position: absolute; width: 46%; height: 35%; top: 14%; right: 22%; border-radius: 54% 46% 48% 52%; background: linear-gradient(120deg, #faf4e8, #b7b0a6); clip-path: polygon(16% 7%, 82% 0, 100% 34%, 78% 84%, 38% 100%, 8% 72%, 0 32%); filter: grayscale(1) contrast(1.05); }
.portrait__face::after { content: ""; position: absolute; left: 18%; bottom: -22%; width: 44%; height: 36%; background: #d1c9bc; clip-path: polygon(40% 0, 74% 0, 100% 100%, 0 100%); }
.portrait__accent { position: absolute; top: 7%; right: 14%; width: 16%; height: 82%; background: linear-gradient(to bottom, transparent, rgba(223,255,31,.68) 16%, rgba(223,255,31,.86) 54%, transparent); mix-blend-mode: multiply; }
.portrait__caption { position: absolute; left: 28px; bottom: 28px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }

.manifest { padding-top: clamp(50px, 6vw, 96px); }
.manifest__grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(260px, .5fr) minmax(250px, .54fr); gap: clamp(28px, 5vw, 72px); align-items: end; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(42px, 7vw, 86px) 0; }
.manifest h2 { margin: 0; font-size: clamp(42px, 6vw, 82px); line-height: .98; letter-spacing: -.052em; }
.manifest h2 span { display: block; font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.035em; }
.manifest p { margin: 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.42; }
.light-room { min-height: 310px; border-radius: 34px; border: 1px solid var(--line); background: radial-gradient(circle at 65% 55%, rgba(223,255,31,.36), transparent 21%), linear-gradient(90deg, transparent 0 65%, rgba(223,255,31,.72) 66% 69%, transparent 70%), linear-gradient(135deg, #f6f4ed, #dedbd0); box-shadow: inset 0 -70px 90px rgba(18,18,18,.06); position: relative; overflow: hidden; }
.light-room::after { content: ""; position: absolute; left: 12%; right: 16%; bottom: 16%; height: 1px; background: var(--line); transform: skewY(-9deg); }

.section-head { margin-bottom: clamp(36px, 6vw, 76px); }
.section-head h2 { max-width: 900px; margin: 0; font-size: clamp(42px, 6.4vw, 88px); line-height: .98; letter-spacing: -.055em; }
.section-head--row { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-intro { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); }

.service-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-card { min-height: 280px; padding: clamp(22px, 2.4vw, 34px) clamp(15px, 1.7vw, 24px); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.service-card:last-child { border-right: 0; }
.service-card span { color: #718000; font-size: 13px; font-weight: 900; }
.service-card h3 { margin: auto 0 0; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.02; letter-spacing: -.038em; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.work-card { min-height: 430px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.42); overflow: hidden; }
.work-card__image { height: 250px; border-radius: 22px; background: linear-gradient(135deg, #dad7cc, #fdfcf7); position: relative; overflow: hidden; }
.work-card__image::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 74% 34%, rgba(223,255,31,.55), transparent 15%), linear-gradient(135deg, transparent 0 55%, rgba(18,18,18,.18) 56% 57%, transparent 58%); }
.work-card--2 .work-card__image::before { background: radial-gradient(circle at 32% 64%, rgba(223,255,31,.45), transparent 18%), linear-gradient(130deg, #eeeeea, #c7c4b9); }
.work-card--3 .work-card__image::before { background: radial-gradient(circle at 61% 31%, rgba(223,255,31,.52), transparent 11%), repeating-linear-gradient(90deg, rgba(18,18,18,.16) 0 8px, transparent 8px 22px), linear-gradient(135deg, #f1efe9, #bdb9ae); }
.work-card--4 .work-card__image::before { background: radial-gradient(circle at 70% 40%, rgba(223,255,31,.58), transparent 13%), linear-gradient(120deg, transparent 0 40%, rgba(18,18,18,.13) 41% 42%, transparent 43%), linear-gradient(135deg, #f4f2eb, #d8d4c8); }
.work-card p { margin: 22px 0 8px; color: #607000; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 900; }
.work-card h3 { margin: 0 0 12px; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.02; letter-spacing: -.045em; }
.work-card span { color: var(--muted); font-size: 13px; }

.timeline { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.timeline li { position: relative; min-height: 210px; padding: 28px 22px 0 0; border-right: 1px solid var(--line); }
.timeline li:last-child { border-right: 0; }
.timeline li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--accent-strong); border-radius: 999px; box-shadow: 0 0 22px rgba(201,255,0,.64); }
.timeline span { display: block; margin-bottom: 36px; color: #607000; font-weight: 900; }
.timeline strong { display: block; margin-bottom: 10px; font-size: clamp(24px, 2vw, 32px); letter-spacing: -.035em; }
.timeline p { margin: 0; color: var(--muted); font-size: 14px; max-width: 230px; }

.contact { display: grid; grid-template-columns: minmax(0, .78fr) minmax(320px, .68fr); gap: clamp(34px, 7vw, 98px); align-items: start; }
.contact__intro { position: sticky; top: 110px; }
.contact__intro h2 { margin-bottom: 20px; font-size: clamp(42px, 5.8vw, 82px); line-height: 1; letter-spacing: -.055em; max-width: 760px; }
.contact__intro > p { max-width: 560px; color: var(--muted); font-size: clamp(17px, 1.55vw, 22px); }
.contact-details { display: grid; gap: 6px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.contact-details a { color: var(--ink); font-weight: 850; }
.contact-form { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 34px; background: rgba(255,255,255,.56); box-shadow: 0 24px 90px rgba(18,18,18,.06); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 8px; margin-bottom: 16px; }
.contact-form label span { color: var(--muted); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); color: var(--ink); padding: 15px 16px; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
textarea { resize: vertical; min-height: 150px; }
input:focus, textarea:focus, select:focus { border-color: rgba(96,112,0,.6); box-shadow: 0 0 0 4px rgba(223,255,31,.24); background: #fff; }
.hp-field { position: absolute; left: -9999px; height: 1px; width: 1px; overflow: hidden; }

.brand-check {
  margin: 2px 0 2px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(223,255,31,.18), rgba(255,255,255,.62) 44%),
    rgba(255,255,255,.56);
}
.brand-check legend {
  max-width: 760px;
  padding: 0;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.brand-check legend span {
  display: inline-flex;
  margin-right: 10px;
  padding: 5px 8px 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  vertical-align: middle;
}
.brand-check p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.brand-check__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brand-check__option {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 0 !important;
  cursor: pointer;
}
.brand-check__option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.brand-check__option span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(17,17,17,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  color: var(--ink);
  font-size: 13px !important;
  font-weight: 850 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.brand-check__option:hover span {
  transform: translateY(-1px);
  border-color: rgba(17,17,17,.28);
  box-shadow: 0 10px 22px rgba(17,17,17,.06);
}
.brand-check__option input:focus-visible + span {
  outline: 3px solid rgba(223,255,31,.75);
  outline-offset: 3px;
}
.brand-check__option input:checked + span {
  border-color: rgba(17,17,17,.85);
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(167, 205, 0, .22);
}

.consent { grid-template-columns: auto 1fr; align-items: start; gap: 12px !important; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-strong); }
.consent span { color: var(--muted) !important; font-size: 12px !important; line-height: 1.45; letter-spacing: 0 !important; text-transform: none !important; font-weight: 500 !important; }
.consent a { text-decoration: underline; }
.form-footer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { margin: 0; color: var(--muted); font-size: 14px; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--success); }
button:disabled { opacity: .55; cursor: wait; transform: none !important; }

.subhero { padding-bottom: clamp(34px, 5vw, 72px); }
.subhero__title { max-width: 1050px; margin: 0 0 30px; font-size: clamp(52px, 8vw, 112px); line-height: .94; letter-spacing: -.06em; }
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2vw, 26px); }
.portfolio-card { min-height: 440px; padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); border-radius: 34px; background: rgba(255,255,255,.48); display: flex; flex-direction: column; }
.portfolio-card:nth-child(3n+1) { background: linear-gradient(135deg, rgba(255,255,255,.70), rgba(223,255,31,.10)); }
.portfolio-card__top { display: flex; justify-content: space-between; gap: 20px; margin-bottom: auto; color: #607000; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.portfolio-card h2 { max-width: 660px; margin: 60px 0 18px; font-size: clamp(34px, 4vw, 58px); line-height: .98; letter-spacing: -.052em; }
.portfolio-card__lead { max-width: 720px; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.36; color: var(--ink); }
.portfolio-card__desc { color: var(--muted); max-width: 760px; }
.portfolio-card__scope { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; }
.note-box { max-width: 980px; margin: 0 auto; padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line); border-radius: 34px; background: rgba(255,255,255,.55); }
.note-box h1, .note-box h2 { margin: 0 0 18px; font-size: clamp(38px, 5vw, 70px); line-height: 1; letter-spacing: -.052em; }
.note-box p { color: var(--muted); font-size: 18px; }
.simple-page { min-height: 100vh; display: grid; place-items: center; padding: var(--pad); }
.legal-page { max-width: 980px; }
.legal-page h1 { font-size: clamp(46px, 7vw, 92px); line-height: .95; letter-spacing: -.055em; }
.legal-page h2 { margin-top: 42px; font-size: 26px; letter-spacing: -.03em; }
.legal-page p { color: var(--muted); font-size: 17px; }
.legal-note { margin-top: 42px; padding: 18px; border-radius: 18px; background: rgba(223,255,31,.12); border: 1px solid rgba(96,112,0,.18); }

.site-footer { display: grid; grid-template-columns: 1.2fr 1.1fr 1fr auto; gap: 24px; align-items: start; max-width: 1440px; margin: 0 auto; padding: 34px var(--pad) 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer strong { display: block; color: var(--ink); font-size: 18px; letter-spacing: -.04em; }
.site-footer p { margin: 4px 0 0; }
.site-footer nav, .footer-contact { display: grid; gap: 7px; }
.site-footer a:hover { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .service-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-card:nth-child(3n) { border-right: 0; }
  .service-card { border-bottom: 1px solid var(--line); }
  .service-card:nth-last-child(-n+3) { border-bottom: 0; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: 1fr; border-top: 0; }
  .timeline li { min-height: 0; padding: 22px 0 22px 34px; border-right: 0; border-left: 1px solid var(--line); }
  .timeline li::before { top: 30px; left: -6px; }
  .timeline span { margin-bottom: 12px; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; padding-block: 14px; }
  .nav { display: none; }
  .nav-cta { padding: 9px 13px; font-size: 11px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero__rail { display: none; }
  .hero h1 { font-size: clamp(43px, 12.6vw, 72px); line-height: .94; letter-spacing: -.048em; max-width: 100%; }
  .hero h1 em { font-size: .62em; line-height: 1.04; letter-spacing: -.035em; }
  .lead { font-size: clamp(17px, 4.6vw, 22px); }
  .hero__visual { min-height: 380px; }
  .manifest__grid { grid-template-columns: 1fr; align-items: start; }
  .light-room { min-height: 230px; }
  .section-head--row { display: grid; align-items: start; }
  .service-list { grid-template-columns: 1fr 1fr; }
  .service-card, .service-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .service-card:nth-child(2n) { border-right: 0; }
  .service-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .service-card:nth-last-child(-n+2) { border-bottom: 0; }
  .contact { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
  .contact__intro h2 { font-size: clamp(39px, 11vw, 64px); line-height: 1.02; letter-spacing: -.048em; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  :root { --pad: 18px; }
  .section { padding-top: 68px; padding-bottom: 68px; }
  .brand { font-size: 18px; }
  .nav-cta { display: none; }
  .hero { padding-top: 42px; }
  .eyebrow, .section-label { font-size: 10px; letter-spacing: .14em; margin-bottom: 14px; }
  .hero h1 { font-size: clamp(39px, 11.2vw, 54px); line-height: .98; letter-spacing: -.038em; margin-bottom: 20px; }
  .hero h1 em { font-size: .66em; line-height: 1.08; letter-spacing: -.025em; margin-top: .2em; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .button { width: 100%; padding: 15px 18px; }
  .hero__visual { min-height: 330px; }
  .portrait { border-radius: 26px; }
  .portrait__caption { left: 18px; bottom: 18px; }
  .manifest h2, .section-head h2, .contact__intro h2, .subhero__title, .note-box h1, .note-box h2 { font-size: clamp(36px, 10.3vw, 52px); line-height: 1.03; letter-spacing: -.04em; }
  .service-list, .work-grid, .form-grid, .site-footer { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(2n), .service-card:nth-child(3n), .service-card:nth-last-child(-n+2), .service-card:nth-last-child(-n+3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-card:last-child { border-bottom: 0; }
  .service-card { min-height: 210px; }
  .work-card { min-height: 360px; border-radius: 24px; }
  .work-card__image { height: 190px; }
  .contact-form { border-radius: 24px; padding: 18px; }
  .brand-check { padding: 15px; border-radius: 18px; }
  .brand-check__options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .brand-check__option span { width: 100%; justify-content: center; min-height: 40px; padding: 9px 10px; }
  .consent { grid-template-columns: 1fr; }
  .consent input { width: 20px; }
  .portfolio-card { min-height: 0; border-radius: 24px; }
  .portfolio-card__top { display: grid; gap: 8px; }
  .portfolio-card h2 { margin-top: 44px; font-size: clamp(32px, 9.8vw, 48px); }
  .simple-page { display: block; padding-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* BEDNAREK CREW v5.3 — rich portfolio updates */
.portfolio-grid--rich {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.portfolio-card--rich {
  min-height: 520px;
  gap: 0;
}
.portfolio-media {
  margin: clamp(24px, 3vw, 42px) 0 0;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(18,18,18,.10);
  background: #111;
  box-shadow: 0 22px 70px rgba(18,18,18,.12);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 88px;
  border-radius: 16px;
  border: 1px solid rgba(18,18,18,.10);
  background: #111;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  min-height: 88px;
  object-fit: cover;
  display: block;
  opacity: .74;
  transform: scale(1.02);
  transition: opacity .18s ease, transform .18s ease;
}
.video-thumb::before {
  content: "▶";
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #111;
  font-size: 11px;
  font-weight: 900;
}
.video-thumb span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0,0,0,.62);
}
.video-thumb:hover img {
  opacity: .95;
  transform: scale(1.06);
}
.portfolio-card--rich h2 {
  margin-top: clamp(34px, 4vw, 58px);
}
.portfolio-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.portfolio-stats li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(18,18,18,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.54);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}
.portfolio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}
.portfolio-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(18,18,18,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.64);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.portfolio-links a::after {
  content: "↗";
  font-size: 12px;
}
.portfolio-links a:hover {
  transform: translateY(-1px);
  background: var(--accent);
  border-color: transparent;
}
.portfolio-card--rich .portfolio-card__scope {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .portfolio-grid--rich { grid-template-columns: 1fr; }
  .portfolio-card--rich { min-height: 0; }
}

@media (max-width: 620px) {
  .video-frame { border-radius: 18px; }
  .video-thumbs { grid-template-columns: 1fr 1fr; }
  .video-thumb, .video-thumb img { min-height: 94px; }
  .portfolio-stats li { width: 100%; justify-content: center; text-align: center; }
  .portfolio-links { display: grid; grid-template-columns: 1fr; }
  .portfolio-links a { justify-content: center; text-align: center; }
}

/* BEDNAREK CREW v5.5 — portfolio image strips */
.portfolio-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: clamp(22px, 2.4vw, 34px) 0 0;
}
.portfolio-image {
  margin: 0;
  overflow: hidden;
  min-height: 160px;
  border-radius: 20px;
  border: 1px solid rgba(18,18,18,.10);
  background: rgba(255,255,255,.42);
  box-shadow: 0 18px 50px rgba(18,18,18,.08);
}
.portfolio-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  transition: transform .22s ease, filter .22s ease;
}
.portfolio-image:hover img {
  transform: scale(1.035);
  filter: contrast(1.03);
}
.portfolio-media + .portfolio-images {
  margin-top: 12px;
}
@media (max-width: 620px) {
  .portfolio-images { grid-template-columns: 1fr; }
  .portfolio-image, .portfolio-image img { min-height: 210px; }
}

/* BEDNAREK CREW v5.7 — stable photo cards and cleaner video thumbs */
.work-card__image {
  background: #111;
  aspect-ratio: 16 / 10;
  height: auto;
}
.work-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transform: scale(1.01);
  transition: transform .28s ease, filter .28s ease, opacity .28s ease;
  opacity: .9;
}
.work-card:hover .work-card__image img {
  transform: scale(1.045);
  filter: grayscale(.55) contrast(1.06);
  opacity: 1;
}
.work-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.22));
  pointer-events: none;
}
.portfolio-card--rich {
  overflow: hidden;
}
.portfolio-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.portfolio-image {
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: #111;
}
.portfolio-image img {
  min-height: 0;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.82) contrast(1.06);
}
.portfolio-image:hover img {
  filter: grayscale(.45) contrast(1.06);
}
.video-thumbs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.video-thumb, .video-thumb img {
  min-height: 112px;
}
.video-thumb img {
  filter: grayscale(.65) contrast(1.08);
}
@media (max-width: 620px) {
  .portfolio-image, .portfolio-image img { min-height: 0; }
  .portfolio-image { aspect-ratio: 16 / 10; }
  .video-thumbs { grid-template-columns: 1fr; }
}

/* v5.8 — zdjęcia realizacji z lokalnych folderów, bez wyszarzania */
.work-card__image img,
.work-card:hover .work-card__image img,
.portfolio-image img,
.portfolio-image:hover img,
.video-thumb img {
  filter: none !important;
}
.work-card__image::before,
.work-card__image::after {
  pointer-events: none;
}
.work-card__image {
  background: #ece9df;
}
.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-images {
  align-items: stretch;
}
.portfolio-image {
  background: #ece9df;
  aspect-ratio: 16 / 10;
}
.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
