/* APES Consulting – návrh dizajnu "štýl Penta" */

/* fonts are hosted on our own server (no Google request): Inter and Newsreader, SIL Open Font License.
   latin = basic letters, latin-ext = Slovak letters like č, ď, ľ, ň, ť, ž */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0d0f12;
  --ink-2: #15181d;
  --paper: #f4f2ee;
  --paper-2: #ebe8e2;
  --text: #17191d;
  --text-soft: #5b6068;
  --on-dark: #eceae5;
  --on-dark-soft: #9aa0a8;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(23, 25, 29, 0.12);
  --accent: #b7a273;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slide-time: 7s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn .short { display: none; }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { color: var(--on-dark); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-outline { color: var(--on-dark); border-color: rgba(255,255,255,.4); height: 40px; padding: 0 18px; }
.btn-outline:hover { border-color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-arrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}
a:hover > .link-arrow::after, .link-arrow:hover::after { width: 38px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--on-dark);
  transition: border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* the dark frosted bar after scrolling is its own layer: if the header itself had the blur, the
   full-screen phone menu inside it would be squeezed into the bar and jump when it opens */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 15, 18, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.header-inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height .4s var(--ease);
}
.is-scrolled .header-inner { height: 68px; }

/* logo: a modern "A" from two chevrons (white + gold, the gold one rises on hover) + APES / CONSULTING */
.brand, .footer-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--on-dark);
}
.brand-mark {
  flex: 0 0 auto;
  display: block;
  width: 34px; height: 34px;
  overflow: visible;
  transition: width .4s var(--ease), height .4s var(--ease);
}
.brand-mark polyline { fill: none; stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; }
.brand-mark .mark-out { stroke: currentColor; }
.brand-mark .mark-in { stroke: var(--accent); transition: transform .45s var(--ease); }
.brand:hover .mark-in, .brand:focus-visible .mark-in { transform: translateY(-3px); }
.brand-word { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .3em;
  margin-right: -.3em;
}
.brand-desc {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 7.4px;
  font-weight: 500;
  letter-spacing: .228em; /* makes CONSULTING exactly as wide as APES */
  margin-right: -.228em;
  text-transform: uppercase;
  color: var(--accent);
}
.is-scrolled .brand-mark { width: 31px; height: 31px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav > a:not(.btn) {
  font-size: 14px;
  text-decoration: none;
  color: rgba(236, 234, 229, .82);
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.main-nav > a:not(.btn):hover { color: #fff; }
.main-nav > a:not(.btn):hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 60;
}
.menu-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--on-dark);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}
.hero-slides, .slide { position: absolute; inset: 0; }
.slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s var(--ease), visibility 0s linear 1.4s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.4s var(--ease), visibility 0s;
}
.slide picture, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide img {
  object-fit: cover;
  filter: saturate(.72) contrast(1.06) brightness(.9);
  transform: scale(1.02);
}
.slide.is-active img { animation: kenburns 12s linear forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,12,15,.78) 0%, rgba(10,12,15,.45) 45%, rgba(10,12,15,.15) 100%),
    linear-gradient(0deg, rgba(10,12,15,.85) 0%, rgba(10,12,15,0) 45%);
}

