:root {
  --bg: #f2efe8;
  --fg: #111111;
  --pad: clamp(18px, 3vw, 44px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: "Archivo", system-ui, sans-serif; font-variation-settings: "wdth" 100;
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  transition: background-color .55s cubic-bezier(.3, 0, .2, 1), color .55s cubic-bezier(.3, 0, .2, 1);
}
a { color: inherit; text-decoration: none; }
body { overflow-x: hidden; }

.top { position: fixed; z-index: 10; inset: 0 0 auto 0; display: flex; justify-content: space-between; padding: 20px var(--pad); font-weight: 600; font-size: 15px; }
.top nav { display: flex; gap: 28px; }
.top a { position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.top nav a:hover::after { transform: scaleX(1); }
.small-mark { font-weight: 900; font-size: 18px; line-height: 1; }

/* the wordmark is cut along a fracture; the lower half drifts with the cursor */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad) var(--pad); }
.mark { position: relative; font-weight: 900; font-variation-settings: "wdth" 110; font-size: 30vw; line-height: .72; letter-spacing: -.055em; margin: 0 0 2.4vw -1.2vw; height: .72em; }
.half { position: absolute; left: 0; top: 0; white-space: nowrap; display: block; }
.a { clip-path: polygon(0 0, 100% 0, 100% 44%, 0 56%); }
.b { clip-path: polygon(0 56%, 100% 44%, 100% 100%, 0 100%); transform: translate(var(--dx, .5vw), var(--dy, .8vw)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.hero-foot { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; border-top: 2px solid currentColor; padding-top: 12px; }

/* work: image tiles; click pops the image out */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 3vw, 44px) clamp(14px, 1.8vw, 26px); padding: clamp(30px, 5vw, 70px) var(--pad); border-top: 2px solid currentColor; }
.tile { display: block; text-align: left; color: inherit; font: inherit; background: none; border: 0; padding: 0; cursor: zoom-in; }
.pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: rgba(0, 0, 0, .12); }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .pic img { transform: scale(1.05); }
.cap { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding-top: 10px; font-weight: 600; font-size: 14px; }
.cap b { font-weight: 800; font-variation-settings: "wdth" 80; font-size: 22px; letter-spacing: -.02em; line-height: 1.05; grid-column: 1 / -1; }
.cap i { font-style: normal; }
.cap i:last-child { text-align: right; }
.tile.is-open { visibility: hidden; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); opacity: 0; transition: opacity .4s ease; cursor: zoom-out; }
.lb.on { opacity: 1; }
.lb figure { position: fixed; margin: 0; overflow: hidden; transition: top .6s cubic-bezier(.2, .8, .2, 1), left .6s cubic-bezier(.2, .8, .2, 1), width .6s cubic-bezier(.2, .8, .2, 1), height .6s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
.lb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lb p { position: fixed; left: 0; right: 0; bottom: 3.2vh; text-align: center; font-weight: 700; font-size: 15px; opacity: 0; transition: opacity .4s ease .35s; }
.lb.on p { opacity: 1; }
.lb p b { font-weight: 800; font-variation-settings: "wdth" 80; font-size: 24px; display: block; letter-spacing: -.02em; }

/* studio */
.studio { padding: clamp(50px, 8vw, 110px) var(--pad); display: grid; grid-template-columns: 1fr auto; gap: 6vw; align-items: end; border-top: 2px solid currentColor; }
.studio p { max-width: 22em; font-weight: 700; font-variation-settings: "wdth" 85; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -.02em; }
.studio ul { list-style: none; font-weight: 600; font-size: 15px; text-align: right; }
.studio li { padding: 2px 0; }

/* contact */
.contact { padding: clamp(40px, 6vw, 80px) var(--pad) clamp(50px, 7vw, 100px); border-top: 2px solid currentColor; }
.mail { display: inline-block; font-weight: 900; font-variation-settings: "wdth" 80; font-size: clamp(28px, 5vw, 72px); line-height: .98; letter-spacing: -.03em; transition: font-variation-settings .6s cubic-bezier(.2, .7, .2, 1); }
.mail:hover { font-variation-settings: "wdth" 100; }
.contact p { margin-top: 14px; font-weight: 600; font-size: 15px; }

.foot { display: flex; justify-content: space-between; padding: 18px var(--pad); font-weight: 600; font-size: 14px; border-top: 2px solid currentColor; }

.js .tile { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .tile.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .work { grid-template-columns: 1fr 1fr; }
  .studio { grid-template-columns: 1fr; }
  .studio ul { text-align: left; display: flex; gap: 22px; }
  .top nav a:first-child { display: none; }
}
@media (max-width: 520px) { .work { grid-template-columns: 1fr; } .mark { font-size: 40vw; } }
@media (prefers-reduced-motion: reduce) {
  body, .b, .mail, .lb, .lb figure { transition: none; }
  .js .tile { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ───────── subpages ───────── */
.top { background: var(--bg); transition: background-color .55s cubic-bezier(.3, 0, .2, 1); }
.page { padding-top: 76px; min-height: 70vh; }
.lb p a.lb-open { display: block; margin-top: 8px; border-bottom: 2px solid currentColor; width: fit-content; margin-inline: auto; cursor: pointer; }
.more { border-bottom: 2px solid currentColor; font-size: .7em; margin-left: 10px; white-space: nowrap; }
.pd-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6vw; padding: clamp(30px, 5vw, 70px) var(--pad); align-items: end; }
.pd-head h1 { font-weight: 800; font-variation-settings: "wdth" 70; font-size: clamp(44px, 7vw, 110px); line-height: .92; letter-spacing: -.035em; }
.pd-head dl, .k-grid dl { display: grid; grid-template-columns: 5em 1fr; gap: 6px 14px; font-weight: 600; font-size: 15px; }
.pd-head dt, .k-grid dt { opacity: .6; }
.pd-hero { padding: 0 var(--pad); }
.pd-hero img { width: 100%; max-height: 640px; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.pd-text { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 40px var(--pad); }
.pd-text h2 { font-weight: 800; font-variation-settings: "wdth" 80; font-size: 22px; margin-bottom: 8px; }
.pd-text p { font-weight: 500; max-width: 24em; }
.pd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 var(--pad) 50px; }
.pd-pair figure { aspect-ratio: 4 / 3; overflow: hidden; margin: 0; }
.pd-pair img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-pair .type { display: grid; place-items: center; background: var(--fg); color: var(--bg); }
.pd-pair .type span { font-weight: 900; font-variation-settings: "wdth" 70; font-size: clamp(40px, 7vw, 100px); letter-spacing: -.04em; }
.pd-next { padding: 30px var(--pad) 70px; border-top: 2px solid currentColor; font-weight: 800; font-variation-settings: "wdth" 80; font-size: clamp(24px, 3vw, 44px); letter-spacing: -.02em; }
.pd-next a:hover { opacity: .6; }

.st-head { padding: clamp(30px, 5vw, 70px) var(--pad); }
.st-lead { font-weight: 700; font-variation-settings: "wdth" 85; font-size: clamp(24px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -.02em; max-width: 20em; }
.t1 { font-weight: 900; font-variation-settings: "wdth" 70; font-size: clamp(50px, 8vw, 120px); line-height: .9; letter-spacing: -.04em; margin-bottom: 16px; }
.st-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 20px var(--pad) 60px; border-top: 2px solid currentColor; }
.st-cols h2, .team h2, .aw h2 { font-weight: 800; font-variation-settings: "wdth" 80; font-size: 22px; margin: 16px 0 14px; }
.lst { list-style: none; font-weight: 600; }
.lst li { padding: 9px 0; border-top: 1px solid currentColor; }
.lst.num { counter-reset: n; }
.lst.num li { counter-increment: n; }
.lst.num li::before { content: counter(n) ". "; font-weight: 800; }
.team, .aw { padding: 10px var(--pad) 50px; border-top: 2px solid currentColor; }
.team ul, .aw ul { list-style: none; }
.team li { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid currentColor; font-weight: 600; }
.team b { font-weight: 800; font-variation-settings: "wdth" 80; font-size: 22px; }
.aw li { display: grid; grid-template-columns: 80px 1fr; padding: 12px 0; border-top: 1px solid currentColor; font-weight: 600; }
.diary { padding: 10px var(--pad) 70px; }
.diary details { border-top: 2px solid currentColor; }
.diary details:last-child { border-bottom: 2px solid currentColor; }
.diary summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; padding: 22px 0; align-items: baseline; }
.diary summary::-webkit-details-marker { display: none; }
.diary summary::after { content: "+"; font-weight: 800; font-size: 24px; }
.diary details[open] summary::after { content: "−"; }
.diary time { font-weight: 600; font-size: 14px; }
.diary summary b { font-weight: 800; font-variation-settings: "wdth" 75; font-size: clamp(22px, 3vw, 40px); line-height: 1; letter-spacing: -.02em; }
.diary details div { padding: 0 0 26px 140px; max-width: 46em; font-weight: 500; }
.diary p + p { margin-top: 10px; }
.k-head { padding: clamp(30px, 5vw, 70px) var(--pad) 30px; }
.k-head p { margin-top: 14px; font-weight: 600; }
.k-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6vw; padding: 20px var(--pad) 80px; border-top: 2px solid currentColor; }
.k-grid a:hover { opacity: .6; }
#kf { display: grid; gap: 18px; }
#kf label, #kf legend { font-weight: 600; font-size: 14px; display: block; }
#kf input, #kf textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 0; background: transparent; border: 0; border-bottom: 2px solid currentColor; font: 600 18px "Archivo", sans-serif; color: inherit; border-radius: 0; }
#kf input:focus, #kf textarea:focus { outline: none; }
#kf fieldset { border: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chips button { font: 700 14px "Archivo", sans-serif; padding: 8px 16px; border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.btn { justify-self: start; font: 800 15px "Archivo", sans-serif; padding: 12px 30px; background: var(--fg); color: var(--bg); border: 0; cursor: pointer; }
.btn:hover { opacity: .8; }
.ok { font-weight: 700; }
.foot a:hover { opacity: .6; }

@media (max-width: 820px) {
  .pd-head, .pd-text, .pd-pair, .st-cols, .k-grid { grid-template-columns: 1fr; }
  .diary summary { grid-template-columns: 1fr auto; }
  .diary summary time { grid-column: 1 / -1; }
  .diary details div { padding-left: 0; }
}
