/* Tomáš Sluka — Career Performance Advisory
   Palette, type and composition derive from the TS key visual:
   cool light panel, near-black ink, warm leather accent. */

:root {
  --paper:      #F2F1F2;
  --paper-hi:   #FBFAFB;
  --paper-lo:   #E2E1DF;
  --ink:        #16181D;
  --ink-2:      #22252C;
  --ink-soft:   #4C515C;
  --ink-mute:   #5F6672;
  --on-ink:     #FBFAFB;
  --on-ink-2:   #C8CBD2;
  --on-ink-3:   #9BA0AA;
  --tan:        #C39A72;
  --tan-deep:   #7A4A2C;
  --line:       #CFCDCB;
  --line-inv:   #393D46;

  --wrap: 78rem;
  --gut: clamp(1.25rem, 5vw, 5rem);

  --serif: 'Playfair Display', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --script: 'Sacramento', 'Snell Roundhand', cursive;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --head-h: 4.75rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--head-h);
  /* browser surfaces belong to the design, not to the browser */
  accent-color: var(--tan-deep);
  caret-color: var(--tan-deep);
  scrollbar-color: var(--ink-mute) var(--paper-lo);
  scrollbar-width: thin;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.125rem);
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper-lo); }
::-webkit-scrollbar-thumb { background: var(--ink-mute); border: 3px solid var(--paper-lo); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-2); }

:focus-visible {
  outline: 2px solid var(--tan-deep);
  outline-offset: 3px;
  border-radius: 1px;
}
.inv :focus-visible, .tiers :focus-visible, .fin :focus-visible, .foot :focus-visible {
  outline-color: var(--tan);
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.021em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

.skip {
  position: absolute; left: 0; top: 0; z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink); color: var(--paper-hi);
  transform: translateY(-120%);
  text-decoration: none;
  font-size: 0.875rem;
}
.skip:focus { transform: translateY(0); }

/* ---------- letterspaced caps label, the key visual's own voice ---------- */
.caps, .triad, .lockup__txt, .tier__meta, .tier__out dt, .hero__id span,
.foot__id span, .nav a, .lang, .hero__fig figcaption, .tier__lbl {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-weight: 400;
  font-size: 0.6875rem;
  line-height: 1.85;
}