.slide-content {
  position: absolute;
  left: 0; right: 0;
  bottom: 220px;
  z-index: 2;
}
.slide-content > * { max-width: 860px; }
.slide h1, .slide h2 {
  font-family: var(--serif);
  font-weight: 300;
  /* scales with width and height, so 3-line titles never reach the header */
  font-size: clamp(2.4rem, min(5.6vw, 9.5vh), 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.slide .lead {
  margin-top: 22px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(236, 234, 229, .78);
  max-width: 520px;
}
/* text enters a moment after the photo */
.slide .eyebrow, .slide h1, .slide h2, .slide .lead {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.slide.is-active .eyebrow { opacity: 1; transform: none; transition-delay: .35s; }
.slide.is-active h1, .slide.is-active h2 { opacity: 1; transform: none; transition-delay: .5s; }
.slide.is-active .lead { opacity: 1; transform: none; transition-delay: .7s; }

.hero-actions {
  position: absolute;
  left: 0; right: 0;
  bottom: 130px;
  z-index: 3;
  display: flex;
  gap: 12px;
}

.hero-controls {
  position: absolute;
  left: 0; right: 0;
  bottom: 48px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hero-progress { display: flex; gap: 10px; }
.hero-progress button {
  width: 64px;
  height: 20px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.hero-progress button::before,
.hero-progress button span {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,.25);
}
.hero-progress button span {
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.hero-progress button.is-done span { transform: scaleX(1); }
.hero-progress button.is-active span { animation: progress var(--slide-time) linear forwards; }
.hero.is-paused .hero-progress button.is-active span { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

.hero-arrows { display: flex; gap: 8px; }
.hero-arrows button {
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,.28);
  background: none;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.hero-arrows button:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.hero-arrows svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }


/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.light { background: var(--paper); color: var(--text); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark .section-sub { color: var(--on-dark-soft); }
.light .section-sub { color: var(--text-soft); }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .section-sub { margin-top: 20px; font-size: 1.05rem; }
.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
}
.about-text p { color: var(--text-soft); font-size: 1.05rem; }
.about-text p + p { margin-top: 18px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(64px, 8vw, 110px);
}
.stat {
  border-top: 1px solid var(--line-light);
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line-light); }
.stat-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}
.service {
  padding: 40px 36px 48px 0;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
}
.service:not(:nth-child(3n+1)) { padding-left: 36px; border-left: 1px solid var(--line-dark); }
.service::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 1px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
}
.service h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 18px 0 14px;
}
.service p { color: var(--on-dark-soft); font-size: .97rem; }

/* why */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
/* photo is uncovered from the bottom like a curtain, then drifts slower than the page (parallax) */
.why-photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.why-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.7) contrast(1.05);
  transform: translate3d(0, var(--drift, 0px), 0) scale(1.14);
  transition: filter 1s var(--ease);
  will-change: transform;
}
.why-photo:hover img { filter: saturate(.9) contrast(1.08); }
.js .why-photo.reveal { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.6s cubic-bezier(.7, 0, .25, 1); }
.js .why-photo.reveal.is-in { clip-path: inset(0 0 0 0); }
.why-list { list-style: none; margin: 48px 0 0; padding: 0; }
.why-list li { padding: 28px 0; border-top: 1px solid var(--line-light); }
.why-list li:last-child { border-bottom: 1px solid var(--line-light); }
.why-list h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 10px; }
.why-list p { color: var(--text-soft); }

/* testimonials */
.quotes { background: var(--ink-2); }
.quotes-inner { max-width: 1000px; }
.quote-stage { display: grid; }
.quote {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), visibility 0s linear .9s;
}
.quote.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.quote figcaption {
  margin-top: 32px;
  font-size: 14px;
  font-weight: 500;
}
.quote figcaption span { display: block; margin-top: 2px; font-weight: 400; color: var(--on-dark-soft); }
.quote-dots { display: flex; gap: 10px; margin-top: 48px; }
.quote-dots button {
  width: 36px; height: 20px;
  padding: 0; border: 0; background: none; cursor: pointer;
  position: relative;
}
.quote-dots button::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(255,255,255,.25);
  transition: background .3s var(--ease);
}
.quote-dots button[aria-selected="true"]::before { background: #fff; }

/* articles */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 300px;
  padding: 32px;
  background: #fff;
  text-decoration: none;
  border: 1px solid var(--line-light);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(13,15,18,.35); }
.article-meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.article-card h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.25; flex: 1; }

