/* =========================================================
   FEATURED WORK  (design: 1512px wide, everything scales with the window)
   title 64 · intro 24 · item title 24 · item text 20
   phone: title 36 · intro 14 · year 14 · item title 16 · item text 14
   ========================================================= */
#work,
#research,
#mind,
#about {
  --u: calc(min(100vw, 1550px) / 1512);
  --w-h: clamp(36px, 4.233 * var(--vw), 96px);
  --w-sub: clamp(14px, 1.587 * var(--vw), 32px);
  --w-ttl: clamp(16px, 1.587 * var(--vw), 32px);
  --w-ctx: clamp(14px, 1.323 * var(--vw), 28px);
  --w-pill: clamp(12px, 1.058 * var(--vw), 22px);
  --pt: .4em;
  --pb: .5em;
  padding: clamp(40px, 7.3 * var(--vw), 140px) var(--pad) clamp(40px, 3.7 * var(--vw), 72px)
}

/* title with the count */
.wk-h {
  text-align: center;
  font: 800 var(--w-h)/.82 'Urbanist', 'Outfit', sans-serif;
  letter-spacing: -.07em;
  text-transform: uppercase
}

.wk-h .w1 {
  position: relative;
  display: inline-block
}

.wk-h sup {
  position: absolute;
  left: 100%;
  top: -.42em;
  margin-left: .03em;
  font: 600 .44em/1 'Outfit', sans-serif;
  letter-spacing: 0;
  color: var(--acc)
}

.wk-s {
  margin-top: calc(var(--w-h) * .4);
  font: 400 var(--w-sub)/1.08 'Playfair Display', Georgia, serif;
  text-align: center
}

#lw,
#lr,
#lm {
  margin-top: calc(var(--w-h) * .56)
}

/* one block per year: year on the left, rows on the right */
.wk-g {
  display: grid;
  grid-template-columns: 434fr 934fr;
  border-top: 1px solid var(--line)
}

.wk-g:last-child {
  border-bottom: 1px solid var(--line)
}

.wk-y {
  padding-top: var(--pt);
  font: 400 var(--w-ttl)/1.1 'Outfit', sans-serif
}

.it {
  position: relative;
  display: grid;
  grid-template-columns: calc(73 * var(--u)) 1fr;
  padding: var(--pt) 0 var(--pb);
  font: 600 var(--w-ttl)/1.1 'Outfit', sans-serif;
  color: var(--fg)
}

.it+.it {
  border-top: 1px solid var(--line)
}

.it:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: -2px
}

.it .n {
  padding-left: calc(5 * var(--u))
}

.it h3 {
  max-width: calc(605 * var(--u));
  font: inherit
}

.it .d {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: .08em
}

.it p {
  max-width: calc(605 * var(--u));
  font: 400 var(--w-ctx)/1.1 'Outfit', sans-serif;
  opacity: .85
}

.it .tg {
  flex: none;
  margin-left: auto;
  padding: .2em .9em;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font: 400 var(--w-pill)/1 'Outfit', sans-serif
}

.it .ar {
  position: absolute;
  top: calc(var(--pt) + .25em);
  right: 0;
  width: .6em;
  height: .6em;
  color: var(--acc)
}

.it .ar svg {
  display: block;
  width: 100%;
  height: 100%
}

/* More */
.wk-more {
  display: flex;
  justify-content: center;
  margin-top: calc(19 * var(--u))
}

.more {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  padding: .25em 1.1em;
  border: 1px solid var(--acc);
  border-radius: 999px;
  color: var(--acc);
  font: 600 var(--w-pill)/1 'Outfit', sans-serif;
  text-transform: uppercase
}

.more .arr {
  width: .6em;
  height: .6em;
  margin: 0;
  color: inherit
}

/* =========================================================
   EMERGING QUESTIONS  (same title / intro as Featured Work)
   number | title | description, no year column
   ========================================================= */
