@font-face {
  font-family: "Newsreader Display";
  src: url("/assets/fonts/newsreader-display-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF;
}

@font-face {
  font-family: "Newsreader Display";
  src: url("/assets/fonts/newsreader-display-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic-latin-ext.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF;
}

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Switzer";
  src: url("/assets/fonts/switzer-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("/assets/fonts/switzer-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("/assets/fonts/switzer-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f7f4ef;
  --paper-deep: #ebe5dc;
  --paper-soft: #f1ece5;
  --ink: #161310;
  --ink-rgb: 22 19 16;
  --oxblood: #722f37;
  --oxblood-rgb: 114 47 55;
  --line: rgb(var(--ink-rgb) / 0.18);
  --line-soft: rgb(var(--ink-rgb) / 0.1);
  --muted: rgb(var(--ink-rgb) / 0.66);
  --header-h: 76px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section-y: clamp(5rem, 10vw, 9rem);
  --serif: "Newsreader Display", Georgia, serif;
  --sans: "Switzer", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.72, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-color: var(--oxblood) var(--paper-deep);
  scrollbar-width: thin;
}

html.nav-open,
html.nav-open body { overflow: hidden; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--paper-deep); }
body::-webkit-scrollbar-thumb { background: var(--oxblood); border: 3px solid var(--paper-deep); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, blockquote, figure, fieldset { margin: 0; }
fieldset { min-width: 0; padding: 0; border: 0; }
[hidden] { display: none !important; }

::selection { color: var(--paper); background: var(--oxblood); }

:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  left: 1rem;
  top: 1rem;
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

/* Header */

.topbar {
  position: relative;
  z-index: 60;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.bar {
  width: 100%;
  height: 100%;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  width: clamp(7rem, 10vw, 9rem);
  min-height: 44px;
  color: var(--ink);
}

.brand-link svg { width: 100%; height: auto; }

.top-actions,
.site-nav {
  display: flex;
  align-items: center;
}

.top-actions { gap: clamp(1.6rem, 3vw, 3.25rem); }
.site-nav { gap: clamp(1.35rem, 2.4vw, 2.7rem); }

.site-nav a,
.top-mail,
.site-footer a,
.panel-foot a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a::after,
.site-footer nav a::after {
  position: absolute;
  content: "";
  left: 0;
  right: 100%;
  bottom: -0.35rem;
  height: 1px;
  background: currentColor;
  transition: right 220ms var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after,
.site-footer nav a:hover::after { right: 0; }

.top-mail {
  min-height: 44px;
  padding: 0.7rem 1.05rem;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.top-mail:hover { color: var(--paper); background: var(--oxblood); border-color: var(--oxblood); }

.menu { display: none; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }

/* Hero: living contact sheet */

.hero {
  --c1: 1fr; --c2: 1fr; --c3: 1fr; --r1: 1fr; --r2: 1fr; --r3: 1fr;
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, var(--c1)) minmax(0, var(--c2)) minmax(0, var(--c3));
  grid-template-rows: minmax(0, var(--r1)) minmax(0, var(--r2)) minmax(0, var(--r3));
  gap: clamp(0.25rem, 0.55vw, 0.55rem);
  padding: clamp(0.65rem, 1.2vw, 1.25rem);
  background: var(--paper);
}

/* the nine tiles sit on the hero's own tracks, so the headline tile shares every seam */
.hero-gallery {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  overflow: hidden;
}

.hero-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--paper-deep);
}

.hero-tile::after {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
  background: rgb(247 244 239 / 0.38);
  box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / 0.08);
  transition: background-color 450ms ease;
}
.hero-tile.is-focus::after { background: transparent; }

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
}

.hero-tile:nth-child(1) img { object-position: 100% 55%; }
.hero-tile:nth-child(2) img { object-position: 50% 45%; }
.hero-tile:nth-child(3) img { object-position: 85% 50%; }
.hero-tile:nth-child(4) img { object-position: 50% 52%; }
.hero-tile:nth-child(5) img { object-position: 53% 48%; }
.hero-tile:nth-child(6) img { object-position: 50% 88%; }
.hero-tile:nth-child(7) img { object-position: 78% 80%; }
.hero-tile:nth-child(8) img { object-position: 55% 48%; }
.hero-tile:nth-child(9) img { object-position: 90% 60%; }

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.4rem, 3.2vw, 3.5rem);
  pointer-events: none;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}