/* contact CTA */
.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
}
.cta .section-sub { margin-top: 22px; max-width: 520px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.cta-details { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 28px; }
.cta-details div { border-top: 1px solid var(--line-dark); padding-top: 18px; }
.cta-details dt {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 8px;
}
.cta-details dd { margin: 0; font-size: 1.02rem; }
.cta-details a { text-decoration: none; }
.cta-details a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* the address behaves like the phone and email: highlighted on hover, opens the map window */
.map-open {
  all: unset;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  color: inherit;
}
.map-open:hover, .map-open:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.map-open:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* small bubble above a copied phone number / email */
.copy-tip {
  position: absolute;
  z-index: 300;
  transform: translate(-50%, -100%) translateY(6px);
  padding: 8px 14px 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.copy-tip::before {
  content: "";
  width: 6px; height: 10px;
  margin-top: -3px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.copy-tip.is-visible { opacity: 1; transform: translate(-50%, -100%); }

/* map window */
.map-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.map-modal[hidden] { display: none; }
.map-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 15, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in .35s var(--ease) both;
}
.map-modal-box {
  position: relative;
  width: min(960px, 100%);
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
  animation: pop-in .45s var(--ease) both;
}
.map-modal-map { position: relative; aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden; }
.map-modal-map iframe { position: absolute; left: 0; width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); }
.map-modal-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
  padding: 22px 26px;
}
.map-modal-info p { font-family: var(--serif); font-size: 1.35rem; }
.map-modal-close {
  position: absolute;
  top: -18px; right: -18px;
  z-index: 2;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.map-modal-close:hover { background: #000; transform: rotate(90deg); }
.map-modal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.modal-open { overflow: hidden; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 700px) {
  .map-modal-map { aspect-ratio: 4 / 5; }
  .map-modal-close { top: 10px; right: 10px; }
  .map-modal-info .btn { width: 100%; }
}

/* footer */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  border-top: 1px solid var(--line-dark);
  padding: 80px 0 40px;
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-lockup { margin-bottom: 18px; }
.footer-tagline {
  margin-bottom: 18px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer-brand p { max-width: 340px; }
.site-footer h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--on-dark); }
.site-footer .footer-contact a:hover { color: inherit; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}

/* ---------- language switch (SK / EN) ---------- */
.main-nav > a.lang-switch {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  padding: 6px 0 6px 18px;
  border-left: 1px solid rgba(255, 255, 255, .25);
}
.main-nav > a.lang-switch::after { display: none; }
@media (max-width: 860px) {
  .main-nav > a.lang-switch { font-family: var(--sans); font-size: 14px; border-left: 0; padding-left: 0; margin-top: 18px; }
}

/* ---------- current page in menu ---------- */
.main-nav > a[aria-current="page"] { color: #fff; }
.main-nav > a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- subpage hero ---------- */
.page-hero {
  position: relative;
  min-height: 74vh;
  min-height: 74svh;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 clamp(56px, 8vh, 96px);
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}
.page-hero picture, .page-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero picture img {
  object-fit: cover;
  filter: saturate(.72) contrast(1.06) brightness(.9);
  animation: settle 2.6s var(--ease) both;
}
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,12,15,.8) 0%, rgba(10,12,15,.45) 50%, rgba(10,12,15,.2) 100%),
    linear-gradient(0deg, rgba(10,12,15,.85) 0%, rgba(10,12,15,0) 55%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, min(5.4vw, 9vh), 5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 900px;
}
.page-hero .lead {
  margin-top: 22px;
  max-width: 580px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(236, 234, 229, .8);
}
.page-hero .hero-in { animation: rise 1s var(--ease) both; }
.page-hero .hero-in:nth-child(2) { animation-delay: .12s; }
.page-hero .hero-in:nth-child(3) { animation-delay: .24s; }
.page-hero .hero-in:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--on-dark-soft);
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(236, 234, 229, .7);
}

/* ---------- buttons on light backgrounds ---------- */
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: #000; }
.btn-line { color: var(--text); border-color: rgba(23,25,29,.3); }
.btn-line:hover { border-color: var(--text); }

/* ---------- photo cards (articles) ---------- */
.photo-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  isolation: isolate;
  transition: transform .6s var(--ease);
}
/* on hover the whole card (photo and text) grows slightly and lifts on a white panel */
.photo-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  background: #fff;
  box-shadow: 0 30px 60px -36px rgba(13, 15, 18, .35);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.photo-card:hover, .js .photo-card.reveal.is-in:hover { transform: translateY(-4px) scale(1.025); }
