/* ==========================================================
   BY KAY STUDIOS | website
   Editorial home in the spirit of Studio McGee.
   Brand colors + fonts, square edges, calm motion,
   no boxes, no em dashes.
   ========================================================== */

@font-face { font-family: "Canela"; src: url("../assets/fonts/Canela-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Canela"; src: url("../assets/fonts/Canela-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Paralucent"; src: url("../assets/fonts/Paralucent-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Paralucent Text"; src: url("../assets/fonts/Paralucent-Text-Book.otf") format("opentype"); font-weight: 400; font-display: swap; }

:root {
  --alabaster: #E9E4D8;
  --bistre: #3F2C27;
  --merlot: #440D16;
  --bistre-60: rgba(63, 44, 39, .62);
  --bistre-20: rgba(63, 44, 39, .2);
  --cream-70: rgba(233, 228, 216, .72);
  --cream-30: rgba(233, 228, 216, .3);

  --serif: "Canela", Georgia, serif;
  --sans: "Paralucent", "Helvetica Neue", Arial, sans-serif;
  --text: "Paralucent Text", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--alabaster); color: var(--bistre); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* logos recolor with `color:` */
.logo { display: inline-block; background-color: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.logo--primary { --logo: url("../assets/logos/logo-primary.png"); aspect-ratio: 1600 / 464; }
.logo--secondary { --logo: url("../assets/logos/logo-secondary.png"); aspect-ratio: 1600 / 551; }
.logo--mark { --logo: url("../assets/logos/logo-mark.png"); aspect-ratio: 1334 / 1600; }

/* shared bits */
.kicker { font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--merlot); }
.link { display: inline-flex; gap: 10px; align-items: baseline; font-family: var(--sans); font-weight: 500; font-size: 15px; padding-bottom: 4px; border-bottom: 1px solid currentColor; transition: opacity .2s; }
.link:hover { opacity: .65; }
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 4.6vw, 70px); line-height: 1; letter-spacing: -.015em; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.section { padding: clamp(90px, 11vw, 160px) 0 0; }

/* ---------- header ---------- */
.site-header { background: var(--alabaster); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; height: 116px; }
.site-header .logo--secondary { width: 172px; color: var(--bistre); }
.site-header nav { display: flex; gap: clamp(18px, 3vw, 40px); font-family: var(--sans); font-weight: 500; font-size: 15px; }
.site-header nav a { padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header nav a:hover { border-bottom-color: currentColor; }

/* ---------- 0. cover photo ---------- */
.cover { height: 100vh; min-height: 480px; }
.cover img { object-position: 50% 60%; }

/* ---------- 1. opening ---------- */
.opening { background: var(--merlot); color: var(--alabaster); }
.opening .wrap { text-align: center; padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(64px, 7vw, 104px); }
.opening .k { display: block; height: 80px; width: auto; margin: 0 auto 34px; color: var(--alabaster); }
.opening .kicker { color: var(--cream-70); }
.opening h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.7vw, 38px); line-height: 1.25; letter-spacing: -.01em; max-width: 560px; margin: 0 auto; }

/* ---------- 2. the studio ---------- */
.studio .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.studio .solo { text-align: center; }
.studio .solo p { margin: 0 auto; }
.studio { padding-bottom: clamp(90px, 10vw, 140px); }
#work { border-top: 1px solid var(--bistre-20); max-width: calc(1440px - 2 * var(--gutter)); margin: 0 auto; }
#work .wrap { padding-left: 0; padding-right: 0; }
@media (max-width: 1440px) { #work { margin: 0 var(--gutter); } }
.studio .img { aspect-ratio: 4 / 5; }
.studio h2 { margin: 16px 0 28px; }
.studio p { color: var(--bistre-60); max-width: 520px; font-size: 18px; }
.meet-mini { display: flex; align-items: center; gap: 18px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--bistre-20); }
.meet-mini .face { width: 76px; height: 76px; flex: none; }
.meet-mini .face img { object-position: 50% 18%; }
.meet-mini b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.meet-mini span { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--bistre-60); }
.meet-mini .link { margin-left: auto; }

/* ---------- 3. projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.projects .img { aspect-ratio: 1 / 1; overflow: hidden; }
.projects img { transition: opacity .25s; }
.projects a:hover img { opacity: .85; }
.projects .name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.projects b { font-family: var(--serif); font-weight: 300; font-size: 26px; }
.projects span { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--bistre-60); }

/* ---------- 4. merlot quote band ---------- */
.quote { background: var(--merlot); color: var(--alabaster); margin-top: clamp(90px, 11vw, 160px); padding: clamp(80px, 10vw, 140px) 0; text-align: center; }
.quote p { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5.4vw, 84px); line-height: 1.05; letter-spacing: -.02em; }
.quote span { display: block; margin-top: 26px; font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--cream-70); }

