/*
Theme Name: LEAD YOURSELF
Theme URI: https://ara8.de
Author: Ara8 Solution GmbH
Description: Editorial leadership studio theme for Tata Islem. Cinematic typography, disciplined grid, restrained motion.
Version: 3.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: leadyourself
*/

/* ==========================================================================
   TOKENS
   Dark is the foundation; cream and gold carry the approved brand identity.
   ========================================================================== */
:root {
  --ink-900: #0B0B0C;
  --ink-800: #101011;
  --ink-700: #17171A;
  --ink-600: #26262A;

  --paper:   #F5F0E7;
  --paper-2: #EDE7DB;

  --off-white: #EFEAE1;
  --grey-warm: #8C867C;
  --grey-soft: #6B665E;

  --gold: #B3975B;

  --hair-dark:  #232326;
  --hair-light: #D8D0C0;

  --measure: 32rem;
  --measure-wide: 44rem;

  --s1: .5rem;  --s2: 1rem;   --s3: 1.75rem;
  --s4: 3rem;   --s5: 5.5rem; --s6: 9rem;  --s7: 13rem;

  --serif: "Iowan Old Style", "Hoefler Text", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 860px) {
  :root { --s4: 2.25rem; --s5: 3.5rem; --s6: 5rem; --s7: 6.5rem; }
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
input[type=hidden] { display: none !important; }

/* ==========================================================================
   BASE
   ========================================================================== */
body {
  background: var(--ink-900);
  color: var(--off-white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 861px) { body { font-size: 18px; } }

p { max-width: var(--measure); margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

strong { font-weight: 600; }

::selection { background: var(--gold); color: var(--ink-900); }

/* ==========================================================================
   TYPE
   Very large display against very small metadata. That contrast is the
   whole system; everything else is spacing.
   ========================================================================== */
h1, h2, h3, .display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }

.display-xl {
  font-size: 3rem;
  font-size: clamp(2.6rem, 8.5vw, 8.5rem);
  line-height: .98;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
h1, .display-l {
  font-size: 2.6rem;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 15ch;
  text-wrap: balance;
}
h2, .display-m {
  font-size: 2rem;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  max-width: 18ch;
  text-wrap: balance;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.lede { font-size: 1.15em; line-height: 1.6; max-width: var(--measure-wide); }
.quiet { color: var(--grey-warm); }
.small { font-size: .88rem; line-height: 1.6; color: var(--grey-warm); }

/* Metadata label. Small, wide, uppercase — the counterweight to the display. */
.meta {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey-warm);
  max-width: none;
}
.meta--gold { color: var(--gold); }

/* ==========================================================================
   SURFACES
   ========================================================================== */
.surface-dark  { background: var(--ink-900); color: var(--off-white); }
.surface-deep  { background: var(--ink-800); color: var(--off-white); }
.surface-light { background: var(--paper);   color: var(--ink-900); }
.surface-light .quiet, .surface-light .small, .surface-light .meta { color: var(--grey-soft); }
.surface-light .meta--gold { color: #8C7238; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.shell { max-width: 84rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 861px) { .shell { padding-left: 4.5rem; padding-right: 4.5rem; } }

.shell-narrow { max-width: 58rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 861px) { .shell-narrow { padding-left: 4.5rem; padding-right: 4.5rem; } }

.band { padding-top: var(--s6); padding-bottom: var(--s6); }
.band-lg { padding-top: var(--s7); padding-bottom: var(--s7); }
.band-sm { padding-top: var(--s5); padding-bottom: var(--s5); }

.rule { height: 1px; background: var(--hair-dark); border: 0; margin: 0; }
.surface-light .rule { background: var(--hair-light); }

/* Asymmetric editorial split. */
.split { display: grid; gap: var(--s4); }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--s5); align-items: start; }
  .split--reverse { grid-template-columns: 7fr 5fr; }
  .split--offset > *:last-child { padding-top: var(--s5); }
}

.cols-3 { display: grid; gap: var(--s4); }
@media (min-width: 820px) { .cols-3 { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }

/* ==========================================================================
   MEDIA PLATES
   Real images drop in later; the plate keeps the composition honest now.
   ========================================================================== */
.plate {
  position: relative; width: 100%; overflow: hidden;
  background: var(--ink-700); color: var(--grey-warm);
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; padding: var(--s3);
}
.plate--portrait { aspect-ratio: 3 / 4; }
.plate--square   { aspect-ratio: 1 / 1; }
.plate--wide     { aspect-ratio: 16 / 9; }
.plate--tall     { aspect-ratio: 2 / 3; }
.plate--hero     { aspect-ratio: 21 / 9; }
.surface-light .plate { background: var(--paper-2); color: var(--grey-soft); }

/* ==========================================================================
   LINKS AND BUTTONS
   One button style. A line that draws itself, nothing more.
   ========================================================================== */
.link {
  display: inline-block; position: relative;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; padding-bottom: .55rem;
}
.link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; opacity: .35;
  transform-origin: left; transition: opacity .5s var(--ease);
}
.link:hover::after { opacity: 1; }
.link--gold { color: var(--gold); }

.btn {
  display: inline-block; border: 1px solid currentColor;
  padding: 1.05rem 2.2rem;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); cursor: pointer;
  background: transparent;
  transition: background .5s var(--ease), color .5s var(--ease);
}
.btn:hover { background: var(--gold); color: var(--ink-900); }
.surface-light .btn:hover { color: var(--paper); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
  transition: background .6s var(--ease), padding .6s var(--ease);
}
.masthead.is-stuck { background: rgba(11,11,12,.86); backdrop-filter: blur(14px); padding-top: .9rem; padding-bottom: .9rem; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }

.wordmark { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .02em; color: var(--off-white); }
.wordmark span { display: block; font-family: var(--sans); font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; color: var(--grey-warm); margin-top: .2rem; }

.nav { display: none; gap: var(--s4); }
@media (min-width: 1000px) { .nav { display: flex; } }
.nav a { font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-warm); transition: color .4s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--off-white); }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .6rem; cursor: pointer; }
@media (min-width: 1000px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--off-white); transition: transform .5s var(--ease), opacity .3s var(--ease); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-panel {
  position: fixed; inset: 0; background: var(--ink-900); z-index: 55;
  display: flex; flex-direction: column; justify-content: center; gap: var(--s2);
  padding: var(--s6) 1.5rem;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
}
.nav-open .nav-panel { opacity: 1; visibility: visible; }
.nav-panel a { font-family: var(--serif); font-size: 2rem; line-height: 1.3; color: var(--off-white); }
.nav-panel a + a { border-top: 1px solid var(--hair-dark); padding-top: var(--s2); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { min-height: 100svh; display: flex; align-items: flex-end; position: relative; padding-top: var(--s7); padding-bottom: var(--s5); }
.hero-inner { width: 100%; }
.hero .display-xl { margin-top: var(--s3); margin-bottom: var(--s4); }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s4); }

/* ==========================================================================
   OVERSIZED STATEMENT
   ========================================================================== */
.statement { font-family: var(--serif); font-size: clamp(1.9rem, 4.6vw, 4rem); line-height: 1.1; letter-spacing: -0.028em; max-width: 20ch; }
.statement--wide { max-width: 26ch; }

/* ==========================================================================
   PHILOSOPHY — pinned sequence
   ========================================================================== */
.seq { position: relative; }
.seq-steps { display: grid; gap: var(--s4); }

@media (min-width: 1000px) {
  .seq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
  .seq-sticky { position: sticky; top: 22vh; }
  .seq-steps { gap: var(--s7); }
}

