/*
 * buroo.html lehe-spetsiifiline CSS
 */

:root {
  --office-bg: var(--color-bg);
  --office-ink: var(--color-ink);
  --office-heading-text: var(--color-text-body-soft);
  --office-body-text: var(--color-text-body-soft);
  --office-lead-text: var(--color-text-body-soft);
  --office-accent: var(--color-brand);
  --office-accent-deep: var(--color-brand-deep);
  --office-line: var(--color-line-soft);
  --office-line-strong: var(--color-line-strong);
}

.content.office-story-content {
  width: min(1120px, 92vw);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(96px, 11vw, 152px) 0 clamp(88px, 10vw, 132px);
  background: var(--office-bg);
  color: var(--office-ink);
}

.office-section {
  width: 100%;
}

.office-section + .office-section {
  margin-top: clamp(60px, 8vw, 108px);
}

.office-section + .office-promise {
  margin-top: clamp(72px, 9vw, 118px);
}

.office-body {
  margin: 0;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.58;
  font-weight: 420;
  letter-spacing: 0.003em;
  color: var(--office-body-text);
}

.office-body + .office-body {
  margin-top: clamp(24px, 2.5vw, 32px);
}

.office-body:empty {
  display: none;
}

.office-hero {
  padding-top: 0;
}

.office-intro {
  width: 100%;
  max-width: 920px;
  margin: 0 auto clamp(56px, 7vw, 92px);
  text-align: center;
}

.office-kicker {
  margin: 0 0 18px;
  color: var(--office-accent);
  font-size: 13px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: none;
}

.office-title {
  margin: 0;
  color: var(--office-heading-text);
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: 0;
}

.office-lead {
  max-width: 860px;
  margin: clamp(30px, 4vw, 48px) auto 0;
  color: var(--office-lead-text);
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.42;
  font-weight: 420;
}

.office-panel-title,
.office-section-title {
  margin: 0;
  color: var(--office-heading-text);
  font-size: clamp(23px, 2.1vw, 34px);
  line-height: 1.24;
  font-weight: 650;
}

.intro-title-accent {
  color: inherit;
}

.office-story-panel,
.office-callout-section,
.office-origin {
  width: min(100%, 980px);
  margin-inline: auto;
}

.office-story-panel {
  display: block;
  padding: clamp(34px, 5vw, 58px) 0;
  border-top: 1px solid var(--color-line-subtle);
  border-bottom: 1px solid var(--color-line-subtle);
}

.office-panel-title {
  color: var(--office-accent);
}

.office-body-flow {
  display: grid;
  gap: clamp(24px, 2.5vw, 32px);
  margin-top: 28px;
}

.office-callout-section {
  text-align: center;
}

.office-callout {
  max-width: 980px;
  margin: 0 auto;
  color: var(--office-accent);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.003em;
  white-space: nowrap;
}

.office-origin {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 400px);
  gap: clamp(36px, 4.4vw, 60px);
  justify-content: space-between;
  align-items: start;
  padding-top: clamp(4px, 1vw, 14px);
}

.office-origin .office-kicker {
  margin-bottom: 34px;
}

.office-today-kicker {
  margin: clamp(28px, 3.4vw, 42px) 0 0;
}

.office-today-kicker + .office-body {
  margin-top: calc(-1 * clamp(24px, 2.5vw, 32px) + 18px);
}

.founder-portrait {
  margin: 47px 0 0;
  justify-self: end;
}

.office-origin--landscape-image {
  display: block;
}

.office-origin--landscape-image .office-origin-copy {
  width: min(760px, 100%);
  margin-inline: auto;
}

.office-origin--landscape-image .founder-portrait {
  width: min(760px, 100%);
  margin: clamp(34px, 4vw, 52px) auto 0;
  justify-self: auto;
}

.office-origin--landscape-image .portrait-frame {
  max-width: none;
  aspect-ratio: 16 / 9;
}

.office-origin--no-image {
  display: block;
}

.office-origin--no-image .office-origin-copy {
  width: min(760px, 100%);
  margin-inline: auto;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(138, 87, 66, 0.08);
  filter: none;
  transform: translateZ(0) scale(1);
  transition: transform 400ms ease, filter 400ms ease;
}

.portrait-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  mix-blend-mode: normal;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--office-line);
  pointer-events: none;
}

.founder-portrait:hover .portrait-frame {
  filter: brightness(1.04);
  transform: translateZ(0) scale(1.02);
}

.portrait-caption {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 580;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(138, 87, 66, 0.74);
}

.office-promise {
  position: relative;
  padding-top: clamp(60px, 7vw, 96px);
  padding-bottom: 0;
  border-top: 0;
}

.office-promise::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(760px, 100%);
  height: 1px;
  background: var(--office-line);
  transform: translateX(-50%);
}

.promise-text {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: 0.003em;
  text-align: center;
  color: var(--office-heading-text);
}

.reveal-section {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 720ms ease-out, transform 720ms ease-out;
}

.reveal-section.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.office-text-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 560ms cubic-bezier(0.19, 1, 0.22, 1),
    color 200ms ease;
  transition-delay: var(--office-text-delay, 0ms);
}

.reveal-section.is-revealed .office-text-reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section,
  .office-text-reveal,
  .portrait-frame {
    transition: none;
  }

  .reveal-section,
  .office-text-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .content.office-story-content {
    width: min(1000px, 94vw);
    padding: 88px 0 88px;
  }

  .office-section + .office-section {
    margin-top: clamp(56px, 13vw, 72px);
  }

  .office-section + .office-promise {
    margin-top: clamp(72px, 16vw, 88px);
  }

  .office-hero {
    padding-top: 0;
  }

  .office-intro {
    text-align: left;
  }

  .office-title,
  .office-section-title {
    font-size: clamp(42px, 13vw, 72px);
  }

  .office-panel-title {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.16;
  }

  .office-section-title {
    font-size: clamp(34px, 9vw, 52px);
    line-height: 1.08;
  }

  .office-lead {
    font-size: clamp(20px, 5.5vw, 27px);
  }

  .office-callout {
    white-space: normal;
  }

  .office-story-panel,
  .office-callout-section,
  .office-origin {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .portrait-frame {
    max-width: min(100%, 420px);
  }

  .founder-portrait {
    margin-top: 0;
  }

  .office-promise {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .promise-text {
    font-size: clamp(20px, 5.5vw, 27px);
    text-align: center;
  }
}
