/* === MKRST Child: Theme visuals for Subfracture === */

html {
  overflow-x:hidden;
}

#main {
  background: var(--sf-white);
}

/* Header Styles */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  padding: 1.2rem 0;
}
.header-block.sticky__nav {
  height: auto;
  gap: 0;
  align-items: end;
}
.header-block.sticky__nav .nav {
  justify-self: end;
}

.sticky__nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
}
.sticky__nav.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .sticky__nav {
    transition: none;
  }
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
}
.site-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.header-block .logo {
  max-width: 6.7em;
}
.site-tagline {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  opacity: 0.65;
}
.primary-nav .menu {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}
.primary-nav .menu li {
  margin: 0;
}
.primary-nav .menu a {
  font-weight: 500;
}

.timezones {
  display: flex;
  gap: 0.8rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* HERO */
/* Parallax hero */
.hero {
  position: relative;
  height: 75vh; /* >100vh makes room for the scroll-over */
  overflow: visible; /* allow following content to cover it */
}
.hero .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  z-index: 0;
  pointer-events: none;
  backdrop-filter: blur(60px);
  filter: grayscale(1);

  /* Smooth transitions for hover in/out */
  transition:
    filter 0.4s ease,
    backdrop-filter 0.4s ease,
    background 0.4s ease;
}

.hero__sticky:hover .hero__media::after {
  filter: none;
  backdrop-filter: none;
  background: transparent;
}

/* Ensure hero children sit above the overlay */
.hero > * {
  position: relative;
  z-index: 2;
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 75vh; /* the visible viewport area */
  overflow: hidden; /* crop media while sticky */
}

.hero__media,
.hero__colour,
.hero__image,
.hero__video,
.hero__embed,
.hero__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 115vh; /* slightly taller for parallax room */
}

.hero__image,
.hero__video {
  object-fit: cover;
}

/* .hero__watermark {
  display:none;  hide by default 
}*/

.hero__watermark,
.intro-inner h1,
.intro-title,
.intro-lede,
.reveal,
.reveal-stagger > * {
  opacity: 0;
}

.hero__watermark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7em;
  pointer-events: none;
  transform: translateY(0);
  will-change: transform;
  z-index: 1;
  width: 100vw;
}
.hero__watermark img {
  width: 100vw;
  padding-inline: 2vw;
  padding-block: 2vw 0;
}

/* Only hide the cursor over the hero area */
.hero {
  cursor: none;
}

/* Cursor-replacing Play pill (created by JS) */
.hero__play-cursor {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%) scale(1);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: #fff;
  color: #000;
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 500;
  letter-spacing: -0.3px;
  font-family: sans-serif;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 2147483647;
  opacity: 0;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

/* Triangle icon */
.hero__play-cursor .icon {
  width: 0;
  height: 0;
  border-left: 14px solid currentColor;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

/* Subtle press feedback */
.hero__play-cursor.is-down {
  transform: translate(-50%, -50%) scale(0.96);
}

/* Lightbox overlay */
.sf-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: grid;
  place-items: center;
  z-index: 2147483646;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.sf-lightbox.is-open {
  opacity: 1;
}
.sf-lightbox__inner {
  width: min(90vw, 1200px);
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.sf-lightbox__inner video,
.sf-lightbox__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sf-lightbox__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  border: 0;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
}
body.sf-modal-open {
  overflow: hidden;
} /* lock scroll while open */

/* Intro block */
.intro-block {
  background: #fff;
  padding: 3rem 0 1rem;
  position: relative;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Floating yellow orb glow */
.intro-block::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 120%; /* start near bottom */
  width: 120vmin;
  height: 80vmin;
  background: radial-gradient(
    ellipse at center,
    rgb(133 133 133) 10%,
    rgb(255 255 255 / 28%) 38%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: orb-drift 8s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
}

/* Ensure text stays above the orb */
.intro-block > * {
  position: relative;
  z-index: 1;
}

/* Gentle idle drift animation */
@keyframes orb-drift {
  0% {
    top: 100%;
    left: 20%;
  }

  50% {
    top: 110%;
    left: 80%;
  }

  100% {
    top: 100%;
    left: 20%;
  }
}

.intro-inner {
  text-align: center;
  position: relative;
  padding-inline: 12vw;
}
.intro-inner h1 {
  margin: 0 auto;
  text-align: center;
  max-width: clamp(20ch, 50vw, 28ch);
}
.intro-inner.align-left {
  text-align: left;
}
.intro-inner.align-right {
  text-align: right;
}
.intro-title {
  font-size: clamp(2rem, 6vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 2rem 0 1rem;
}
.intro-lede {
  max-width: 32ch;
  margin-inline: auto;
  opacity: 0.8;
  font-size: clamp(1.4rem, 4vw, 2rem);
  padding-block: 0.3em 1.5em;
}
.intro-inner.align-left .intro-lede {
  margin-left: 0;
  margin-right: auto;
}
.intro-inner.align-right .intro-lede {
  margin-right: 0;
  margin-left: auto;
}
.intro-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  transform: translateX(-50%);
  top: 30%;
  width: min(90vw, 930px);
  height: 380px;
  filter: blur(60px);
  border-radius: 100%;
}

/* Logo strip */
.logo-strip {
    padding-block: 5rem 2rem;
    background: #fff;
}
.logo-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(8, minmax(80px, 1fr));
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}
.logo-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}
.logo-grid img {
    max-height: 38px;
    max-width: 120px;
  width: auto;
  opacity: 1;
}