.seq-step { transition: opacity .8s var(--ease), filter .8s var(--ease); }
@media (min-width: 1000px) {
  .seq-step { opacity: .22; filter: blur(1.5px); }
  .seq-step.is-active { opacity: 1; filter: blur(0); }
}
.seq-step h3 { margin-top: .6rem; margin-bottom: var(--s2); font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.seq-num { font-family: var(--sans); font-size: .68rem; letter-spacing: .22em; color: var(--gold); }

.seq-visual { position: relative; }
.seq-visual .plate { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); transform: scale(1.04); }
.seq-visual .plate.is-active { opacity: 1; transform: scale(1); }
.seq-visual-frame { position: relative; aspect-ratio: 3 / 4; }

/* ==========================================================================
   OFFER SEQUENCE
   ========================================================================== */
.offer { display: block; border-top: 1px solid var(--hair-dark); padding-top: var(--s4); padding-bottom: var(--s4); }
.offer:last-of-type { border-bottom: 1px solid var(--hair-dark); }
.surface-light .offer { border-color: var(--hair-light); }
.offer-grid { display: grid; gap: var(--s3); align-items: start; }
@media (min-width: 900px) { .offer-grid { grid-template-columns: 4rem 1fr 22rem; gap: var(--s4); align-items: center; } }
.offer-num { font-family: var(--sans); font-size: .68rem; letter-spacing: .22em; color: var(--gold); }
.offer h3 { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; }
.offer .plate { transition: transform 1s var(--ease); }
.offer:hover .plate { transform: scale(1.03); }

/* ==========================================================================
   JOURNAL
   ========================================================================== */
.journal { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .journal { grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s4); } }
.journal article .plate { margin-bottom: var(--s3); transition: transform 1s var(--ease); }
.journal article:hover .plate { transform: scale(1.02); }
.journal h3 { margin-top: .6rem; }

/* ==========================================================================
   LISTS
   ========================================================================== */
.list { max-width: var(--measure); }
.list li { position: relative; padding-left: 1.5rem; margin-bottom: .75em; }
.list li::before { content: ""; position: absolute; left: 0; top: .85em; width: .7rem; height: 1px; background: var(--gold); }

.spec { border-top: 1px solid var(--hair-dark); max-width: 44rem; }
.surface-light .spec { border-color: var(--hair-light); }
.spec > div { display: grid; grid-template-columns: 1fr; gap: .2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--hair-dark); }
.surface-light .spec > div { border-color: var(--hair-light); }
@media (min-width: 700px) { .spec > div { grid-template-columns: 13rem 1fr; gap: var(--s3); align-items: baseline; } }
.spec dt { font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-warm); }
.surface-light .spec dt { color: var(--grey-soft); }
.spec dd { margin: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 46rem; border-top: 1px solid var(--hair-dark); }
.surface-light .faq { border-top-color: var(--hair-light); }
.faq details { border-bottom: 1px solid var(--hair-dark); }
.surface-light .faq details { border-bottom-color: var(--hair-light); }
.faq summary { cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; font-family: var(--serif); font-size: 1.15rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .6rem; top: 1.95rem; width: 11px; height: 1px; background: var(--gold); }
.faq summary::before { content: ""; position: absolute; right: 1.1rem; top: 1.45rem; width: 1px; height: 11px; background: var(--gold); transition: opacity .4s var(--ease); }
.faq details[open] summary::before { opacity: 0; }
.faq details > p { padding-bottom: 1.5rem; color: var(--grey-warm); }
.surface-light .faq details > p { color: var(--grey-soft); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form { max-width: 38rem; }
.ly-step { display: none; }
.ly-step.is-active { display: block; }
.ly-form--nojs .ly-step { display: block; }
.ly-form--nojs .ly-stepnav { display: none; }

.ly-progress { margin-bottom: var(--s4); }
.ly-progress-track { height: 1px; background: var(--hair-dark); }
.surface-light .ly-progress-track { background: var(--hair-light); }
.ly-progress-bar { height: 1px; background: var(--gold); width: 0; transition: width .7s var(--ease); }
.ly-progress-label { font-family: var(--sans); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-warm); margin-top: .7rem; }