.photo-card:hover::before { opacity: 1; }
.feature.photo-card:hover, .js .feature.photo-card.reveal.is-in:hover { transform: translateY(-4px) scale(1.01); }
.js .photo-card.reveal.is-in { transition: transform .6s var(--ease), opacity 1s var(--ease); }
.photo-card figure { margin: 0 0 24px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-2); }
.photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.75) contrast(1.04);
  transition: transform 1.2s var(--ease);
}
.photo-card:hover img { transform: scale(1.03); }
.photo-card .article-meta { margin-bottom: 12px; }
.photo-card h3 {
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.22;
  margin-bottom: 14px;
}
.photo-card p { color: var(--text-soft); margin-bottom: 22px; }
.photo-card .link-arrow { margin-top: auto; }

.feature {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-bottom: clamp(56px, 7vw, 96px);
  margin-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line-light);
}
.feature figure { margin: 0; aspect-ratio: 4 / 3; }
.feature h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; margin-bottom: 18px; }
.feature .article-meta { display: block; }
.feature .badge {
  display: table;
  margin-bottom: 18px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--on-dark);
}
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 56px); }
.articles-grid .photo-card { background: none; }

/* ---------- article page ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: clamp(40px, 7vw, 110px);
  justify-content: center;
}
.toc { position: sticky; top: 110px; align-self: start; font-size: 14px; }
.toc p {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-light); }
.toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--text-soft);
  text-decoration: none;
  line-height: 1.4;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.toc a:hover { color: var(--text); }
.toc a.is-current { color: var(--text); border-left-color: var(--text); }

.prose { font-size: 1.1rem; line-height: 1.78; color: #2a2d33; }
.prose > * + * { margin-top: 1.1em; }
.prose .article-lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.6em;
}
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  color: var(--text);
  margin-top: 2.2em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line-light);
  scroll-margin-top: 100px;
}
.prose h3 { font-family: var(--serif); font-size: 1.35rem; color: var(--text); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 28px; }
.prose li + li { margin-top: .55em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .85em;
  width: 14px; height: 1px;
  background: var(--accent);
}
.prose ol { counter-reset: item; }
.prose ol li { counter-increment: item; padding-left: 36px; }
.prose ol li::before {
  content: counter(item);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--serif);
  font-size: 1.15em;
  color: var(--accent);
}
.post-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .post-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .post-grid.three { grid-template-columns: 1fr; } }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-underline-offset: 3px; }

.article-cta {
  margin-top: 64px;
  padding: clamp(32px, 4vw, 48px);
  background: var(--ink);
  color: var(--on-dark);
}
.article-cta h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.15; margin-bottom: 14px; }
.article-cta p { color: var(--on-dark-soft); max-width: 520px; margin-bottom: 28px; }
.article-cta .cta-actions { margin-top: 0; }

/* ---------- career ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.value { padding: 36px 32px 8px 0; position: relative; }
.value + .value { padding-left: 32px; border-left: 1px solid var(--line-light); }
.value .service-num { color: var(--accent); }
.value h3 { font-family: var(--serif); font-size: 1.7rem; margin: 16px 0 12px; transition: transform .5s var(--ease); }
.value p { color: var(--text-soft); transition: color .5s var(--ease); }
/* like the services: a gold line fills in above the hovered value and empties again */
.value::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.value:hover::before { transform: scaleX(1); }
.value:hover h3 { transform: translateY(-3px); }
.value:hover p { color: var(--text); }

