/* Selected Ways to work direction, layered over the existing navigation and
   Projects / contact styles in style.css. */
.work-hero,
.ways,
.skill-index,
.posts {
  max-width: 1600px;
  margin-inline: auto;
}

.work-hero {
  padding-top: clamp(72px, 7vw, 116px);
  padding-bottom: clamp(76px, 7vw, 112px);
}

.work-hero h1 {
  max-width: 1160px;
  font-size: clamp(64px, 7.1vw, 112px);
  line-height: .99;
  font-weight: 500;
  letter-spacing: -.068em;
  text-wrap: balance;
}

@media (min-width: 901px) {
  .work-hero h1 span { display: block; }
}

.work-hero .hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin-top: 43px;
}

.work-hero .hero-bottom p {
  max-width: 610px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.56;
}

.work-hero .hero-button {
  flex: none;
  gap: 8px;
  padding: 15px 24px;
}

.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5%;
  padding-top: 0;
  padding-bottom: 0;
}

.way {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  padding: clamp(32px, 3vw, 48px);
  background: var(--surface);
}

.way h2 {
  max-width: 590px;
  font-size: clamp(32px, 3.2vw, 49px);
  line-height: 1.12;
  font-weight: 450;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.way-copy {
  max-width: 550px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.skill-index {
  padding-top: var(--section-gap);
  padding-bottom: 0;
}

.skill-heading {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 9%;
  align-items: end;
  margin-bottom: 50px;
}

.skill-heading h2,
.posts-heading h2,
.story-heading h2 {
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.08;
  font-weight: 450;
  letter-spacing: -.055em;
}

.skill-heading p {
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 7%;
}

.skill-item {
  padding: 25px 0 27px;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.skill-item h3 {
  font-size: clamp(21px, 1.8vw, 27px);
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.skill-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.posts {
  padding-top: 0;
  padding-bottom: clamp(95px, 9vw, 140px);
}

.posts-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.posts-toggle {
  border: 0;
  padding: 8px 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.posts-toggle:hover { color: var(--muted); }
.posts-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }

.more-posts { margin-top: 48px; }
.posts[hidden], .more-posts[hidden] { display: none; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.post-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  background: var(--surface);
}

.post h3 {
  margin-top: 20px;
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.post p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .work-hero h1 { font-size: clamp(58px, 7.4vw, 72px); }
  .way { padding: 30px; }
  .way h2 { font-size: clamp(29px, 3.6vw, 35px); }
  .way-copy { font-size: 16px; }
  .skill-heading { gap: 6%; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .work-hero {
    padding-top: 62px;
    padding-bottom: 68px;
  }
  .work-hero h1 {
    max-width: 620px;
    font-size: clamp(47px, 9.2vw, 65px);
    line-height: 1.02;
  }
  .work-hero .hero-bottom {
    display: block;
    margin-top: 31px;
  }
  .work-hero .hero-bottom p { font-size: 17px; }
  .work-hero .hero-button { margin-top: 27px; }
  .ways { display: block; }
  .way { min-height: 0; padding: 29px; margin-bottom: 17px; }
  .way h2 { font-size: clamp(30px, 6.2vw, 40px); }
  .way-copy { margin-top: 16px; }
  .skill-index { padding-top: var(--section-gap); padding-bottom: 0; }
  .skill-heading { display: block; margin-bottom: 32px; }
  .skill-heading h2 { font-size: 42px; }
  .skill-heading p { margin-top: 20px; font-size: 16px; }
  .skill-list { display: block; }
  .skill-item { padding: 21px 0 23px; }
  .posts { padding-top: 0; padding-bottom: 75px; }
  .posts-heading h2, .story-heading h2 { font-size: 42px; }
  .post-grid { display: block; }
  .post { margin-bottom: 38px; }
  .post:last-child { margin-bottom: 0; }
}

@media (max-width: 600px) {
  .work-hero { padding-top: 55px; }
  .work-hero h1 { font-size: clamp(43px, 11vw, 57px); }
  .way { padding: 26px; }
  .way h2 { font-size: clamp(29px, 8vw, 38px); }
  .way-copy { font-size: 16px; }
  .skill-heading h2, .posts-heading h2, .story-heading h2 { font-size: 39px; }
  .posts-heading { align-items: end; }
}