.ly-field { margin-bottom: var(--s3); }
.ly-field label, .ly-field legend { display: block; font-size: .95rem; margin-bottom: .5rem; max-width: 34rem; }
.ly-field fieldset { border: 0; padding: 0; margin: 0; }
.ly-hint { display: block; font-size: .82rem; color: var(--grey-warm); margin-bottom: .55rem; }
.surface-light .ly-hint { color: var(--grey-soft); }

.ly-field input[type=text], .ly-field input[type=email], .ly-field input[type=tel],
.ly-field input[type=url], .ly-field textarea, .ly-field select {
  width: 100%; background: transparent; color: inherit;
  border: 0; border-bottom: 1px solid var(--hair-dark);
  padding: .8rem 0; font-size: 1rem; font-family: var(--sans); border-radius: 0;
  transition: border-color .5s var(--ease);
}
.surface-light .ly-field input, .surface-light .ly-field textarea, .surface-light .ly-field select { border-bottom-color: var(--hair-light); }
.ly-field input:focus, .ly-field textarea:focus, .ly-field select:focus { border-bottom-color: var(--gold); outline: none; }
.ly-field textarea { min-height: 6.5rem; resize: vertical; line-height: 1.6; }

.ly-choice { display: block; margin-bottom: .7rem; }
.ly-choice input { margin-right: .6rem; accent-color: var(--gold); }

.ly-consent { display: flex; gap: .8rem; align-items: flex-start; font-size: .88rem; color: var(--grey-warm); margin-bottom: var(--s3); max-width: 34rem; }
.surface-light .ly-consent { color: var(--grey-soft); }
.ly-consent input { margin-top: .4rem; flex: 0 0 auto; accent-color: var(--gold); }
.ly-consent a { text-decoration: underline; text-underline-offset: .2em; }

.ly-stepnav { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; margin-top: var(--s3); }
.ly-back { background: none; border: 0; color: var(--grey-warm); cursor: pointer; font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; padding: .5rem 0; }

.ly-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ly-error { color: #C2705F; font-size: .92rem; margin-bottom: var(--s2); }
.ly-note { font-size: .82rem; color: var(--grey-warm); margin-top: var(--s2); }
.surface-light .ly-note { color: var(--grey-soft); }

.ly-booking { max-width: 48rem; }
.ly-booking iframe { width: 100%; min-height: 42rem; border: 0; }
.ly-booking-placeholder { border: 1px solid var(--hair-dark); padding: var(--s5) var(--s3); text-align: center; color: var(--grey-warm); }
.surface-light .ly-booking-placeholder { border-color: var(--hair-light); color: var(--grey-soft); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.colophon { background: var(--ink-900); color: var(--grey-warm); padding-top: var(--s6); padding-bottom: var(--s4); }
.colophon-grid { display: grid; gap: var(--s4); }
@media (min-width: 820px) { .colophon-grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--s4); } }
.colophon a { color: var(--off-white); }
.colophon a:hover { color: var(--gold); }
.colophon ul li { margin-bottom: .55rem; font-size: .9rem; }
.colophon-base { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--hair-dark); font-size: .8rem; }

/* ==========================================================================
   MOTION
   Everything reveals the same way. One easing, one distance, no exceptions.
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .09s; }
[data-reveal-delay="2"] { transition-delay: .18s; }
[data-reveal-delay="3"] { transition-delay: .27s; }

.mask { display: block; overflow: hidden; }
.mask > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.mask.is-in > span { transform: none; }
.mask:nth-of-type(2) > span { transition-delay: .08s; }
.mask:nth-of-type(3) > span { transition-delay: .16s; }

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .mask > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .seq-step { opacity: 1 !important; filter: none !important; }
  .seq-visual .plate { transition: none; }
  * { animation-duration: .01ms !important; }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--gold); color: var(--ink-900); padding: .8rem 1.2rem; z-index: 99; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stack > * + * { margin-top: var(--s3); }
.stack-lg > * + * { margin-top: var(--s4); }

.prose > * + * { margin-top: 1.2em; }
.prose h2 { margin-top: var(--s5); }
.prose ul:not([class]) { max-width: var(--measure); padding-left: 1.2em; }
.prose a { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--gold); }