.positions { border-top: 1px solid var(--line-dark); }
.position {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  gap: 24px 48px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--line-dark);
}
.position h3 { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; }
.position .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.position .tags span {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line-dark);
  color: var(--on-dark-soft);
}
.position > div > p { color: var(--on-dark-soft); }
.position details { margin-top: 18px; }
.position summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark);
}
.position summary::-webkit-details-marker { display: none; }
.position summary::before { content: "+"; font-size: 18px; line-height: 1; width: 14px; }
.position details[open] summary::before { content: "–"; }
.position summary .when-open { display: none; }
.position details[open] summary .when-open { display: inline; }
.position details[open] summary .when-closed { display: none; }
.position details ul { margin: 16px 0 0; padding: 0; list-style: none; color: var(--on-dark-soft); }
.position details li { position: relative; padding-left: 24px; }
.position details li + li { margin-top: 8px; }
.position details li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 1px; background: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { border-top: 1px solid var(--line-light); padding-top: 26px; position: relative; }
/* the three lines fill one after another when the steps come into view, and stay filled */
.step::after {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease);
}
.steps.is-filled .step::after { transform: scaleX(1); }
.steps.is-filled .step:nth-child(2)::after { transition-delay: .8s; }
.steps.is-filled .step:nth-child(3)::after { transition-delay: 1.6s; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 3.4rem;
  line-height: 1;
  margin-bottom: 18px;
}
.step h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 10px; }
.step p { color: var(--text-soft); }

.split-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.split-photo figure { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; }
.split-photo figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.05); }

/* ---------- contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line-light);
  text-decoration: none;
  color: inherit;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -32px rgba(13,15,18,.4); }
.contact-card svg { width: 28px; height: 28px; fill: none; stroke: var(--text); stroke-width: 1.3; margin-bottom: 10px; }
.contact-card .label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
.contact-card .value { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.25; }
.contact-card .note { font-size: 14px; color: var(--text-soft); }

.form-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.form-intro p { color: var(--text-soft); font-size: 1.05rem; }
.form-intro p + p { margin-top: 16px; }
.form-intro .phone-line {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}
.form-intro .phone-line a { font-family: var(--serif); font-size: 1.7rem; color: var(--text); text-decoration: none; }

.form-card {
  background: #fff;
  border: 1px solid var(--line-light);
  padding: clamp(28px, 4vw, 48px);
  scroll-margin-top: 100px;
}
.contact-form { display: grid; gap: 26px; }
.contact-form[hidden] { display: none; }
.field { display: grid; gap: 8px; }
.field > label, .field > legend { font-size: 15px; font-weight: 500; color: var(--text); padding: 0; }
.field .optional { font-weight: 400; color: var(--text-soft); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(23,25,29,.22);
  border-radius: 0;
  padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #9a9ea5; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(183, 162, 115, .3);
}
.field .hint { font-size: 13px; color: var(--text-soft); }
.field .error { font-size: 14px; color: #a3261c; min-height: 0; }
.field .error:empty { display: none; }
/* a field that needs fixing: red label, red frame, faint red background; it pulses once when the form jumps to it */
.field.has-error > label { color: #a3261c; }
.field.has-error input, .field.has-error textarea {
  border-color: #a3261c;
  background: #fdf5f4;
  box-shadow: 0 0 0 3px rgba(163, 38, 28, .12);
}
.field.has-error input:focus, .field.has-error textarea:focus { border-color: #a3261c; box-shadow: 0 0 0 3px rgba(163, 38, 28, .22); }
.field.is-flash input, .field.is-flash textarea { animation: field-flash 1.1s var(--ease) .35s 2; }
@keyframes field-flash {
  0%, 100% { box-shadow: 0 0 0 3px rgba(163, 38, 28, .12); }
  45% { box-shadow: 0 0 0 7px rgba(163, 38, 28, .28); }
}
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; position: relative; }
.chips input {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 1px;
  margin: 0; padding: 0; border: 0;
  opacity: 0;
  pointer-events: none;
}
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  border: 1px solid rgba(23,25,29,.22);
  transition: background .2s, color .2s, border-color .2s;
}
.chips label:hover span { border-color: var(--text); }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(183, 162, 115, .4); }