/* ---------- 4. wide image break ---------- */
.wide { aspect-ratio: 21 / 9; overflow: hidden; }
.wide img { object-position: 50% 62%; }
@media (max-width: 900px) { .wide { aspect-ratio: 4 / 3; } }

/* ---------- 5. inspiring me (pinterest) ---------- */
.pins { columns: 5 220px; column-gap: 12px; }
.pins a { display: block; margin-bottom: 12px; break-inside: avoid; }
.pins img { height: auto; transition: opacity .25s; }
.pins a:hover img { opacity: .8; }

/* ---------- 6. instagram ---------- */
.gram { padding-bottom: clamp(90px, 11vw, 160px); }
.gram-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gram-grid a { aspect-ratio: 1; overflow: hidden; }
.gram-grid a { position: relative; }
.gram-grid .tag { position: absolute; left: 10px; bottom: 8px; font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--alabaster); text-shadow: 0 1px 8px rgba(31,31,31,.5); }
.gram-grid img { transition: opacity .25s; }
.gram-grid a:hover img { opacity: .8; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--bistre); color: var(--alabaster); padding: clamp(80px, 10vw, 130px) 0 36px; }
.site-footer .wrap { position: relative; z-index: 1; }
/* giant K mark tucked behind "say hi." */
.site-footer .k-bg { position: absolute; right: 4%; top: -6%; height: 118%; width: auto; color: rgba(233, 228, 216, .07); pointer-events: none; }
.site-footer .say { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 12vw, 190px); line-height: .85; letter-spacing: -.035em; }
.site-footer .row { display: grid; grid-template-columns: minmax(0, 720px); gap: 48px; align-items: end; margin-top: 52px; }
.site-footer ul { list-style: none; border-top: 1px solid var(--cream-30); }
.site-footer li a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--cream-30); font-family: var(--sans); font-weight: 500; font-size: 17px; transition: opacity .2s; }
.site-footer li a:hover { opacity: .65; }
.site-footer .note { color: var(--cream-70); max-width: 340px; }
.fineprint { display: flex; justify-content: space-between; align-items: center; margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--cream-30); font-size: 13px; color: var(--cream-70); }
.fineprint .logo--primary { width: 92px; color: var(--alabaster); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- phones + tablets ---------- */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 84px; }
  .opening .k { height: 72px; margin-bottom: 26px; }
  .cover { height: 56vh; min-height: 320px; }
  .cover img { object-position: 42% 60%; }
  .site-header .logo--secondary { width: 112px; flex: none; }
  .site-footer .k-bg { right: -12%; height: 70%; top: auto; bottom: 18%; }
  .site-header nav { gap: 16px; font-size: 13px; white-space: nowrap; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .studio .grid, .site-footer .row { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; gap: 36px; }
  .gram-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .meet-mini { flex-wrap: wrap; }
  .meet-mini .link { margin-left: 0; }
}

/* ==========================================================
   ABOUT PAGE
   ========================================================== */
.site-header nav a[aria-current] { border-bottom-color: currentColor; }

.about-hello .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-hello .portrait { aspect-ratio: 4 / 5; }
.about-hello .portrait img { object-position: 50% 22%; }
.about-hello .h2 { margin: 14px 0 30px; }
.about-hello p { color: var(--bistre-60); font-size: 18px; max-width: 540px; }
.about-hello p + p { margin-top: 18px; }

.values .value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 44px); border-top: 1px solid var(--bistre); }
.values .value-grid > div { padding-top: 26px; }
.values .n { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--merlot); }
.values h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; margin: 14px 0 14px; }
.values p { color: var(--bistre-60); }

.facts-row { padding-bottom: clamp(90px, 11vw, 160px); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 30px; border-top: 1px solid var(--bistre-20); }
.facts-grid p { margin-top: 10px; font-size: 16px; line-height: 1.6; }

@media (max-width: 900px) {
  .about-hello .wrap { grid-template-columns: 1fr; }
  .values .value-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
}