/* ---------- header ---------- */
.head {
  position: sticky; top: 0; z-index: 50;
  background: rgb(242 241 242 / 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head__in {
  max-width: var(--wrap); margin-inline: auto;
  padding-inline: var(--gut);
  min-height: var(--head-h);
  display: flex; align-items: center; gap: 2rem;
}

.lockup { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; margin-right: auto; }
.lockup__mark { width: auto; height: 2.3rem; color: var(--ink); }
.lockup__rule { width: 1px; align-self: stretch; margin-block: 0.3rem; background: var(--line); }
.lockup__txt { color: var(--ink-soft); font-size: 0.5625rem; line-height: 1.5; letter-spacing: 0.18em; }

.nav { display: flex; gap: 1.9rem; }
.nav a { color: var(--ink-soft); text-decoration: none; position: relative; padding-block: 0.4rem; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

.head__act { display: flex; align-items: center; gap: 1.15rem; }

.lang { display: flex; align-items: center; gap: 0.4rem; color: var(--ink-mute); }
.lang__b {
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  background: none; border: 0; padding: 0.25rem 0.1rem; cursor: pointer;
  color: var(--ink-mute); transition: color 0.3s var(--ease);
}
.lang__b abbr { text-decoration: none; }
.lang__b:hover { color: var(--ink); }
.lang__b[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.lang__sep { opacity: 0.5; }

.burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05rem 1.9rem;
  background: var(--ink); color: var(--paper-hi);
  font-family: var(--sans); font-size: 0.75rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.16em; text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn:hover { background: var(--tan-deep); border-color: var(--tan-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.625rem; letter-spacing: 0.15em; }
.btn--inv { background: var(--paper-hi); color: var(--ink); border-color: var(--paper-hi); }
.btn--inv:hover { background: var(--tan); border-color: var(--tan); color: var(--ink); }

.lnk {
  font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.1em;
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 0.2rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.lnk:hover { color: var(--ink); border-color: var(--ink); }
.lnk--inv { color: var(--on-ink-2); border-color: var(--line-inv); }
.lnk--inv:hover { color: var(--paper-hi); border-color: var(--tan); }

/* ---------- hero ---------- */
.hero {
  padding-left: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut)));
  padding-right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: stretch;
  min-height: min(46rem, calc(100svh - var(--head-h)));
}

.hero__txt { max-width: 34rem; align-self: center; padding-block: clamp(3rem, 7vh, 6rem); }

.hero__h {
  font-size: clamp(3rem, 1.4rem + 7.4vw, 5.6rem);
  letter-spacing: -0.028em;
}
.hero__h .ln { display: block; }
.hero__h em { font-style: italic; }

.hero__lede {
  margin-top: 1.5rem;
  max-width: 26ch;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.triad {
  margin-top: 1.9rem;
  display: flex; align-items: center; gap: 0.85rem;
  color: var(--ink);
  letter-spacing: 0.22em;
  font-size: 0.6875rem;
}
.triad i { font-style: normal; color: var(--ink-mute); }

.hero__cta { margin-top: 2.4rem; display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }

.hero__id {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  max-width: 34ch;
}
.hero__id b {
  display: block;
  font-family: var(--serif); font-size: 1.0625rem; font-weight: 500;
  letter-spacing: 0.02em; text-transform: none;
  margin-bottom: 0.35rem;
}
.hero__id span { display: block; color: var(--ink-mute); letter-spacing: 0.14em; }
.hero__id span:last-child {
  text-transform: none; letter-spacing: 0; font-size: 0.9375rem;
  line-height: 1.5; margin-top: 0.5rem; color: var(--ink-soft);
}

.hero__fig {
  margin: 0; position: relative;
  align-self: stretch;
  min-height: 24rem;
}
.hero__fig picture, .hero__fig img { height: 100%; }
.hero__fig img {
  width: 100%; object-fit: cover; object-position: 4% 12%;
}
.hero__fig figcaption {
  position: absolute; right: 1.5rem; bottom: 1.5rem;
  color: #F4F3F2;
  text-align: right; letter-spacing: 0.2em; line-height: 1.75;
  text-shadow: 0 1px 12px rgba(10, 12, 16, 0.55);
}
.hero__fig figcaption::before {
  content: ""; display: block; width: 1.5rem; height: 1px;
  background: currentColor; margin-left: auto; margin-bottom: 0.7rem; opacity: 0.8;
}

/* ---------- pull quote ---------- */
.quote {
  border-block: 1px solid var(--line);
  background: var(--paper-hi);
}
.quote blockquote {
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(3rem, 7vw, 5.25rem) var(--gut);
}
.quote p {
  max-width: 44ch;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.4rem, 1rem + 1.75vw, 2.375rem);
  line-height: 1.26; letter-spacing: -0.016em;
  text-wrap: pretty;
}
.quote p::before { content: "\201E"; }
.quote p::after { content: "\201C"; }
html[lang="en"] .quote p::before { content: "\201C"; }
html[lang="en"] .quote p::after { content: "\201D"; }

/* ---------- section heading ---------- */
.sec__h {
  font-size: clamp(1.9rem, 1.2rem + 2.5vw, 3.25rem);
  max-width: 30ch;
}
.sec__h--inv { color: var(--paper-hi); }

/* ---------- situations: editorial rows, not a card grid ---------- */
.sits {
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(4rem, 9vw, 7.5rem) var(--gut) clamp(2rem, 5vw, 4rem);
}
.sit {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(1.75rem, 4vw, 4.5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.sits .sit:first-of-type { margin-top: clamp(2.5rem, 5vw, 4rem); }

.sit__id {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.2rem;
  align-content: start;
}

.ico {
  display: grid; place-items: center;
  width: 3.4rem; height: 3.4rem;
  grid-row: span 2;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.45s var(--ease), background 0.45s var(--ease);
}
.ico svg {
  width: 1.6rem; height: 1.6rem;
  fill: none; stroke: var(--ink); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.sit:hover .ico { border-color: var(--tan-deep); background: rgb(195 154 114 / 0.13); }

.sit__id h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  margin-bottom: 0.55rem;
}
.sit__id p { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5; max-width: 26ch; }

.sit__bd p { max-width: 68ch; color: var(--ink-soft); }
.sit__bd ul {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.55rem 2.5rem;
}
.sit__bd li, .dash li {
  position: relative; padding-left: 1.35rem;
  font-size: 0.9375rem; line-height: 1.6;
}
.sit__bd li::before, .dash li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 0.7rem; height: 1px; background: var(--tan-deep);
}

/* ---------- engagements: committed ink band ---------- */
.tiers {
  background: var(--ink);
  color: var(--on-ink-2);
}
.tiers__in {
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(4rem, 9vw, 7.5rem) var(--gut);
}
.tiers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1px;
  background: var(--line-inv);
  border: 1px solid var(--line-inv);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.tier {
  background: var(--ink);
  padding: clamp(1.85rem, 3vw, 2.75rem);
  display: flex; flex-direction: column;
}
.tier--lead { background: var(--ink-2); box-shadow: inset 0 1px 0 var(--tan); }
.tier h3 {
  color: var(--on-ink);
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  margin-bottom: 0.7rem;
  /* the longest programme name wraps to two lines; hold the floor so the
     meta and body rows stay level across all three */
  min-height: 2.1em;
}
.tier__meta { color: var(--tan); letter-spacing: 0.15em; margin-bottom: 1.4rem; }
.tier__bd { font-size: 0.9375rem; line-height: 1.68; margin-bottom: 1.75rem; }
.tier__out {
  margin: 0 0 1.75rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line-inv);
}
.tier__out dt { color: var(--tan); margin-bottom: 0.4rem; }
.tier__out dd { margin: 0; font-size: 0.9375rem; color: var(--on-ink); line-height: 1.55; }
.tier__price {
  margin-top: auto; padding-top: 1.35rem;
  font-size: 0.9375rem; color: var(--on-ink-2);
  font-variant-numeric: tabular-nums;
  display: grid; gap: 0.35rem;
}
.tier__lbl { color: var(--tan); }
.tier__price .num {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
  color: var(--on-ink); letter-spacing: 0;
}

/* ---------- approach ---------- */
.appr {
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(4rem, 9vw, 7.5rem) var(--gut);
  position: relative;
}
.appr__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.appr__col h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
  padding-bottom: 1.1rem; margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
  text-wrap: balance;
}
.appr__col p { color: var(--ink-soft); font-size: 0.9375rem; max-width: 60ch; margin-bottom: 1.5rem; }
.dash { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

.script {
  font-family: var(--script);
  font-size: clamp(2.6rem, 1.5rem + 4vw, 4.5rem);
  line-height: 0.92;
  color: #8C634A;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  transform: rotate(-4deg);
  transform-origin: left center;
}

/* ---------- meeting place ---------- */
.place {
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(4rem, 9vw, 7.5rem) var(--gut);
  background: linear-gradient(var(--line), var(--line)) var(--gut) 0 / calc(100% - 2 * var(--gut)) 1px no-repeat;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.place__addr {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-family: var(--serif); font-style: normal; font-weight: 400;
  font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.125rem);
  line-height: 1.25; letter-spacing: -0.012em;
}
.place__addr span { color: var(--ink-soft); }
.place__bd { margin-top: 1.4rem; max-width: 46ch; color: var(--ink-soft); }
.place .lnk { display: inline-block; margin-top: 2rem; }
.place__fig { margin: 0; }
.place__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- closing call ---------- */
.fin {
  background: var(--ink-2);
  color: var(--on-ink-2);
  text-align: center;
}
.fin > * { max-width: 42rem; margin-inline: auto; padding-inline: var(--gut); }
.fin__h {
  font-family: var(--serif); font-weight: 500; color: var(--paper-hi);
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance;
  padding-top: clamp(4rem, 9vw, 7rem);
}
.fin__bd { margin-top: 1.5rem; font-size: 1rem; line-height: 1.7; text-wrap: pretty; }
.fin__cta {
  margin-top: 2.6rem; padding-bottom: clamp(4rem, 9vw, 7rem);
  display: flex; align-items: center; justify-content: center; gap: 1.75rem; flex-wrap: wrap;
}

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--on-ink-2); }
.foot__in {
  max-width: var(--wrap); margin-inline: auto;
  padding: 2.75rem var(--gut);
  border-top: 1px solid var(--line-inv);
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  align-items: center; justify-content: space-between;
}
.foot__id { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.foot__mark { height: 1.85rem; width: auto; color: var(--paper-hi); }
.foot__id b {
  font-family: var(--serif); font-weight: 500; font-size: 1.0625rem;
  color: var(--paper-hi); letter-spacing: 0.01em;
}
.foot__id span { color: var(--on-ink-3); letter-spacing: 0.15em; }
.foot__c { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.85rem; font-size: 0.875rem; }
.foot__c a { text-decoration: none; border-bottom: 1px solid var(--line-inv); padding-bottom: 0.15rem; transition: color 0.35s var(--ease), border-color 0.35s var(--ease); }
.foot__c a:hover { color: var(--paper-hi); border-color: var(--tan); }
.foot__c li { font-variant-numeric: tabular-nums; }

/* ---------- the one authored moment: the hero arrival ---------- */
/* Driven entirely by CSS: a JS-gated reveal leaves the hero blank whenever
   the script is blocked or fails to load. */
@media (prefers-reduced-motion: no-preference) {
  .hero__txt .ln {
    opacity: 0;
    transform: translateY(0.7em);
    animation: rise 1.05s var(--ease) both;
  }
  .hero__h .ln:nth-child(1) { animation-delay: 0.12s; }
  .hero__h .ln:nth-child(2) { animation-delay: 0.20s; }
  .hero__h .ln:nth-child(3) { animation-delay: 0.28s; }
  .hero__lede { animation-delay: 0.38s; }
  .triad      { animation-delay: 0.45s; }
  .hero__cta  { animation-delay: 0.52s; }
  .hero__id   { animation-delay: 0.59s; }

  .hero__fig picture {
    clip-path: inset(0 0 0 100%);
    animation: wipe 1.25s var(--ease) 0.1s both;
  }

  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes wipe { to { clip-path: inset(0 0 0 0); } }
}

/* ---------- responsive ---------- */
@media (max-width: 61.999rem) {
  :root { --head-h: 4.25rem; }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--paper-hi);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gut) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 0.85rem; border-bottom: 1px solid var(--line); font-size: 0.75rem; }
  .nav a::after { display: none; }

  .burger {
    display: grid; place-content: center; gap: 5px;
    width: 2.5rem; height: 2.5rem;
    background: none; border: 1px solid var(--line); cursor: pointer;
    padding: 0;
  }
  .burger span { display: block; width: 1.05rem; height: 1px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

  .head__in { position: relative; gap: 1rem; }
  .btn--sm { display: none; }
  .lockup__txt, .lockup__rule { display: none; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: var(--gut) !important;
    min-height: 0;
    gap: 2.5rem;
  }
  .hero__fig {
    order: -1;
    min-height: 0;
    margin-inline: calc(var(--gut) * -1);
    aspect-ratio: 4 / 3;
  }
  .hero__fig picture, .hero__fig img { height: 100%; }
  .hero__fig img { object-position: 50% 20%; }

  .sit { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .place { grid-template-columns: minmax(0, 1fr); }
  .place__fig { max-width: 32rem; }
  .hero__txt { max-width: none; }
  .ico { width: 3rem; height: 3rem; margin-bottom: 1.1rem; }
}

@media (max-width: 30rem) {
  .hero__cta { gap: 1.25rem; }
  .hero__cta .btn { width: 100%; }
  .fin__cta { gap: 1.25rem; }
  .foot__in { justify-content: flex-start; }
}

@media print {
  .head, .burger, .skip, .script { display: none; }
  body { background: #fff; color: #000; }
  .tiers, .fin, .foot { background: #fff; color: #000; }
  .tiers .sec__h, .tier h3, .tier__out dd, .fin__h { color: #000; }
}