.logo-placeholder {
  font-size: 0.8rem;
  opacity: 0.5;
  border: 1px dashed #ccc;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  display: inline-block;
}

/* Offices */
.offices {
  background: #fff;
  padding: 2rem 0 3rem;
}
.offices-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.office h4 {
  margin-block: 0.6em 0.2em;
}
.office p {
  opacity: 0.8;
  margin-block: 0.6em 0.2em;
}

/* Sticky Footer */

.sf-closer {
  background: var(--sf-black);
  color: var(--sf-white);
  position: sticky;
  bottom: 0;
  z-index: -1;
  height: 480px;
}

.sf-closer__bigtype {
  padding-block: 0 0;
  line-height: 0.85;
  letter-spacing: -0.02em;
  font-weight: 800;
  font-size: clamp(3rem, 14vw, 16rem);
  bottom: -0.37em;
  position: relative;
  filter: invert(1);
}

.sf-closer__bigtype img {
  width: 70%;
}

.sf-closer__bigtype span {
  display: block;
}

.sf-closer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 2rem;
}

.sf-closer__offices {
  display: flex;
  gap: 2rem;
}

.sf-closer__mark {
  justify-self: end;
  align-self: start;
}

.sf-mark {
  font-size: 2rem;
  font-weight: 700;
}

.parallax-main {
  z-index: 2;
  position: relative;
}

:root {
  --sf-peek: 14vh;
}

.sf-closer__top {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  padding: 2rem;
  background: var(--sf-black);
  z-index: 2;
  height: 480px;
  align-content: space-between;
  overflow: hidden;
}

/* End New Footer */

.site-footer {
  background: var(--sf-black);
  color: var(--sf-white);
  padding-block: 1em;
  padding-inline: 2em;
  border-top: 1px solid var(--sf-white);
}
.site-footer .menu {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/**********************v Homepage Styles */

/* Site Header */

.header-block {
  display: grid;
  grid-template-columns: 1fr 3fr; /* two columns */
  grid-template-rows: auto auto; /* two rows, equal height */
  gap: 2em;
  height: 25vh;
  padding: 2em;
}

/* Top-left */
.header-block .logo {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  font-weight: 600;
  letter-spacing: -0.2px;
  font-size: 1em;
}

/* Bottom-middle */
.header-block .clocks {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: start;
}
.header-block .clock-bne {
  margin-right: 1em;
}

/* Bottom-left */
.header-block .tagline {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  justify-self: start;
}

/* Top-middle */
.header-block .nav {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: start;
}

/* Bottom-right */
.scroll-indicator {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: end;
}

/* Menu layout */
.header-block .nav .menu {
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Optional: tighten vertical rhythm */
.header-block .logo,
.header-block .clocks,
.header-block .tagline,
.header-block .nav {
  line-height: 1;
}

/********* Team Grid (section-team_grid.php) styles */
/********* Team Grid — Option 1 (bio INSIDE the grid) *********/

.sf-team__block {
  padding-block:4em;
}

.sf-team__block .sf-team__inner {
  width: 100%;
  max-width: none;
  padding: 0;
}

/* Grid */
.sf-team__grid {
  --edge: 1.5rem; /* set 0 for true edge-to-edge */
  --hair: #d9d9d9; /* hairline colour */
  --ar: 1/1; /* 1/1 squares; change to 4/3 if preferred */

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin:0;

  clip-path: inset(0 1.5em 0 0);
  margin-right: -1.5em;
}
@media (max-width: 1200px) {
  .sf-team__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .sf-team__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .sf-team__grid {
    grid-template-columns: 1fr;
  }
}

.sf-team__member {
  margin: 0;
}

.sf-team__card {
  appearance: none;
  border: 0;
  background: #fff;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-rows: auto auto;
  gap: 0;
  box-shadow: none;
  transform: none;
}
.sf-team__card:hover,
.sf-team__card:focus {
  box-shadow: none;
  transform: none;
}

.sf-team__profile, .sf-team__bio-photo {
  aspect-ratio: var(--ar);
}
.sf-team__profile img, .sf-team__bio-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sf-team__details {
  background: transparent;
  border: 0;
  padding: 0.9rem 0.25rem 1.05rem 0;
  text-align: initial;
}
.sf-team__title, .sf-team__role {
  display: block;
}

.sf-team__title, .sf-team__role {
  color: #000 !important;      /* inherit text colour from parent */
  text-decoration: none;
}
.sf-team__block.is-open .sf-team__grid { clip-path: none; margin-right: 0; }

/* Bio bar spans the first grid row */
.sf-team__bio {
  grid-column: 1 / -1;
  grid-row: 1;
  display: none;
  position: relative;
  z-index: 2;
  background: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.sf-team__bio-body > div {
    border-block: 1px solid var(--sf-black);
}
.sf-team__bio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.25rem var(--edge) 0.75rem;
  border-bottom: 1px solid var(--hair);
}
.sf-team__bio-title h3 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.1;
}
.sf-team__bio-title p {
  margin: 0;
  opacity: 0.85;
}
.sf-team__bio-last_col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 1.5em;
    justify-content:space-between;
}
.sf-team__bio-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #111;
    opacity: 0.85;
    padding-block: 1em;
}
.sf-team__profile {
  border-block: 1px solid var(--sf-black);
}
.sf-bio__photo, .sf-team__details {
      border-bottom: 1px solid var(--sf-black);
}
.sf-team__profile, .sf-team__bio-photo, .sf-team__details {
    padding-block: 0.8em;
    padding-inline: 0 1.5em;
}
.sf-team__bio-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  padding-block:1.5em;
}
.bio-details__top h3, .bio-details__top p {
    margin: 0;
    padding: 0;
    font-weight:400;
    font-size:inherit;
}