/* about: full-width photo with "hi, i'm kay." */
.hi-kay { position: relative; height: min(88vh, 860px); min-height: 480px; overflow: hidden; color: var(--alabaster); }
.hi-kay .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hi-kay .wrap { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; padding-bottom: clamp(40px, 5vw, 72px); }
.hi-kay h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 6.5vw, 104px); line-height: .9; letter-spacing: -.025em; }
.about-hello .wrap { display: block; }
.about-hello .copy { display: grid; grid-template-columns: 1fr 1.7fr; gap: 0 clamp(32px, 6vw, 96px); align-items: start; }
.about-hello .copy .kicker { grid-row: 1 / 4; margin: 6px 0 0; }
.about-hello .copy p { grid-column: 2; max-width: 640px; }
.about-hello .copy p + p { margin-top: 18px; }
@media (max-width: 900px) { .about-hello .copy { grid-template-columns: 1fr; } .about-hello .copy .kicker { grid-row: auto; margin-bottom: 20px; } .about-hello .copy p { grid-column: 1; } }
.about-hello .kicker { display: block; margin-bottom: 26px; }
@media (max-width: 900px) {
  .hi-kay { height: 78vh; }
}

/* ==========================================================
   WORK PAGE
   ========================================================== */
html { scroll-padding-top: 24px; }
.work-intro { padding: clamp(56px, 7vw, 100px) 0 clamp(40px, 5vw, 70px); }
.work-intro h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 8vw, 128px); line-height: .95; letter-spacing: -.025em; }
.work-intro .index { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); margin-top: clamp(40px, 5vw, 64px); }
.work-intro .index .kicker { display: block; padding-bottom: 12px; border-bottom: 1px solid var(--bistre); }
.work-intro .index a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--bistre-20); font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.4vw, 34px); transition: color .2s; }
.work-intro .index a:hover { color: var(--merlot); }
.work-page .n { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--merlot); }

.project { padding: clamp(70px, 9vw, 130px) 0 0; }
.project + .project .wrap { border-top: 1px solid var(--bistre-20); padding-top: clamp(70px, 9vw, 130px); }
.project + .project { padding-top: 0; margin-top: clamp(70px, 9vw, 130px); }
.p-head { display: grid; grid-template-columns: 60px 1fr auto; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.p-head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 76px); line-height: 1; letter-spacing: -.02em; }
.p-head .kind { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--bistre-60); }
.p-hero { aspect-ratio: 16 / 9; overflow: hidden; }
.p-text { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 96px); padding: clamp(36px, 4vw, 56px) 0; }
.p-text p { font-size: 18px; color: var(--bistre-60); max-width: 640px; }
.p-text dl { display: grid; grid-template-columns: 120px 1fr; gap: 0; border-top: 1px solid var(--bistre-20); align-self: start; }
.p-text dt, .p-text dd { padding: 12px 0; border-bottom: 1px solid var(--bistre-20); font-size: 15px; }
.p-text dt { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--bistre-60); }
.p-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.p-grid.g2 { grid-template-columns: 1fr 1fr; }
.p-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.p-grid > * { aspect-ratio: 4 / 5; min-width: 0; }
.p-grid.g2 > * { aspect-ratio: 3 / 2; }
.p-grid.g2.tall > * { aspect-ratio: 4 / 5; }
.p-grid.contain > * { object-fit: contain; }
.p-plans { display: grid; grid-template-columns: 1.26fr 1fr; gap: 48px; align-items: end; padding: 40px 0 10px; }
.p-plans img { height: auto; }
.p-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 14px; }
.p-pairs figure { position: relative; aspect-ratio: 3 / 2; }
.p-pairs figcaption { position: absolute; left: 0; bottom: -24px; font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--bistre-60); }
.work-page { padding-bottom: clamp(90px, 11vw, 160px); }