.hero h1 {
  max-width: 10.8ch;
  font-family: var(--serif);
  font-size: clamp(3.6rem, min(6.8vw, 9.5vh), 7.5rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero h1 .l1,
.hero h1 .e3,
.hero h1 .e5,
.hero h1 .e7 { display: inline; }
html:lang(en) .hero h1 { max-width: 13ch; }
/* CS in three lines on the wide headline tile: Moderní weby / a aplikace, vytvořené / rychle a precizně. */
.hero h1 { max-width: none; }
.hero h1 .l1::after, .hero h1 .l3::after { content: '\A'; white-space: pre; }
/* the sheet is exactly one screen: the tile row under the headline stays on the fold */
@media (min-width: 760px) {
  .hero { height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 0; }
}

.hero-sub {
  max-width: 36ch;
  margin-top: clamp(1.15rem, 2.5vh, 2rem);
  color: var(--muted);
  font-size: clamp(0.95rem, min(1.25vw, 2.1vh), 1.15rem);
  line-height: 1.45;
}

.hero-sub span { display: block; }

.hero-ctas {
  margin-top: clamp(1.25rem, 3vh, 2.4rem);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  pointer-events: auto;
}

.btn {
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: var(--oxblood);
  border: 1px solid var(--oxblood);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms var(--ease);
}

.btn:hover { color: var(--oxblood); background: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-line { color: var(--ink); background: transparent; border-color: var(--line); }
.btn-line:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .js .hero-gallery { animation: field-settle 900ms var(--ease) both; }
  .hero-tile img { transition: filter 350ms ease; }
  .hero-tile.is-focus img { filter: saturate(1.08) contrast(1.025); }
}

@keyframes field-settle {
  from { gap: clamp(0.7rem, 1.25vw, 1.35rem); }
  to { gap: clamp(0.25rem, 0.55vw, 0.55rem); }
}

/* Work */

.work-wrap {
  position: relative;
  background: var(--paper);
}

.portfolio-head,
.sheet-inner,
.anchor-inner,
.contact-inner,
.foot,
.page-head,
.page-content {
  width: min(100%, 100rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.portfolio-head {
  padding-top: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(1.7rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}

.portfolio-head h2,
.sect-head h2,
.page-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.portfolio-head h2 { font-size: clamp(3.4rem, 7vw, 7rem); line-height: 0.95; }

.work {
  --main-y: 15%;
  --detail-y: 62%;
  width: min(100%, 100rem);
  min-height: min(62rem, 96svh);
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 7.5rem) var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.4rem, 3vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.work-visual {
  grid-column: 1 / 9;
  min-width: 0;
  height: clamp(30rem, 68svh, 48rem);
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(7rem, 0.85fr);
  grid-template-rows: minmax(0, 1.45fr) minmax(0, 0.65fr);
  gap: clamp(0.45rem, 0.8vw, 0.8rem);
}

.shot {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--paper-deep);
}

.shot::after {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / 0.12);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot picture { display: block; width: 100%; height: 100%; }

.shot-main { grid-row: 1 / -1; }
.shot-main img { object-position: center var(--main-y); }
.shot-phone img { object-position: center var(--phone-y, 52%); }
.shot-detail img { object-position: center var(--detail-y); }

.work-copy {
  grid-column: 9 / -1;
  min-width: 0;
  align-self: end;
  padding-bottom: 0.25rem;
}

.work:nth-of-type(even) .work-visual { grid-column: 5 / -1; }
.work:nth-of-type(even) .work-copy { grid-column: 1 / 5; grid-row: 1; }

.work--panorama {
  grid-template-rows: auto auto;
  min-height: auto;
}

.work--panorama .work-visual {
  grid-column: 1 / -1;
  height: clamp(28rem, 70svh, 51rem);
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.72fr) minmax(0, 0.72fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.work--panorama .shot-main { grid-row: 1 / -1; }
.work--panorama .shot-phone { grid-column: 2; grid-row: 1 / -1; }
.work--panorama .shot-detail { grid-column: 3; grid-row: 1 / -1; }

.work--panorama .work-copy {
  grid-column: 2 / 12;
  grid-row: 2;
  padding-top: clamp(0.75rem, 1.6vw, 1.4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
}

.work--panorama .wt-body { margin-top: 0; }

.work:nth-of-type(3n + 1) { background: var(--paper-soft); }

.work h3 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 4.7vw, 5.2rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.cat,
.status,
.pwho,
.tariff-stamp {
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0.045em;
}

.cat { margin-top: 0.9rem; color: var(--muted); }

.status {
  width: max-content;
  margin-top: 0.8rem;
  padding-bottom: 0.2rem;
  color: var(--oxblood);
  border-bottom: 1px solid currentColor;
}

.wt-body { margin-top: clamp(2rem, 4.5vw, 4.5rem); }
.desc { max-width: 35rem; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.6; }

.proof {
  max-width: 36rem;
  margin-top: 1.8rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--oxblood);
}

.pquote {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-style: italic;
  font-weight: 450;
  line-height: 1.25;
}

.pwho { display: block; margin-top: 0.8rem; color: var(--muted); }

.visit,
.lnk {
  width: max-content;
  margin-top: 1.8rem;
  display: inline-block;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--oxblood), var(--oxblood)) left bottom / 100% 1px no-repeat;
  transition: color 180ms ease, background-size 220ms var(--ease);
}

.visit:hover,
.lnk:hover { color: var(--oxblood); background-size: 35% 1px; }

#prace-topplachty { --main-y: 18%; --detail-y: 82%; --phone-y: 55%; }
#prace-karafrydlant { --main-y: 14%; --detail-y: 80%; --phone-y: 50%; }
#prace-ksirova { --main-y: 17%; --detail-y: 86%; --phone-y: 58%; }
#prace-dagmarkl { --main-y: 50%; --detail-y: 50%; --phone-y: 45%; }
#prace-etbar { --main-y: 17%; --detail-y: 80%; --phone-y: 55%; }
#prace-arka { --main-y: 19%; --detail-y: 85%; --phone-y: 60%; }
#prace-soulfood { --main-y: 14%; --detail-y: 78%; --phone-y: 52%; }
#prace-vascumed { --main-y: 13%; --detail-y: 88%; --phone-y: 56%; }
#prace-veldon-edit { --main-y: 50%; --detail-y: 50%; --phone-y: 50%; }

/* Services and team */

.sheet { padding-block: var(--section-y); }
.services { background: var(--paper-deep); }
.team { background: var(--paper); }

.sheet-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}

.sect-head { grid-column: 1 / 5; }
.sect-head h2 { font-size: clamp(3.4rem, 6vw, 6.5rem); line-height: 0.95; }

.svc-list,
.people { grid-column: 5 / -1; min-width: 0; }

.svc { border-top: 1px solid var(--line); display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; padding-block: 1.6rem; }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc summary { pointer-events: none; cursor: default;
  min-height: 4.6rem;
  padding-block: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
}
.svc summary::-webkit-details-marker { display: none; }

.s-t {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.s-x {
  display: none !important;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--oxblood);
  border: 0;
  font-size: 1.9rem;
  line-height: 1;
  transition: transform 220ms var(--ease), color 180ms ease, background-color 180ms ease;
}

.svc[open] .s-x { transform: rotate(45deg); }
.s-body { max-width: 45rem; padding: 0.2rem 4.4rem 1.7rem 0; color: var(--muted); line-height: 1.7; }

.person {
  min-height: 7.2rem;
  padding-block: 1rem;
  display: grid;
  grid-template-columns: 88px minmax(10rem, 0.75fr) minmax(0, 1.4fr) 44px;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.person:last-child { border-bottom: 1px solid var(--line); }
.photo { width: 80px; height: 80px; overflow: hidden; background: var(--paper-deep); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.person-id { min-width: 0; }
.name { display: block; font-family: var(--serif); font-size: 1.65rem; line-height: 1; }
.role { display: block; margin-top: 0.55rem; color: var(--muted); font-size: 0.8rem; }
.person p { grid-column: 3; grid-row: 1; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }
.li-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: color 180ms ease, background-color 180ms ease;
}
.li-link { border: 0 !important; color: var(--muted); }
.li-link:hover { color: var(--paper); background: var(--ink); }
.li-link svg { width: 17px; height: 17px; }

.anchor-band {
  padding-block: clamp(4rem, 8vw, 8rem);
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
}
.anchor-inner { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.anchor-inner h2 {
  max-width: 15ch;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 5.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.contact {
  min-height: min(34rem, 70svh);
  padding-block: clamp(5rem, 10vw, 9rem);
  display: flex;
  align-items: center;
  color: var(--paper);
  background: var(--oxblood);
}
.contact-inner { width: 100%; }
.kicker { color: rgb(247 244 239 / 0.75); font-size: 0.9rem; font-weight: 500; }
.fit-mail {
  max-width: 100%;
  margin-top: 0.7rem;
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  text-decoration-thickness: 1px;
  text-decoration-thickness: .035em;
  text-underline-offset: 0.1em;
}

/* Footer */

.site-footer { background: var(--ink); color: var(--paper); }
.foot { padding-top: 2.2rem; padding-bottom: 2.2rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.1rem 2.2rem; }
.legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  color: rgb(247 244 239 / 0.62);
  border-top: 1px solid rgb(247 244 239 / 0.18);
  font-size: 0.78rem;
}
.legal a { text-decoration: none; }

/* Inner pages */

.inner .topbar { border-bottom-color: var(--line); }
.page-top { padding-block: clamp(5rem, 10vw, 9rem) clamp(3.5rem, 7vw, 6rem); }
.page-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: end; }
.page-head h1 { grid-column: 1 / 8; font-size: clamp(4rem, 9vw, 9rem); line-height: 0.88; }
.lede { grid-column: 8 / -1; max-width: 35rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }

.rates-wrap,
.legal-wrap { padding-bottom: var(--section-y); }
.rates-wrap .page-content,
.legal-wrap .page-content { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
.rates { grid-column: 3 / -1; border-top: 1px solid var(--ink); }
.rate {
  padding-block: clamp(1.6rem, 3.5vw, 3rem);
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(11rem, 0.6fr) minmax(0, 1.35fr);
  align-items: start;
  gap: clamp(1.2rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.rate h2 { font-family: var(--serif); font-size: clamp(1.65rem, 2.8vw, 2.8rem); font-weight: 500; line-height: 1.05; }
.price { color: var(--oxblood); font-size: 0.95rem; font-weight: 600; }
.rate .desc { color: var(--muted); font-size: 0.96rem; line-height: 1.65; }
.rates-wrap .tariff-stamp { grid-column: 3 / -1; margin-top: 1.2rem; color: var(--muted); }

.legal-prose { grid-column: 4 / 11; }
.legal-prose h2 {
  margin-top: 3.5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { margin-top: 1rem; color: var(--muted); line-height: 1.78; }
.legal-prose a { text-decoration-color: var(--oxblood); text-underline-offset: 0.18em; }
.legal-wrap .tariff-stamp { grid-column: 4 / 11; margin-top: 2.5rem; color: var(--muted); }

.error-main {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  align-items: center;
  background:
    linear-gradient(90deg, transparent 0 49.95%, var(--line-soft) 49.95% 50.05%, transparent 50.05%),
    var(--paper);
}
.error-main .kicker { grid-column: 1 / -1; align-self: start; color: var(--oxblood); }
.error-title {
  grid-column: 2 / 11;
  font-family: var(--serif);
  font-size: clamp(4rem, 11vw, 12rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.06em;
}
.error-main > p:last-child { grid-column: 8 / -1; justify-self: end; }

/* Contact dialog */

.contact-dialog {
  position: relative;
  width: min(42rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100svh - 2rem);
  margin: auto;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 2rem 7rem rgb(var(--ink-rgb) / 0.38);
}
.contact-dialog::backdrop { background: rgb(var(--ink-rgb) / 0.72); }
.cd-close {
  position: absolute;
  z-index: 2;
  top: 0.8rem;
  right: 0.8rem;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.cd-step { padding-top: 1rem; }
.cd-progress { color: var(--oxblood); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; }
.cd-step legend,
.cd-step h2 {
  max-width: 14ch;
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.cd-choices { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.cd-choices legend { grid-column: 1 / -1; margin: 0 0 1.2rem; }
.cd-choice { position: relative; min-width: 0; }
.cd-choice input { position: absolute; opacity: 0; }
.cd-choice span {
  min-height: 54px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  cursor: pointer;
}
.cd-choice input:checked + span { color: var(--paper); background: var(--oxblood); border-color: var(--oxblood); }
.cd-choice input:focus-visible + span { outline: 2px solid var(--oxblood); outline-offset: 3px; }
.cd-step-error,
.cd-status { min-height: 1.5em; margin-top: 0.8rem; color: var(--oxblood); font-size: 0.88rem; }
.cd-actions { margin-top: 1.6rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem; }
.cd-handoff .cd-actions { margin-top: 2rem; }
.cd-field { margin-top: 1.1rem; display: block; }
.cd-field > span { display: block; margin-bottom: 0.35rem; font-size: 0.82rem; font-weight: 500; }
.cd-field input,
.cd-field textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
}
.cd-field textarea { min-height: 7rem; resize: vertical; }
.cd-mail { margin: 0 0 0 auto; }
.cd-hp { position: absolute; left: -9999px; }
.cd-submit:disabled { cursor: wait; opacity: 0.55; }
.cd-status.err { color: #872e2e; }

/* Mobile navigation and responsive rules */

@media (max-width: 1080px) {
  .site-nav,
  .top-mail { display: none; }
  .menu { display: block; }
  .menu summary {
    min-width: 4.4rem;
    min-height: 44px;
    padding: 0.65rem 0.9rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
  }
  .menu[open] summary { position: relative; z-index: 81; color: var(--paper); border-color: rgb(247 244 239 / 0.35); }
  .menu-panel {
    position: fixed;
    z-index: 80;
    inset: 0;
    width: 100vw;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 2.5rem) var(--gutter) 2rem;
    display: flex;
    flex-direction: column;
    color: var(--paper);
    background: var(--ink);
  }
  .menu-panel nav { display: grid; }
  .menu-panel nav a {
    padding-block: 0.28rem;
    width: max-content;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 8vw, 6rem);
    line-height: 1;
    letter-spacing: -0.045em;
    text-decoration: none;
  }
  .panel-foot {
    margin-top: auto;
    padding-top: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.7rem 1.5rem;
    color: rgb(247 244 239 / 0.62);
    border-top: 1px solid rgb(247 244 239 / 0.18);
  }
  .panel-foot a { color: var(--paper); }
}

@media (max-width: 900px) {
  .work,
  .work:nth-of-type(even),
  .work--panorama {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .work-visual,
  .work:nth-of-type(even) .work-visual,
  .work--panorama .work-visual {
    grid-column: 1;
    grid-row: 1;
    height: clamp(28rem, 67svh, 42rem);
  }
  .work-copy,
  .work:nth-of-type(even) .work-copy,
  .work--panorama .work-copy {
    grid-column: 1;
    grid-row: 2;
    padding-top: 0.8rem;
    display: block;
  }
  .work--panorama .work-visual { grid-template-columns: minmax(0, 1.65fr) minmax(6.5rem, 0.65fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .work--panorama .shot-main { grid-column: 1; }
  .work--panorama .shot-phone { grid-column: 2; grid-row: 1; }
  .work--panorama .shot-detail { grid-column: 2; grid-row: 2; }
  .wt-body { margin-top: 1.8rem; }

  .sheet-inner { grid-template-columns: minmax(0, 1fr); }
  .sect-head,
  .svc-list,
  .people { grid-column: 1; }
  .sect-head { margin-bottom: 1.5rem; }

  .page-head { grid-template-columns: minmax(0, 1fr); }
  .page-head h1,
  .lede { grid-column: 1; }
  .lede { max-width: 40rem; }
  .rates-wrap .page-content,
  .legal-wrap .page-content { grid-template-columns: minmax(0, 1fr); }
  .rates,
  .rates-wrap .tariff-stamp,
  .legal-prose,
  .legal-wrap .tariff-stamp { grid-column: 1; }
  .rate { grid-template-columns: minmax(10rem, 0.7fr) minmax(10rem, 0.55fr) minmax(0, 1fr); }
}

@media (max-width: 759px) {
  :root { --header-h: 64px; --gutter: clamp(1rem, 5.1vw, 1.5rem); --section-y: clamp(4.5rem, 18vw, 6.5rem); }
  .bar { gap: 1rem; }
  .brand-link { width: 7.1rem; }

  .hero {
    min-height: calc(93vh - var(--header-h));
    min-height: calc(93svh - var(--header-h));
    align-items: center;
  }
  .hero { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto; padding: 0.5rem; gap: 0.22rem; }
  .hero-copy {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: clamp(1.2rem, 5vw, 1.7rem);
    background: var(--paper);
  }
  .hero h1 { font-size: clamp(2.65rem, min(12vw, 7.7vh), 4.35rem); line-height: 0.89; }
  .hero-sub { margin-top: 1rem; font-size: 0.9rem; }
  .hero-ctas { margin-top: 1.1rem; display: grid; grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { padding-inline: 0.7rem; font-size: 0.82rem; }

  .portfolio-head { padding-top: 1.5rem; padding-bottom: 1.4rem; }
  .portfolio-head h2 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .work { padding-top: 4rem; padding-bottom: 4.5rem; gap: 1.35rem; }
  .work-visual,
  .work:nth-of-type(even) .work-visual,
  .work--panorama .work-visual {
    height: clamp(23rem, 58svh, 34rem);
    grid-template-columns: minmax(0, 1.65fr) minmax(5.2rem, 0.62fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .work h3 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .desc { font-size: 0.98rem; }
  .pquote { font-size: 1.28rem; }

  .s-t { font-size: clamp(1.55rem, 7vw, 2.1rem); }
  .s-body { padding-right: 0; }
  .person {
    grid-template-columns: 64px minmax(0, 1fr) 44px;
    gap: 0.85rem 1rem;
  }
  .photo { width: 64px; height: 64px; grid-row: 1; }
  .person-id { grid-column: 2; grid-row: 1; }
  .name { margin-top: 0.2rem; font-size: 1.45rem; }
  .role { margin-top: 0.45rem; }
  .person p { grid-column: 1 / -1; grid-row: 2; padding-bottom: 0.3rem; }
  .li-link { grid-column: 3; grid-row: 1; }

  .anchor-inner { display: grid; align-items: start; }
  .anchor-inner h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .anchor-inner .btn { width: max-content; }
  .contact { min-height: auto; }
  .fit-mail { font-size: clamp(2.45rem, 12vw, 4.5rem); }

  .foot nav { display: grid; grid-template-columns: 1fr 1fr; }
  .legal { display: grid; justify-content: start; }

  .page-top { padding-top: 4rem; padding-bottom: 3rem; }
  .page-head h1 { font-size: clamp(3.7rem, 18vw, 6.5rem); }
  .rate { grid-template-columns: minmax(0, 1fr) auto; gap: 0.8rem 1.2rem; }
  .rate .desc { grid-column: 1 / -1; }
  .legal-prose h2 { margin-top: 3rem; }

  .error-main { padding: 1.25rem; }
  .error-title { grid-column: 1 / -1; font-size: clamp(4rem, 20vw, 7rem); }
  .error-main > p:last-child { grid-column: 1 / -1; justify-self: start; }

  .contact-dialog { width: calc(100vw - 1rem); max-height: calc(100svh - 1rem); padding: 1.25rem; }
  .cd-step { padding-top: 1.5rem; }
  .cd-step legend,
  .cd-step h2 { padding-right: 1.8rem; font-size: clamp(2.2rem, 11vw, 3.25rem); }
  .cd-choices { grid-template-columns: 1fr; }
  .cd-actions .btn { flex: 1 1 auto; }
  .cd-mail { flex: 1 0 100%; margin: 0.5rem 0 0; }
}

@media (max-height: 760px) and (min-width: 760px) {
  .hero-copy { padding: clamp(1.2rem, 3.4vh, 2rem); }
  .hero h1 { font-size: clamp(3.2rem, 8vh, 5rem); }
  .hero-sub { margin-top: 0.8rem; }
  .hero-ctas { margin-top: 1rem; }
}

@media (max-width: 370px), (max-height: 660px) and (max-width: 759px) {
  .hero-ctas { grid-template-columns: 1fr !important; }
  .hero-copy { padding: 1rem; }
  .hero h1 { font-size: clamp(2.35rem, min(11.3vw, 7.2vh), 3.2rem); }
  .hero-sub { font-size: 0.82rem; line-height: 1.35; }
  .hero-ctas { gap: 0.45rem; }
  .hero-ctas .btn { min-height: 44px; font-size: 0.76rem; }
}

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

@media print {
  .topbar, .site-footer, .contact-dialog { display: none; }
  .hero { min-height: auto; padding: 3rem; }
  .hero-gallery { opacity: 0.25; }
}
@media (max-width: 759px) { .svc { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding-block: 1.2rem; } }