.sf-team__bio-body {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
}
@media (max-width: 900px) {
  .sf-team__bio-body {
    grid-template-columns: 1fr;
  }
}

.sf-team__bio-copy {
  line-height: 1.55;
  max-width: 62ch;
}
.sf-team__bio-cta {
    display: flex
;
    flex-direction: row;
    gap: 0.6em;
}
.sf-team__bio-cta a {
  text-decoration: none;
  display:inline-block;
  padding-block: 1.5em;
}
.sf-team__bio-link[aria-hidden="true"] {
  display: none;
}
.st-team__block {
    max-width:100dvw;
}

/* Open state — keep the rail, hide only image row (height preserved) */
.sf-team__block.is-open .sf-team__bio {
  display: block;
  opacity: 1;
  transform: none;
  max-width:100%;
}
.sf-team__block.is-open .sf-team__profile {
  display:none;
}
.sf-team__block.is-open .sf-team__grid {
  border-top: 0;
  padding-top: 0;
}

/* Hide the native disclosure marker everywhere */
details.sf-team__accordion > summary.sf-team__summary {
  list-style: none !important;      /* most important bit (WebKit/Firefox) */
  padding-left: 0;                   /* remove the space the marker reserved */
}

details.sf-team__accordion > summary.sf-team__summary::-webkit-details-marker {
  display: none !important;          /* Safari/Chrome */
}

details.sf-team__accordion > summary.sf-team__summary::marker {
  content: "" !important;            /* Firefox */
}

/* Default: desktop grid visible, mobile accordion hidden */
.sf-team__block--desktop { display:block; }
.sf-team__block--mobile  { display:none; }

@media (max-width: 1200px){
.sf-team__block--desktop { display:none; }
.sf-team__block--mobile  { display:block; }

.sf-team__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
}
.sf-team__profile {
  border-top:0;
  border-bottom: 1px solid var(--sf-black);
}
.sf-team__list .sf-team__member--mobile .sf-team__details {
  border-bottom: 1px solid var(--sf-black);
}
  
  .sf-team__profile {
    padding-inline: 0;
}
  .sf-bio__photo, .sf-team__details {
    border:0;
  }
.sf-team__socials {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.sf-team__socials li {
    margin-right: 0.5em;
}
.sf-team__socials li:last-child {
    margin-right: 0;
}
}

@media (max-width: 660px){

  .sf-team__list {
    display: initial;
}
  .sf-team__list .sf-team__member--mobile:last-child .sf-team__details {
    border-bottom: 1px solid var(--sf-black);
}
.sf-team__profile img, .sf-team__bio-photo img {
  height: 340px;
}

}