@media (max-width: 900px) {
  .work-intro .index, .p-text, .p-plans { grid-template-columns: 1fr; }
  .p-head { grid-template-columns: 40px 1fr; }
  .p-head .kind { grid-column: 2; }
  .p-hero { aspect-ratio: 4 / 3; }
  .p-grid.g3 { grid-template-columns: 1fr 1fr; }
  .p-pairs { grid-template-columns: 1fr; }
}
/* images with white or light-gray backgrounds blend into the page (no white boxes) */
img.blend { mix-blend-mode: multiply; }
img.blend-light { mix-blend-mode: multiply; filter: brightness(1.08); }
/* work: title + quiet filter (no index, no numbers) */
.work-intro { display: block; }
.work-intro .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.work-filter { display: flex; gap: 28px; font-family: var(--sans); font-weight: 500; font-size: 15px; padding-bottom: 10px; }
.work-filter button { font: inherit; background: none; border: 0; border-bottom: 1px solid transparent; padding: 0 0 4px; cursor: pointer; color: var(--bistre-60); transition: color .2s; }
.work-filter button:hover { color: var(--bistre); }
.work-filter button[aria-pressed="true"] { color: var(--merlot); border-bottom-color: var(--merlot); }
.p-head { grid-template-columns: 1fr auto; }
.project[hidden] { display: none; }
.work-intro + .project { padding-top: 0; }
@media (max-width: 900px) { .p-head { grid-template-columns: 1fr; gap: 6px; } .p-head .kind { grid-column: auto; } }
.work-intro { padding-bottom: 0; }
.work-intro h1 { font-size: clamp(44px, 5.4vw, 84px); }
.work-intro .wrap { padding-bottom: 28px; border-bottom: 1px solid var(--bistre); }
.work-intro + .project { padding-top: clamp(60px, 7vw, 100px); }
.work-intro .wrap { border-bottom: 0; background: linear-gradient(var(--bistre), var(--bistre)) no-repeat center bottom / calc(100% - 2 * var(--gutter)) 1px; }

/* ==========================================================
   WORK GRID (hover to reveal, click to open)
   ========================================================== */
.work-intro .lede { margin-top: 18px; max-width: 460px; color: var(--bistre-60); }
.tiles-wrap { padding-top: clamp(40px, 5vw, 64px); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; display: block; }
.tile[hidden] { display: none; }
.tile img { transition: transform .8s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(63, 44, 39, 0); transition: background .35s; }
.tile-name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--alabaster); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.tile-name b { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.8vw, 42px); line-height: 1; }
.tile-name span { font-family: var(--sans); font-weight: 500; font-size: 13px; }
.tile:hover::after, .tile:focus-visible::after { background: rgba(63, 44, 39, .45); }
.tile:hover .tile-name, .tile:focus-visible .tile-name { opacity: 1; transform: none; }
.tile:hover img { transform: scale(1.03); }
@media (hover: none) { .tile::after { background: linear-gradient(0deg, rgba(31,31,31,.5), rgba(31,31,31,0) 45%); } .tile-name { opacity: 1; transform: none; padding: 18px; } }

/* ==========================================================
   PROJECT PAGES
   ========================================================== */
.pp-intro { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 80px); }
.pp-intro .back { font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--bistre-60); transition: color .2s; }
.pp-intro .back:hover { color: var(--merlot); }
.pp-intro h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 7vw, 110px); line-height: .95; letter-spacing: -.025em; margin: 24px 0 clamp(32px, 4vw, 52px); }
.pp-cols { display: grid; grid-template-columns: 1fr 1.7fr; gap: 0 clamp(32px, 6vw, 96px); }
.pp-cols .meta { font-family: var(--sans); font-weight: 500; font-size: 14px; line-height: 1.7; }
.pp-cols .meta span { color: var(--bistre-60); }
.pp-text p { font-size: 18px; color: var(--bistre-60); max-width: 660px; }
.pp-text p + p { margin-top: 18px; }
.pp-hero { height: min(90vh, 900px); min-height: 420px; }
.pp-images { padding-top: 14px; }
.pp-images .p-grid { margin-bottom: 14px; }
.pp-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(80px, 10vw, 140px); padding-top: 28px; padding-bottom: clamp(80px, 10vw, 140px); border-top: 1px solid var(--bistre-20); background: linear-gradient(var(--bistre-20), var(--bistre-20)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px; border-top: 0; }
.pp-nav a { display: flex; flex-direction: column; gap: 8px; transition: color .2s; }
.pp-nav a.next { text-align: right; align-items: flex-end; }
.pp-nav span { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--bistre-60); }
.pp-nav b { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 44px); line-height: 1; }
.pp-nav a:hover { color: var(--merlot); }

@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
  .pp-cols { grid-template-columns: 1fr; gap: 20px; }
  .pp-hero { height: 60vh; }
}

