/* About slide */

.slide--about .blob {
  left: 920px;
  top: 120px;
  width: 560px;
  height: 600px;
  filter: blur(120px);
}

/* Right side: stripe with dots, big outlined ABOUT, seated portrait */
.a-strip {
  left: 860px;
  top: 0;
  width: 520px;
  height: 900px;
  clip-path: polygon(210px 0, 420px 0, 330px 380px, 520px 380px, 520px 900px, 40px 900px);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

.a-strip--base {
  background: var(--strip);
}

.a-strip--lens {
  pointer-events: none;
}

.a-strip .strip-glow {
  background: radial-gradient(circle at 60% 35%, rgba(30, 111, 255, 0.55), transparent 62%);
}

.a-word {
  right: 40px;
  top: 118px;
  font-family: var(--font-display);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 150px;
  line-height: 0.86;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--outline);
  opacity: 0.55;
}

.a-word--lens {
  position: absolute;
  right: -20px;
  top: 118px;
  color: rgba(255, 255, 255, 0.06);
  -webkit-text-stroke: 1.4px var(--lens-line);
  opacity: 1;
}

.a-photo-wrap {
  left: 740px;
  bottom: 0;
}

.a-photo {
  height: 780px;
  width: auto;
  max-width: none;
  filter: var(--photo2);
}

