/* ==========================================================================
   Page layouts
   Works grid, resume, contact form and detail list.
   ========================================================================== */

.ph {
  padding: 48px 0 0;
}
.ph h1 {
  max-width: 12em;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 22px;
}
.back:hover {
  color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.wk {
  grid-column: span 6;
  text-decoration: none;
  display: block;
}
.wk:nth-child(4n + 1),
.wk:nth-child(4n) {
  grid-column: span 7;
}
.wk:nth-child(4n + 2),
.wk:nth-child(4n + 3) {
  grid-column: span 5;
}
.wk:last-child {
  grid-column: span 12;
}
.media {
  position: relative;
  height: clamp(240px, 31vw, 400px);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s var(--ease);
}
.wk:hover img {
  transform: scale(1.045);
}
.go {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  transform: scale(0.6);
  opacity: 0;
  transition: 0.3s cubic-bezier(0.5, 1.6, 0.4, 1);
}
.wk:hover .go,
.wk:focus-visible .go {
  transform: none;
  opacity: 1;
}
.wk h3 {
  font-size: 1.6rem;
  margin: 16px 0 4px;
}
.wk p {
  color: var(--muted);
}
.stats5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  padding: 28px 10px;
  margin-top: 36px;
}
.stats5 b {
  display: block;
  font:
    600 2.4rem/1 Outfit,
    Figtree,
    system-ui,
    sans-serif;
  letter-spacing: -0.04em;
}
.stats5 small {
  color: var(--muted);
}
.rs {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 20px;
  align-items: start;
}
.rs aside {
  position: sticky;
  top: 96px;
}
.rs h3 {
  margin-bottom: 12px;
}
.rs aside p {
  color: var(--muted);
}
.rs aside h3:not(:first-child) {
  margin-top: 28px;
}
.tagl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tagl span {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.92rem;
  font-weight: 500;
}
.tagl.m {
  margin-top: 14px;
}
.tagl.m span {
  background: var(--soft);
  border-color: transparent;
}
.job {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 6px 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.job:first-of-type {
  border-top: 0;
  padding-top: 8px;
}
.job time {
  color: var(--muted);
  font-size: 0.95rem;
}
.job h4 {
  font:
    600 1.3rem Outfit,
    Figtree,
    system-ui,
    sans-serif;
  letter-spacing: -0.02em;
}
.job h4 a {
  text-decoration: none;
}
.job h4 a:hover {
  color: var(--a);
}
.job small {
  color: var(--muted);
  display: block;
}
.job ul {
  margin: 12px 0 0 1.1em;
  color: var(--muted);
}
.job li + li {
  margin-top: 6px;
}
.certs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.ct {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}
.ct img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.ct b {
  font:
    600 1.05rem Outfit,
    Figtree,
    system-ui,
    sans-serif;
  line-height: 1.25;
}
.ct small {
  color: var(--muted);
  display: block;
}
.cg {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-top: 44px;
  align-items: start;
}
.f {
  margin-bottom: 16px;
}
.f label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.f input,
.f textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.f textarea {
  min-height: 140px;
  resize: vertical;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips label {
  position: relative;
  margin: 0;
  font-size: inherit;
}
.chips input {
  position: absolute;
  opacity: 0;
  width: auto;
  padding: 0;
}
.chips span {
  display: block;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.25s;
}
.chips input:checked + span {
  background: var(--sel);
  color: var(--on-a);
  border-color: var(--sel);
}
.chips input:focus-visible + span {
  outline: 3px solid var(--a);
  outline-offset: 3px;
}
.dl div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.dl div:first-child {
  border-top: 0;
  padding-top: 0;
}
.dl small {
  display: block;
  color: var(--muted);
}
.dl b,
.dl a {
  font:
    600 1.1rem Outfit,
    Figtree,
    system-ui,
    sans-serif;
  text-decoration: none;
}
.dl a:hover {
  color: var(--a);
}