/* CV upload: shown only when the topic "Kariéra" is picked */
.cv-field { display: none; }
.contact-form:has(input[name="tema"][value="Kariéra"]:checked) .cv-field,
.contact-form:has(input[name="tema"][value="Careers"]:checked) .cv-field { display: grid; }
@supports not selector(:has(*)) { .cv-field { display: grid; } }
.field-label { font-size: 15px; font-weight: 500; color: var(--text); }
.file-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.file-pick label { position: relative; cursor: pointer; }
.file-pick input {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 1px;
  margin: 0; padding: 0; border: 0;
  opacity: 0;
}
.file-pick .btn { height: 48px; pointer-events: none; }
.file-pick label:hover .btn { border-color: var(--text); }
.file-pick input:focus-visible + .btn { box-shadow: 0 0 0 3px rgba(183, 162, 115, .4); }
.file-name { font-size: 15px; color: var(--text-soft); word-break: break-all; }
.file-name.has-file { color: var(--text); }
.file-remove {
  background: none; border: 0; padding: 4px 0;
  font: inherit; font-size: 14px;
  color: var(--text-soft);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.file-remove:hover { color: var(--text); }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: 13px; color: var(--text-soft); }
.contact-form .btn { height: 58px; font-size: 14px; width: 100%; }
.contact-form .btn:disabled { opacity: .6; cursor: progress; }

.form-alert {
  display: none;
  padding: 16px 18px;
  background: #fbeeec;
  border-left: 3px solid #a3261c;
  color: #6e1a13;
  font-size: 15px;
}
.form-alert.is-visible, .form-alert:target { display: block; }
.form-alert a { color: inherit; font-weight: 600; }