.a-head {
  left: 84px;
  top: 128px;
  width: 680px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.a-head-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.a-head .sec-title {
  position: relative;
  text-shadow: 2px 0 0 var(--split), -2px 0 0 rgba(0, 200, 255, 0.5);
}

.a-intro {
  max-width: 620px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
}

/* Tabs */
.tabs {
  left: 84px;
  top: 296px;
  display: flex;
  gap: 10px;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  white-space: nowrap;
  clip-path: var(--cut-10);
}

.tab:hover {
  border-color: var(--accent);
}

/* The cut corner clips outlines, so draw the focus ring inside */
.tab:focus-visible {
  outline-offset: -5px;
}

.tab-num {
  margin-right: 10px;
  color: var(--muted);
}

.tab-short {
  display: none;
}

.tab[aria-selected="true"] {
  background: var(--name);
  border-color: var(--name);
  color: var(--bg);
}

.tab[aria-selected="true"] .tab-num {
  color: var(--accent);
}

/* Tab content */
.a-content {
  left: 84px;
  top: 374px;
  width: 660px;
  height: 470px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mastery-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mastery-head i {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  clip-path: var(--octagon);
}

.mastery-head b {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--name);
}

.mastery-head span {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.mastery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tile {
  position: relative;
  height: 74px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--glass);
  border: 1px solid var(--accent);
  box-shadow: inset 0 0 0 1px var(--mastery-inner);
  clip-path: var(--cut-12);
}

.tile-ico {
  width: 24px;
  height: 24px;
}

.tile-name {
  font-family: var(--font-display);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.1;
  color: var(--name);
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.divider span {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.group-label {
  padding-top: 7px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.group-items span {
  padding: 5px 10px;
  border: 1px solid var(--rule);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--body);
}

/* How I solve problems */
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "num icon" "title title" "text text";
  gap: 10px;
  align-content: start;
  min-height: 190px;
  padding: 20px 20px 22px;
  background: var(--glass);
  border: 1px solid var(--rule);
}

.step-num {
  grid-area: num;
  font-family: var(--font-display);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--accent);
}

.step-icon {
  grid-area: icon;
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

.step-title {
  grid-area: title;
  font-family: var(--font-display);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 17px;
  color: var(--name);
}

.step-text {
  grid-area: text;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
}

/* Goals */
.goals {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.goal {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 22px;
  background: var(--glass);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--edge);
}

.goal-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.goal-when {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.goal-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 22px;
  color: var(--edge);
}

.goal-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.goal-title {
  font-family: var(--font-display);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 18px;
  color: var(--name);
}

.goal-text {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--body);
}

/* Phone and tablet ------------------------------------------------------- */

@media (max-width: 1023.98px) {
  .slide--about .blob,
  .a-word,
  .a-strip--lens {
    display: none;
  }

  .a-strip {
    left: var(--a-strip-x);
    width: var(--a-strip-w);
    height: 100%;
    clip-path: polygon(50% 0, 92% 0, 50% 100%, 8% 100%);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .a-photo-wrap {
    left: 0;
    right: 0;
    top: var(--a-photo-top);
    bottom: auto;
    display: flex;
    justify-content: center;
    pointer-events: none;
  }

  .a-photo {
    height: var(--a-photo-h);
  }

  .a-head {
    left: var(--pad-x);
    top: var(--a-title-top);
    width: var(--a-title-w);
    gap: 12px;
  }

  .a-head .sec-meta,
  .a-intro {
    display: none;
  }

  .tabs {
    left: var(--pad-x);
    right: var(--pad-x);
    top: var(--a-tabs-top);
    gap: 8px;
  }

  .tab {
    flex: var(--a-tab-flex);
    justify-content: center;
    height: var(--a-tab-h);
    padding: 0 14px;
    font-size: var(--a-tab-fs);
    letter-spacing: 0.14em;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    background: var(--glass-bar);
  }

  .tab[aria-selected="true"] {
    background: var(--name);
  }

  .tab-num,
  .tab-long {
    display: none;
  }

  .tab-short {
    display: inline;
  }

  .a-content {
    --about-bottom: calc(
      var(--tab-bottom) + var(--menu-base) * 1.5 + (var(--menu-base) + var(--menu-gap)) + 10px +
        env(safe-area-inset-bottom, 0px)
    );
    left: var(--pad-x);
    right: var(--pad-x);
    top: var(--a-content-top);
    bottom: var(--about-bottom);
    width: auto;
    height: auto;
    padding: 14px 14px 16px;
    background: var(--glass-bar);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--rule);
  }

  .stack {
    gap: 14px;
  }

  .mastery-head {
    gap: 10px;
  }

  .mastery-head i {
    width: 9px;
    height: 9px;
  }

  .mastery-head b {
    font-size: 10.5px;
  }

  .mastery-head span {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .mastery-grid {
    gap: 8px;
  }

  /* Mastery tiles show the logo only. The name is a tooltip on tap or hover. */
  .tile {
    height: var(--tile-h);
    padding: 0;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    box-shadow: none;
    clip-path: none;
  }

  .tile::before,
  .tile::after {
    content: "";
    position: absolute;
    clip-path: var(--cut-10);
  }

  .tile::before {
    inset: 0;
    background: var(--accent);
  }

  .tile::after {
    inset: 1px;
    background: var(--chip);
  }

  .tile-ico {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
  }

  .tile-name {
    display: none;
  }

  .divider {
    gap: 12px;
    margin-top: 4px;
  }

  .divider span {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .group-label {
    padding-top: 0;
    font-size: 9.5px;
  }

  .group-items {
    gap: 5px;
  }

  .group-items span {
    padding: 4px 9px;
    font-size: 11px;
    letter-spacing: 0;
  }

  .groups {
    gap: 14px;
  }

  .steps {
    grid-template-columns: var(--how-cols);
    gap: 10px;
  }

  .step {
    grid-template-columns: auto 1fr;
    grid-template-areas: "num title" "text text";
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
    min-height: 0;
    padding: 16px;
  }

  .step-icon {
    display: none;
  }

  .step-num {
    font-size: 24px;
    -webkit-text-stroke-width: 1.1px;
  }

  .step-title {
    font-size: 15px;
  }

  .step-text {
    font-size: 13.5px;
  }

  .goals {
    gap: 10px;
  }

  .goal {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
  }

  .goal-meta {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .goal-when {
    font-size: 9.5px;
  }

  .goal-tag {
    font-size: 16px;
  }

  .goal-title {
    font-size: 16px;
  }

  .goal-text {
    font-size: 13.5px;
  }
}

@media (min-width: 600px) and (max-width: 1023.98px) {
  .tile-ico {
    width: 30px;
    height: 30px;
  }
}