.rs-l {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

#research .it {
  grid-template-columns: calc(68 * var(--u)) calc(647 * var(--u)) 1fr;
  line-height: 1.13
}

#research .it .n {
  padding-left: 0
}

#research .it h3 {
  max-width: calc(580 * var(--u));
  font-weight: 400
}

#research .it p {
  max-width: calc(510 * var(--u));
  margin-top: .05em
}

#research .it .d {
  margin-top: 0
}

#research .it .tg {
  padding: .25em .9em
}

#research .it .ar {
  top: calc(var(--pt) + .15em)
}

/* phone */
@media (max-width: 700px) {
  #work,
  #research,
  #mind,
  #about {
    --pt: .7em;
    --pb: .9em
  }

  .wk-h sup {
    top: -.3em;
    font-size: .5em
  }

  .wk-g {
    display: block
  }

  .wk-y {
    padding: .55em 0 0;
    font-size: var(--w-sub)
  }

  .it {
    display: block
  }

  .it:first-child {
    padding-top: .5em
  }

  .it .n {
    display: none
  }

  .it h3 {
    max-width: none;
    padding-right: 1.6em;
    font-weight: 500
  }

  .it .d {
    margin-top: 10px
  }

  .it p {
    max-width: none
  }

  .it .ar {
    width: .65em;
    height: .65em
  }

  .wk-more {
    margin-top: 19px
  }
}

@media (max-width: 700px) {
  #research .it {
    display: block;
    line-height: 1.1
  }

  #research .it h3 {
    max-width: none;
    font-weight: 400
  }

  #research .it p {
    max-width: none;
    margin-top: 0
  }

  #research .it .d {
    display: block;
    margin-top: 10px
  }

  #research .it .tg {
    display: block;
    width: fit-content;
    margin: 5px 0 0 auto
  }

  #research .it .ar {
    top: calc(var(--pt) + .05em)
  }
}

/* =========================================================
   PASSING THOUGHTS  (same title / intro as the other sections)
   number | image | title + date at the bottom
   title 24 · date 16   |   phone: title 14 · date 12
   ========================================================= */
#mind {
  --w-ttl: clamp(14px, 1.587 * var(--vw), 32px)
}

#mind .it {
  grid-template-columns: calc(59 * var(--u)) calc(250 * var(--u)) 1fr;
  padding-bottom: .8em;
  line-height: 1.1
}

#mind .it .n {
  padding-left: 0
}

#mind .im {
  margin-top: .25em;
  aspect-ratio: 338 / 222;
  background-color: #d9d9d9;
  background-image: var(--img, none);
  background-size: cover;
  background-position: center
}

#mind .it .b {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: calc(31 * var(--u))
}

#mind .it h3 {
  max-width: calc(560 * var(--u));
  font-weight: 400
}

#mind .dt {
  margin-bottom: .3em;
  font: 400 var(--w-pill)/1.1 'Outfit', sans-serif
}

#mind .it .ar {
  top: calc(var(--pt) + .13em)
}

@media (max-width: 700px) {
  #mind .it {
    display: grid;
    grid-template-columns: 39% 1fr;
    column-gap: 17px;
    padding: 12px 0
  }

  #mind .it:first-child {
    padding-top: 12px
  }

  #mind .im {
    margin-top: 0;
    aspect-ratio: 1.4
  }

  #mind .it .b {
    padding-left: 0;
    padding-right: 1.6em
  }

  #mind .it h3 {
    max-width: none;
    padding-right: 0
  }

  #mind .dt {
    margin-bottom: .5em
  }

  #mind .it .ar {
    top: 13px
  }
}

/* =========================================================
   ABOUT TEASER  (asterisk, big statement, photo, short text, button)
   statement 64 · text 24   |   phone: statement ~32 · text 16
   ========================================================= */