.form-success { display: none; text-align: left; outline: none; }
.form-success.is-visible, .form-success:target { display: block; }
.form-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  margin-bottom: 28px;
}
.form-success .check svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; }
.form-success h3 { font-family: var(--serif); font-size: 2rem; line-height: 1.15; margin-bottom: 14px; }
.form-success p { color: var(--text-soft); }
.form-success p + p { margin-top: 10px; }
.page-hero.plain { min-height: 0; padding: 170px 0 72px; }
.page-hero.plain::after { display: none; }
.prose .updated { margin-top: 2.4em; font-size: 14px; color: var(--text-soft); }
.form-privacy a { color: var(--text); text-underline-offset: 3px; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.notfound-en { margin-top: 40px; font-size: 15px; color: var(--text-soft); }
.notfound-en a { color: var(--text); text-underline-offset: 3px; }
.footer-legal { margin-top: 18px; font-size: 12px; line-height: 1.6; color: rgba(154, 160, 168, .75); }

/* FAQ */
.faq { border-top: 1px solid var(--line-light); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.faq-intro .section-sub { margin-top: 20px; }
.faq-intro .link-arrow { margin-top: 32px; }
.faq-list { border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.3;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 300;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.faq-item[open] summary::after { content: "–"; background: var(--ink); color: #fff; border-color: var(--ink); }
/* the question under the mouse moves in, gets a gold line and a dark "+" */
.faq-item summary { position: relative; transition: padding-left .35s var(--ease), color .35s var(--ease); }
.faq-item summary::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 2px; height: 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height .35s var(--ease);
}
.faq-item summary:hover, .faq-item summary:focus-visible { padding-left: 20px; color: #000; }
.faq-item summary:hover::before, .faq-item summary:focus-visible::before { height: 55%; }
.faq-item summary:hover::after, .faq-item summary:focus-visible::after { background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-item[open] summary::before { height: 55%; }
.faq-item .answer { padding: 0 60px 28px 0; color: var(--text-soft); font-size: 1.02rem; }
.faq-item .answer a { color: var(--text); text-underline-offset: 3px; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .faq-item .answer { padding-right: 0; }
}
.form-success .email-part { display: none; }
.form-success.has-email .email-part { display: inline; }
.related { border-top: 1px solid var(--line-light); }
.page-hero .hero-in:nth-child(5) { animation-delay: .48s; }
.page-hero .cta-actions { margin-top: 32px; }
.form-success .preview-note {
  margin-top: 22px;
  padding: 12px 14px;
  font-size: 13px;
  background: var(--paper);
  border-left: 3px solid var(--accent);
}
.form-success .btn { margin-top: 28px; }

.map-wrap { position: relative; aspect-ratio: 16 / 7; min-height: 420px; background: var(--paper-2); overflow: hidden; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
/* Google's own "open in Maps" card sits in the top-left corner: shift the map up so it stays hidden */
.map-wrap iframe, .map-modal-map iframe { top: -150px; height: calc(100% + 150px); }
.map-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  margin-top: 28px;
}
.map-info p { font-family: var(--serif); font-size: 1.5rem; }
.map-info .btn {
  height: 58px;
  padding: 0 36px;
  font-size: 14px;
  box-shadow: 0 10px 24px -14px rgba(13, 15, 18, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease);
}
.map-info .btn:hover, .map-info .btn:focus-visible {
  transform: scale(1.06);
  background: #000;
  box-shadow: 0 18px 36px -14px rgba(13, 15, 18, .7);
}

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .service:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line-dark); }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 0 var(--gutter);
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility 0s linear .4s;
  }
  .menu-open .main-nav { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
  .brand { position: relative; z-index: 60; }
  .main-nav > a:not(.btn) {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--on-dark);
  }
  .main-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 28px; }
  .menu-open { overflow: hidden; }
  /* the menu items glide in one after another while the X forms; closing is quick and plain */
  .main-nav > a {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .menu-open .main-nav > a {
    opacity: 1;
    transform: none;
    transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s var(--ease);
  }
  .menu-open .main-nav > a:nth-child(1) { transition-delay: .08s; }
  .menu-open .main-nav > a:nth-child(2) { transition-delay: .13s; }
  .menu-open .main-nav > a:nth-child(3) { transition-delay: .18s; }
  .menu-open .main-nav > a:nth-child(4) { transition-delay: .23s; }
  .menu-open .main-nav > a:nth-child(5) { transition-delay: .28s; }
  .menu-open .main-nav > a:nth-child(6) { transition-delay: .33s; }
  .menu-open .main-nav > a:nth-child(7) { transition-delay: .38s; }

  .about-grid, .why-grid, .cta-grid { grid-template-columns: 1fr; }
  .why-photo { aspect-ratio: 16 / 11; }
}

@media (max-width: 700px) {
  .header-inner { height: 68px; }
  .brand { gap: 12px; }
  .brand-mark, .is-scrolled .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 16px; }
  .brand-desc { font-size: 6.6px; }

  .slide-content { bottom: 200px; }
  /* a two-line label: the gold dash sits by the first line and the label keeps its distance from the title */
  .slide .eyebrow { align-items: flex-start; line-height: 1.6; margin-bottom: 26px; }
  .slide .eyebrow::before { flex: 0 0 auto; margin-top: .8em; }
  .hero-actions { bottom: 118px; gap: 10px; }
  .hero-actions .btn { height: 44px; padding: 0 18px; font-size: 12px; }
  .hero-actions .long { display: none; }
  .hero-actions .short { display: inline; }
  .hero-controls { bottom: 44px; }
  .hero-progress button { width: 36px; }
  .hero-arrows button { width: 42px; height: 42px; }

  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; margin-top: 28px; }
  .services-grid, .articles-grid { grid-template-columns: 1fr; }
  .service, .service:nth-child(2n) { padding: 32px 0 36px; border-left: 0; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .cta-details { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1020px) {
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .toc { display: none; }
  .position { grid-template-columns: 1fr 1.4fr; }
  .position .btn { grid-column: 2; justify-self: start; }
}

@media (max-width: 860px) {
  .feature, .split-photo, .form-layout { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .values-grid, .steps { grid-template-columns: 1fr; }
  .value + .value { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .value { padding-right: 0; }
  .position { grid-template-columns: 1fr; gap: 18px; }
  .position .btn { grid-column: auto; }
}

@media (max-width: 700px) {
  .page-hero { min-height: 68svh; padding-top: 120px; }
  .post-grid { grid-template-columns: 1fr; }
  .prose { font-size: 1.05rem; }
  .map-wrap { aspect-ratio: 4 / 5; }
  .contact-form .btn { height: 56px; }
}

@media (max-height: 620px) and (min-width: 701px) {
  .slide-content { bottom: 180px; }
  .hero-actions { bottom: 104px; }
  .hero-controls { bottom: 32px; }
  .slide .lead { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide.is-active img { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .main-nav > a { transform: none !important; transition-delay: 0s !important; }
  .field.is-flash input, .field.is-flash textarea { animation: none; }
}