/* portfolio hover: merlot wash + centered story */
.tile::after { background: rgba(68, 13, 22, 0); transition: background .4s ease; }
.tile:hover::after, .tile:focus-visible::after { background: rgba(68, 13, 22, .78); }
.tile .tile-name { inset: 0; padding: 40px; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 0; opacity: 1; transform: none; }
.tile-name .type { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--cream-70); }
.tile-name b { font-size: clamp(36px, 3.8vw, 58px); margin: 14px 0 16px; }
.tile-name .tease { font-family: var(--text); font-weight: 400; font-size: 17px; line-height: 1.5; max-width: 340px; color: var(--alabaster); }
.tile-name .view { margin-top: 26px; font-size: 14px; padding-bottom: 4px; border-bottom: 1px solid currentColor; }
.tile-name > * { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.tile:hover .tile-name > *, .tile:focus-visible .tile-name > * { opacity: 1; transform: none; }
.tile:hover .tile-name .tease { transition-delay: .06s; }
.tile:hover .tile-name .view { transition-delay: .12s; }
@media (hover: none) {
  .tile .tile-name { justify-content: flex-end; align-items: flex-start; text-align: left; padding: 20px; }
  .tile-name > * { opacity: 1; transform: none; }
  .tile-name .tease, .tile-name .view { display: none; }
  .tile-name b { font-size: 32px; margin: 6px 0 0; }
}
/* hover: just the name, big and centered */
.tile-name b { font-size: clamp(48px, 6vw, 96px); line-height: .92; letter-spacing: -.02em; margin: 14px 0 0; max-width: 90%; transform: scale(.92); }
.tile:hover .tile-name b, .tile:focus-visible .tile-name b { transform: scale(1); }
.tile-name > * { transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
@media (hover: none) { .tile-name b { font-size: 32px; transform: none; } }
/* hover: soft alabaster wash, name with type underneath */
.tile:hover::after, .tile:focus-visible::after { background: rgba(233, 228, 216, .88); }
.tile .tile-name { color: var(--bistre); }
.tile-name b { margin: 0 0 16px; }
.tile-name .type { color: var(--bistre-60); }
@media (hover: none) { .tile .tile-name { color: var(--alabaster); } .tile-name .type { color: var(--cream-70); } .tile-name b { margin: 0 0 6px; } }
.p-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.p-grid.g4 > * { aspect-ratio: 3 / 4; }
.p-full { margin-bottom: 14px; }
.p-full img { height: auto; }
@media (max-width: 900px) { .p-grid.g4 { grid-template-columns: 1fr 1fr; } }
.p-grid > img { overflow: hidden; } .p-grid.g4 { overflow: hidden; }
.p-grid.g4 > * { aspect-ratio: 1 / 1; }
/* single centered images on project pages */
.p-solo { max-width: 620px; margin: clamp(40px, 5vw, 72px) auto 0; }
.p-solo.big { max-width: 860px; }
.p-solo img { height: auto; }
/* photo under the type/date so the left column isn't empty */
.pp-side .side-img { margin-top: 28px; aspect-ratio: 4 / 5; max-width: 360px; overflow: hidden; }
@media (max-width: 900px) { .pp-side .side-img { display: none; } }
/* project hero sits inside the same margins as the images below, so all edges line up */
.pp-hero { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); height: auto; min-height: 0; }
.pp-hero img { aspect-ratio: 16 / 9; height: auto; }
@media (max-width: 900px) { .pp-hero img { aspect-ratio: 4 / 3; } }

/* ==========================================================
   SAY HI PAGE
   ========================================================== */
.hi-page { padding: clamp(56px, 7vw, 110px) 0 clamp(90px, 11vw, 160px); }
.hi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.hi-copy h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 7.4vw, 116px); line-height: .92; letter-spacing: -.025em; }
.hi-copy p { margin: 28px 0 40px; max-width: 420px; font-size: 18px; color: var(--bistre-60); }
.hi-email { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); color: var(--merlot); border-bottom: 1px solid var(--merlot); padding-bottom: 4px; transition: opacity .2s; }
.hi-email:hover { opacity: .65; }
.hi-links { list-style: none; display: flex; gap: 32px; margin-top: 44px; font-family: var(--sans); font-weight: 500; font-size: 15px; }
.hi-links a { padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.hi-links a:hover { border-bottom-color: currentColor; }
.hi-img { aspect-ratio: 4 / 5; overflow: hidden; }
.hi-img img { object-position: 30% 50%; }
@media (max-width: 900px) { .hi-grid { grid-template-columns: 1fr; } .hi-img { aspect-ratio: 4 / 3; } }
/* say hi: email + links on one line, then live socials */
.hi-page { padding-top: clamp(40px, 5vw, 72px); }
.hi-top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; background: linear-gradient(var(--bistre), var(--bistre)) no-repeat center bottom / calc(100% - 2 * var(--gutter)) 1px; }
.hi-top .hi-links { margin-top: 0; }
.hi-page .gram { padding-bottom: 0; }