#about {
  --w-h: clamp(32px, 4.233 * var(--vw), 96px);
  --w-sub: clamp(16px, 1.587 * var(--vw), 32px);
  padding-bottom: clamp(56px, 6 * var(--vw), 120px)
}

.as {
  display: block;
  width: clamp(39px, 4.56 * var(--vw), 90px);
  height: auto;
  margin: 0 auto;
  color: var(--acc)
}

.ab-t {
  margin-top: .77em;
  text-align: center;
  font: 700 var(--w-h)/.82 'Cottorway', 'Outfit', sans-serif;
  text-transform: uppercase
}

.ab-t .ln {
  display: block
}

.ab-t .m {
  display: none
}

.ab-i {
  display: block;
  width: 100%;
  aspect-ratio: 1368 / 396;
  margin-top: calc(var(--w-h) * .85);
  object-fit: cover;
  object-position: 50% 46%
}

.ab-b {
  margin-top: calc(29 * var(--u));
  padding: .5em 0 .8em;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.ab-p {
  max-width: calc(730 * var(--u));
  margin: 0 auto;
  font: 400 var(--w-sub)/1.08 'Playfair Display', Georgia, serif;
  text-align: center
}

@media (max-width: 700px) {
  #about {
    --w-h: 8.2vw
  }

  .ab-t {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line)
  }

  .ab-t .m {
    display: inline
  }

  .ab-i {
    aspect-ratio: 1.25;
    margin-top: 13px;
    object-position: 50% 50%
  }

  .ab-b {
    margin-top: 14px;
    padding: .4em 0 .95em
  }

  .ab-p {
    max-width: none
  }
}

/* Featured Work heading matches the hero title (Cottorway, same size) */
#work .wk-h,
#research .wk-h,
#mind .wk-h {
  font: 700 min(8.466 * var(--vw), 13.1vh)/.82 'Cottorway', 'Outfit', sans-serif;
  letter-spacing: normal
}
@media (max-width: 700px) {
  #work .wk-h,
  #research .wk-h,
  #mind .wk-h { font-size: 16.4vw }
}

/* About statement + contact line at hero title size (long text wraps) */
.ct-h {
  font: 700 min(8.466 * var(--vw), 13.1vh)/.82 'Cottorway', 'Outfit', sans-serif;
  letter-spacing: normal;
  text-wrap: balance;
  overflow-wrap: anywhere
}
@media (max-width: 700px) {
  .ct-h { font-size: 16.4vw }
}

/* divider under the About statement, all widths */
.ab-t {
  padding-bottom: .25em;
  border-bottom: 1px solid var(--line)
}

/* ===== unified rhythm: one gap (--g) for title, divider, image, text ===== */
:root { --g: calc(min(8.466 * var(--vw), 13.1vh) * .3) }
@media (max-width: 700px) { :root { --g: calc(16.4vw * .3) } }

.wk-s { margin-top: var(--g) }
#lw, #lr, #lm { margin-top: var(--g) }

.ab-t {
  margin-top: var(--g);
  padding-bottom: var(--g);
  border-bottom: 1px solid var(--line)
}
.ab-i { margin-top: var(--g) }
.ab-b { margin-top: var(--g); padding: var(--g) 0 }

#contact .ct-h { padding-bottom: var(--g) }
#contact .ct-line { margin-top: 0 }
#contact .ct-mail { display: block; width: fit-content; margin-top: var(--g); margin-bottom: var(--g) }
#contact .ct-g { margin-top: 0 }

/* equal space above and below every divider */
#work, #research, #mind, #about { --pt: .55em; --pb: .55em }
@media (max-width: 700px) { #work, #research, #mind, #about { --pt: .7em; --pb: .7em } }
#research .it, #mind .it { padding-top: var(--pt); padding-bottom: var(--pb) }
.it p, .it .d { margin-bottom: 0 }
.it .d { margin-top: .08em }
.wk-more { margin-top: var(--g) }
