@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

:root {
  --ink: #111;
  --mono: var(--logo);
  --logo: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: var(--logo);
  --side: 120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--mono); color: var(--ink); background: #fff; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* Header (from the Wix site) */
.site-header {
  position: sticky; top: 0; z-index: 30; background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 34px var(--side) 30px;
}
.logo { display: block; line-height: 0; }
.logo img { width: 390px; height: 28px; max-width: 100%; }
.logo b { font-weight: 700; color: #000; -webkit-text-stroke: 0.6px #000; }
.logo span { color: #a8a8a8; }
.nav { display: flex; gap: 34px; }
.nav a { font-family: var(--logo); font-size: 15px; letter-spacing: 0.03em; color: #9b9b9b; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #000; }
.ig { position: fixed; left: 40px; bottom: 32px; width: 22px; height: 22px; z-index: 30; color: #000; }
.ig svg { width: 100%; height: 100%; }
.totop {
  position: fixed; right: 40px; bottom: 32px; z-index: 30;
  width: 40px; height: 40px; border: 0; background: #000; color: #fff;
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.totop.show { opacity: 1; pointer-events: auto; }
.totop svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 1.6; }
.menu-btn { display: none; }

main { padding: 50px var(--side) 40px; }
.site-footer { padding: 30px var(--side) 40px; text-align: center; font-size: 13px; color: #555; }

/* Project grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 55px; }
.tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; background: #f3f3f3; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile .cap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 16px; background: rgba(0,0,0,.55); color: #fff;
  font-family: var(--logo); font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transition: opacity .35s;
}
.tile:hover .cap { opacity: 1; }
.tile.nocap::after {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35);
  opacity: 0; transition: opacity .35s;
}
.tile.nocap:hover::after { opacity: 1; }

/* Text pages (centered, as on the Wix site) */
.page { max-width: 720px; margin: 0 auto; padding-top: 110px; padding-bottom: 120px; }
.page h1 { font: 400 17px var(--logo); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 36px; color: #111; }
.page .sub { display: none; }
.about { font-size: 14.5px; line-height: 1.6; color: #2a2a2a; text-align: justify; }
.about p + p { margin-top: 20px; }
.contact form { max-width: 100%; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact input, .contact textarea {
  width: 100%; font: 13px var(--mono); letter-spacing: .03em; color: #222;
  padding: 10px 0; border: 0; border-bottom: 1px solid #bdbdbd; border-radius: 0;
  background: transparent; margin-bottom: 30px; outline: none; -webkit-appearance: none;
}
.contact input:focus, .contact textarea:focus { border-bottom-color: #000; }
.contact textarea { height: 110px; resize: vertical; }
.contact ::placeholder { color: #999; text-transform: uppercase; letter-spacing: .08em; }
.contact button {
  margin-top: 6px; padding: 12px 34px; border: 1px solid #000; background: #fff;
  font: 13px var(--mono); letter-spacing: .12em; cursor: pointer; transition: background .2s, color .2s;
}
.contact button:hover { background: #000; color: #fff; }
.hidden { display: none; }
.thanks { font-size: 13.5px; line-height: 1.7; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(255,255,255,.98); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img, .lb video { max-width: calc(100vw - 180px); max-height: calc(100vh - 100px); object-fit: contain; }
.lb button { position: absolute; border: 0; background: none; cursor: pointer; padding: 16px; }
.lb svg { stroke: #000; fill: none; stroke-width: 1.2; }
.lb .close { top: 18px; right: 22px; }
.lb .close svg { width: 22px; height: 22px; }
.lb .lprev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb .lnext { right: 24px; top: 50%; transform: translateY(-50%); }
.lb .lprev svg, .lb .lnext svg { width: 18px; height: 36px; }
.lb .count { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .1em; color: #666; }

@media (max-width: 1200px) {
  :root { --side: 56px; }
  .grid { gap: 36px; }
}
@media (max-width: 900px) {
  :root { --side: 18px; }
  .site-header { padding: 22px 18px 18px; }
  .logo img { width: 300px; height: auto; }
  .menu-btn {
    display: block; position: relative; z-index: 40;
    width: 28px; height: 22px; border: 0; background: none; cursor: pointer;
  }
  .menu-btn i { display: block; height: 2px; background: #000; margin: 5px 0; transition: transform .3s, opacity .3s; }
  .menu-open .menu-btn i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn i:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 35; background: #fff;
    flex-direction: column; align-items: center; justify-content: center; gap: 34px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .nav a { font-size: 18px; }
  main { padding: 20px 18px 30px; }
  .page { padding-top: 40px; padding-bottom: 60px; }
  .about { text-align: left; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .tile { cursor: pointer; }
  .tile .cap { display: none; }
  .ig { position: static; display: block; margin: 0 auto 14px; }
  .site-footer { padding-bottom: 30px; }
  .totop { right: 16px; bottom: 16px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .lb img, .lb video { max-width: 100vw; max-height: 82vh; }
  .lb .lprev, .lb .lnext { display: none; }
}

/* Grid tiles are links to project pages */
.tile { display: block; cursor: pointer; }
.tile .cap { font-size: 14px; letter-spacing: .14em; }

/* Project page: text column under the logo, large images on the right */
.project { display: grid; grid-template-columns: 300px 1fr; gap: 70px; padding-top: 40px; align-items: start; }
.pinfo { position: sticky; top: 130px; }
.pinfo h1 { font: 400 17px var(--logo); letter-spacing: .1em; text-transform: uppercase; color: #000; }
.pinfo .place { font-size: 13px; color: #777; margin-top: 6px; }
.ptext { margin-top: 34px; font-size: 14px; line-height: 1.65; color: #2a2a2a; }
.ptext p + p { margin-top: 14px; }
.credits { list-style: none; margin-top: 26px; font-size: 12.5px; line-height: 1.7; color: #666; }
.pnav { display: flex; justify-content: space-between; margin-top: 44px; font-family: var(--logo); font-size: 13px; letter-spacing: .06em; color: #9b9b9b; }
.pnav a:hover { color: #000; }
.pimages { display: flex; flex-direction: column; gap: 44px; }
.pimages figure { cursor: zoom-in; background: #f3f3f3; }
.pimages img, .pimages video { width: 100%; height: auto; }
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; gap: 30px; padding-top: 10px; }
  .pinfo { position: static; }
  .ptext { margin-top: 20px; }
  .pnav { margin-top: 24px; }
  .pimages { gap: 14px; }
}
.ptext .sh { font-weight: 700; margin-top: 18px; }
.ptext .sh + p { margin-top: 2px; }
.credits li { padding-left: 0; }
.pinfo { max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: none; padding-bottom: 20px; }
.pinfo::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .pinfo { max-height: none; overflow: visible; } }

/* Keep everything at a fixed width on large screens (like Kapsimalis) */
.site-header, main, .site-footer { max-width: 1440px; margin-left: auto; margin-right: auto; }
.page { max-width: 720px; }
.grid { max-width: 1200px; margin: 0 auto; }

/* Project images: moderate size, always fit the screen height */
.project { grid-template-columns: 300px minmax(0, 900px); gap: 70px; justify-content: start; }
.pimages { gap: 55px; }
.pimages figure { background: none; }
.pimages img, .pimages video { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 220px); }
@media (max-width: 900px) {
  .pimages img, .pimages video { width: 100%; max-height: none; }
}

/* Typography (Kapsimalis style): typewriter font for text, bold Garamond for project titles */
:root { --f: "Andale Mono", "IBM Plex Mono", Menlo, monospace; --t: "EB Garamond", "Adobe Garamond Pro", Garamond, serif; }
body, .nav a, .tile .cap, .page h1, .about, .contact input, .contact textarea, .contact button,
.site-footer, .pinfo, .ptext, .credits, .pnav, .lb .count, .ptitle .place {
  font-family: var(--f); font-weight: 400; font-style: normal; letter-spacing: 0;
}
.nav a { font-size: 14px; color: #999; }
.nav a:hover, .nav a[aria-current="page"] { color: #313131; }
.tile .cap { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.page h1 { font: 700 15px var(--t); letter-spacing: 1px; color: #313131; text-transform: none; margin-bottom: 30px; }
.about { font-size: 13px; line-height: 1.8; color: #313131; text-align: left; }
.site-footer { font-size: 12px; color: #555; }
.contact input, .contact textarea { font-size: 13px; }
.contact button { font-size: 13px; letter-spacing: .08em; }
.lb .count { font-size: 12px; }

/* Project page layout (Kapsimalis): title above full-width images, text under the logo */
.project { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 30px; align-items: start; }
.pinfo { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow-y: auto; padding-top: 60px; }
.ptext { margin-top: 0; font-size: 12px; line-height: 1.8; color: #313131; }
.ptext p + p { margin-top: 12px; }
.ptext .sh { font-weight: 400; text-decoration: underline; text-underline-offset: 3px; margin-top: 16px; }
.credits { font-size: 11px; line-height: 1.7; color: #888; margin-top: 22px; }
.pnav { font-size: 12px; color: #999; margin-top: 30px; text-transform: none; letter-spacing: 0; }
.pnav a:hover { color: #313131; }
.ptitle { margin-bottom: 48px; }
.ptitle h1 { font: 700 14px/1.1 var(--t); letter-spacing: 1px; color: #313131; margin: 0; text-transform: none; }
.ptitle .place { display: block; font-size: 12px; line-height: 1.1; color: #313131; margin-top: 6px; }
.pimages { gap: 55px; }
.pimages figure { background: none; }
.pimages img, .pimages video { width: 100%; height: auto; max-height: none; max-width: 100%; }
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; gap: 24px; padding-top: 10px; }
  .pinfo { position: static; max-height: none; overflow: visible; padding-top: 0; order: 2; }
  .pright { order: 1; }
  .ptitle { margin-bottom: 20px; }
  .pimages { gap: 14px; }
}
.project { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 50px; }
.pinfo { padding-top: 0; }
.pinfo .ptext { padding-right: 10px; }
.pinfo .ptitle { margin-bottom: 30px; }
@media (max-width: 900px) {
  .pinfo { order: 0; }
  .pright { order: 1; }
}
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; gap: 24px; }
  .pinfo .ptext { padding-right: 0; }
  .pinfo .ptitle { margin-bottom: 20px; }
}

/* About page: portrait in the left column (under the logo), text on the right */
.aboutpage { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 50px; align-items: start; padding-top: 40px; padding-bottom: 80px; }
.portrait img { width: 100%; height: auto; }
.abouttext { max-width: 600px; }
.abouttext .ptitle { margin-bottom: 30px; }
.abouttext .ptitle h1 { font: 700 14px/1.1 var(--t); letter-spacing: 1px; color: #313131; margin: 0; }
.abouttext .place { display: block; font-size: 12px; line-height: 1.1; color: #313131; margin-top: 6px; }
@media (max-width: 900px) {
  .aboutpage { grid-template-columns: 1fr; gap: 28px; padding-top: 10px; }
  .portrait { max-width: 360px; }
}

/* ===== Kapsimalis layout match ===== */
:root { --edge: 50px; --col: 27%; }
.site-header, main, .site-footer { max-width: none; margin-left: 0; margin-right: 0; }
.site-header { padding: 34px var(--edge) 30px; }
main, main.page { padding-left: var(--edge); padding-right: var(--edge); }

/* Project pages: text column = left 27%, images start at 27% and stop at 1300px */
.project { grid-template-columns: calc(var(--col) - var(--edge)) minmax(0, 1300px); gap: 0; padding-top: 30px; }
.pinfo { padding-right: 50px; }
.pinfo .ptitle, .pinfo .ptext, .pinfo .credits, .pinfo .pnav { max-width: 340px; }
.pimages { gap: 110px; padding-bottom: 60px; }
.pimages figure { line-height: 0; }
.pimages img, .pimages video { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 150px); }

/* Project grid: same column as the project images */
.grid { max-width: 1300px; margin: 0 0 0 calc(var(--col) - var(--edge)); gap: 55px; padding-top: 30px; }

/* About page: same columns */
.aboutpage { grid-template-columns: calc(var(--col) - var(--edge)) minmax(0, 1300px); gap: 0; }
.portrait { padding-right: 50px; max-width: 390px; }
.abouttext { max-width: 620px; }

/* Contact: same column */
.contact.page { max-width: none; margin: 0; padding-left: calc(var(--edge) + var(--col) - var(--edge)); }
.contact form { max-width: 560px; }
.contact.page h1 { margin-bottom: 30px; }

.site-footer { text-align: right; padding: 30px var(--edge) 40px; }

@media (max-width: 1100px) {
  :root { --col: 32%; }
}
@media (max-width: 900px) {
  :root { --edge: 18px; }
  .site-header { padding: 22px 18px 18px; }
  .project, .aboutpage { grid-template-columns: 1fr; gap: 24px; }
  .pinfo { padding-right: 0; }
  .pinfo .ptitle, .pinfo .ptext, .pinfo .credits, .pinfo .pnav { max-width: none; }
  .pimages { gap: 14px; }
  .pimages img, .pimages video { width: 100%; max-height: none; }
  .grid { margin: 0; padding-top: 10px; gap: 18px; }
  .portrait { padding-right: 0; }
  .contact.page { padding-left: 18px; }
  .site-footer { text-align: center; }
}
/* Exact Kapsimalis column: images start at 390px on a 1440 screen and 737px on a 2510 screen */
.project, .aboutpage { grid-template-columns: calc(32.4vw - 127px) minmax(0, 1350px); }
.pright, .abouttext { padding-right: 50px; }
.grid { margin-left: calc(32.4vw - 127px); max-width: 1300px; padding-top: 0; padding-right: 50px; }
.contact.page { padding-left: calc(32.4vw - 77px); }
.pimages { gap: 8vw; }
@media (max-width: 1100px) {
  .project, .aboutpage { grid-template-columns: 260px minmax(0, 1fr); }
  .grid { margin-left: 260px; }
  .contact.page { padding-left: 310px; }
}
@media (max-width: 900px) {
  .project, .aboutpage { grid-template-columns: 1fr; }
  .pright, .abouttext { padding-right: 0; }
  .grid { margin-left: 0; padding-right: 0; }
  .contact.page { padding-left: 18px; }
  .pimages { gap: 14px; }
}
.portrait { position: relative; }
.portrait img.alt { position: absolute; top: 0; left: 0; width: calc(100% - 50px); opacity: 0; transition: opacity .35s ease; }
.portrait:hover img.alt { opacity: 1; }
@media (max-width: 900px) { .portrait img.alt { width: 100%; } }
/* Portrait: top fades up into the white page */
.portrait img {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 14%, #000 42%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 14%, #000 42%);
}
/* Crossfade: hide the smiling photo completely while the camera photo shows */
.portrait img:not(.alt) { transition: opacity .35s ease; }
.portrait:hover img:not(.alt) { opacity: 0; }

/* ===== Fran Silvestre typography: Inter only ===== */
html { scrollbar-gutter: stable; overflow-y: scroll; }
:root { --f: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; --t: var(--f); }
body, .nav a, .tile .cap, .page h1, .about, .contact input, .contact textarea, .contact button,
.site-footer, .pinfo, .ptext, .credits, .pnav, .lb .count, .ptitle h1, .ptitle .place, .abouttext .ptitle h1, .abouttext .place {
  font-family: var(--f);
}
/* Menu: Inter medium 11px uppercase, like Fran Silvestre */
.nav { gap: 28px; }
.nav a { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: uppercase; color: #9a9a9a; line-height: 1; }
.nav a:hover, .nav a[aria-current="page"] { color: #303133; }

/* Project and About titles: Inter medium 16px uppercase */
.ptitle h1, .abouttext .ptitle h1, .page h1 { font-size: 16px; font-weight: 500; letter-spacing: .2px; line-height: 1.1; text-transform: uppercase; color: #2b2b2b; }
/* Location line: Inter light 12px, like his small captions */
.ptitle .place, .abouttext .place { font-size: 12px; font-weight: 300; letter-spacing: .5px; line-height: 1.3; color: #666767; margin-top: 6px; }
/* Body text: Inter regular, tight spacing, justified */
.ptext, .about { font-size: 15px; font-weight: 400; line-height: 20px; letter-spacing: -0.3px; color: #2b2b2b; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.ptext p + p, .about p + p { margin-top: 14px; }
.ptext .sh { font-weight: 600; text-decoration: none; text-align: left; }
/* Credits and links: Inter light 12px */
.credits { font-size: 12px; font-weight: 300; line-height: 16px; letter-spacing: .3px; color: #666767; }
.pnav { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: uppercase; color: #9a9a9a; }
.tile .cap { font-size: 14px; font-weight: 500; letter-spacing: .2px; text-transform: uppercase; }
.site-footer { font-size: 11px; font-weight: 300; letter-spacing: .3px; color: #777; }
.contact input, .contact textarea { font-size: 14px; font-weight: 400; letter-spacing: 0; }
.contact button { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: uppercase; }
@media (max-width: 900px) { .ptext, .about { text-align: left; } }
.ptext, .about { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
.pinfo .ptitle { margin-bottom: 14px; }
.pinfo .credits { margin-top: 0; margin-bottom: 28px; }
.pinfo .ptext + .pnav, .pinfo .pnav { margin-top: 32px; }
/* About: text in the left column, portrait in the image column */
.aboutpage .abouttext { padding-right: 50px; max-width: none; }
.aboutpage .abouttext .ptitle, .aboutpage .about { max-width: 420px; }
.aboutpage .portrait { padding-right: 0; max-width: 520px; }
.portrait img.alt { width: 100%; }

/* Footer always at the bottom of the window */
body { min-height: 100vh; display: flex; flex-direction: column; }
.view:not([hidden]) { flex: 1; display: flex; flex-direction: column; }
main { flex: 1; }

/* No box around menu links after clicking (keyboard focus still visible) */
a:focus:not(:focus-visible) { outline: none; }
@media (max-width: 900px) {
  .aboutpage .abouttext { padding-right: 0; }
  .aboutpage .portrait { order: -1; max-width: 360px; }
}

/* Credits: black, same rhythm as title and location */
.pinfo .ptitle { margin-bottom: 0; }
.pinfo .credits { margin-top: 6px; margin-bottom: 28px; font-size: 12px; font-weight: 300; line-height: 1.3; letter-spacing: .5px; color: #2b2b2b; }
.pinfo .credits li + li { margin-top: 6px; }

/* Menu: larger */
.nav { gap: 34px; }
.nav a { font-size: 13px; }
.pnav { font-size: 12px; }

/* Contact form centered on the page */
.contact.page { padding-left: var(--edge); padding-right: var(--edge); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.contact.page > * { width: 100%; max-width: 560px; }
.contact.page h1 { text-align: left; }
.site-header { position: sticky; top: 0; z-index: 40; }
/* Project grid centered on the page */
.grid { margin-left: auto !important; margin-right: auto !important; max-width: 1300px; padding-left: 0; padding-right: 0; }

/* One style everywhere: Inter medium, dark gray (#2b2b2b) */
.nav a, .pnav, .pnav a, .ptitle h1, .abouttext .ptitle h1, .page h1, .ptitle .place, .abouttext .place,
.pinfo .credits, .site-footer, .tile .cap, .contact button, .contact ::placeholder, .lb .count {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500; letter-spacing: 0; color: #2b2b2b;
}
.ptext, .about { font-weight: 400; color: #2b2b2b; letter-spacing: 0; }
.nav a { color: #9a9a9a; }
.nav a:hover, .nav a[aria-current="page"] { color: #2b2b2b; }
.pnav a { color: #9a9a9a; }
.pnav a:hover { color: #2b2b2b; }
.ptitle .place, .abouttext .place, .pinfo .credits { font-size: 13px; }
.contact ::placeholder { color: #9a9a9a; text-transform: uppercase; font-size: 13px; }
.tile .cap { color: #fff; }
/* Portrait exactly as wide as the logo */
.aboutpage .portrait, .portrait { width: 390px; max-width: 390px; padding-right: 0; }
.portrait img, .portrait img.alt { width: 100%; }
@media (max-width: 900px) {
  .aboutpage .portrait, .portrait { width: 300px; max-width: 300px; }
}
/* Menu: 16px like Kapsimalis */
.nav { gap: 44px; }
.nav a { font-size: 16px; }
@media (max-width: 900px) { .nav a { font-size: 20px; } }
/* About: photo directly under the logo (same left edge and width), text right beside it */
.aboutpage { grid-template-columns: 390px minmax(0, 620px); gap: 70px; padding-top: 30px; justify-content: start; }
.aboutpage .portrait { order: 0; }
.aboutpage .abouttext { padding-right: 0; }
.aboutpage .abouttext .ptitle, .aboutpage .about { max-width: 620px; }
@media (max-width: 1100px) { .aboutpage { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; } .aboutpage .portrait { width: 300px; } }
@media (max-width: 900px) { .aboutpage { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 1100px) and (min-width: 901px) { .aboutpage { grid-template-columns: 390px minmax(0, 1fr); } .aboutpage .portrait { width: 390px; } }
/* Trimmed logo: its box is exactly the letters (366px) */
.logo img { width: 366px; height: auto; }
/* Portrait exactly the logo width */
.aboutpage .portrait, .portrait { width: 366px; max-width: 366px; }
.aboutpage { grid-template-columns: 366px minmax(0, 620px); }
@media (max-width: 1100px) and (min-width: 901px) { .aboutpage { grid-template-columns: 366px minmax(0, 1fr); } .aboutpage .portrait { width: 366px; } }
@media (max-width: 900px) {
  .logo img { width: 282px; }
  .aboutpage .portrait, .portrait { width: 282px; max-width: 282px; }
  .aboutpage { grid-template-columns: 1fr; }
}
/* Menu: unselected items lighter, selected item medium */
.nav a { font-weight: 400; }
.nav a[aria-current="page"] { font-weight: 500; }
/* Same weight for all menu items so nothing shifts between pages; selected is just darker */
.nav a, .nav a[aria-current="page"] { font-weight: 400; }
.nav a[aria-current="page"] { color: #111; }
/* Project names on hover: regular weight */
.tile .cap { font-weight: 400; }
/* All projects on one screen: 4 columns x 3 rows, sized to the window height */
:root { --g: 22px; --th: calc((100vh - 230px - 2 * var(--g)) / 3); }
.grid {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--g);
  width: min(100%, calc(var(--th) * 4 / 3 * 4 + 3 * var(--g)));
  max-width: none;
  padding-top: 10px;
}
.tile { aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); width: 100%; gap: 10px; }
}
/* Home page: everything on one screen, no scrolling */
:root { --th: calc((100vh - 175px - 2 * var(--g)) / 3); }
body.home .site-footer { position: fixed; right: 0; bottom: 0; padding: 0 var(--edge) 34px; z-index: 30; background: none; }
body.home main { padding-bottom: 0; }
body.home .grid { padding-top: 6px; }
@media (max-width: 900px) {
  body.home .site-footer { position: static; padding: 24px 18px 30px; }
}
/* Previous / next project at the end of the images */
.pnext { display: flex; justify-content: space-between; gap: 30px; margin: 70px 0 20px; padding-top: 22px; border-top: 1px solid #e3e3e3; }
.pnext a { font: 500 14px/1.3 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #2b2b2b; text-transform: uppercase; transition: color .2s; }
.pnext a span { display: block; font-weight: 400; font-size: 12px; color: #9a9a9a; text-transform: uppercase; margin-bottom: 4px; }
.pnext a:hover { color: #9a9a9a; }
.pnext a.r { text-align: right; }
@media (max-width: 900px) { .pnext { margin-top: 36px; } }
.totop { bottom: 72px; right: var(--edge); }
/* Home grid: spans logo left edge to menu right edge, 3 rows fill the screen height */
.grid {
  width: 100% !important; max-width: none !important; margin: 0 !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: var(--th);
}
.grid .tile { aspect-ratio: auto; height: 100%; }
.site-header .nav { margin-right: 0; }
/* No box around menu links */
.nav a:focus, .nav a:focus-visible, .logo:focus { outline: none; }
.nav a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .grid .tile { aspect-ratio: 4 / 3; height: auto; }
}
:root { --th: calc((100vh - 215px - 2 * var(--g)) / 3); }
body.home .site-footer { padding-bottom: 30px; }
body.home .ig { bottom: 28px; }
.ig { left: var(--edge); }
@media (max-width: 900px) { .ig { left: auto; } }
/* Title block: title + location together, then a clear gap, then lighter credits */
.pinfo .ptitle .place { margin-top: 6px; }
.pinfo .credits { margin-top: 20px; margin-bottom: 30px; font-size: 12px; font-weight: 400; line-height: 1.35; color: #8a8a8a; }
.pinfo .credits li + li { margin-top: 4px; }
/* One spacing unit (22px = tile gap) from the logo to the content on every page */
:root { --s: 22px; --g: 22px; }
.site-header { padding-top: 34px; padding-bottom: var(--s); align-items: flex-start; }
.logo, .nav a { line-height: 18px; }
main, main.page, body.home main { padding-top: 0 !important; }
.project, .aboutpage, .grid, body.home .grid { padding-top: 0 !important; margin-top: 0 !important; }
.contact.page { justify-content: flex-start; padding-top: 0; }
.contact.page form { margin-top: 0; }
/* Home grid fills the rest of the screen: header (74) + bottom strip (70) */
:root { --th: calc((100vh - 74px - 70px - 2 * var(--g)) / 3); }
.pinfo { top: 74px; max-height: calc(100vh - 94px); }
/* Home grid: right column only (same line as project images), square tiles, scrolling allowed */
.grid, body.home .grid {
  width: auto !important;
  margin: 0 0 0 calc(32.4vw - 127px) !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: var(--g);
  padding-bottom: 60px;
}
.grid .tile { aspect-ratio: 1 / 1; height: auto; }
body.home .site-footer { position: static; padding: 30px var(--edge) 40px; }
@media (max-width: 1100px) and (min-width: 901px) { .grid, body.home .grid { margin-left: 260px !important; } }
@media (max-width: 900px) {
  .grid, body.home .grid { margin: 0 !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Project pages: identical split to the home grid
   left = logo edge to image line, right = image line to CONTACT's right edge */
.project { grid-template-columns: calc(32.4vw - 127px) minmax(0, 1fr) !important; gap: 0 !important; }
.pright { padding-right: 0 !important; max-width: none !important; }
.pimages { gap: var(--g) !important; }
.pimages figure { width: 100%; }
.pimages img, .pimages video {
  width: 100% !important; max-width: 100% !important; height: auto;
  max-height: calc(100vh - 96px); object-fit: cover; object-position: center;
}
.pnext { margin-top: 50px; }
@media (max-width: 1100px) and (min-width: 901px) { .project { grid-template-columns: 260px minmax(0, 1fr) !important; } }
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr !important; gap: 24px !important; }
  .pimages img, .pimages video { max-height: none; }
}
/* Images: never cropped. Wide ones fill the column, tall ones fit the screen height and sit centered */
.pimages figure { display: flex; justify-content: center; }
.pimages img, .pimages video {
  width: auto !important; max-width: 100% !important; height: auto;
  max-height: calc(100vh - 96px); object-fit: contain;
}
@media (max-width: 900px) { .pimages img, .pimages video { width: 100% !important; max-height: none; } }
/* Discreet arrows on previous / next */
.pnext a b { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.pnext .arr { width: 22px; height: 10px; fill: none; stroke: #9a9a9a; stroke-width: 1; transition: transform .25s ease, stroke .2s; }
.pnext a:hover .arr { stroke: #2b2b2b; }
.pnext a:not(.r):hover .arr { transform: translateX(-4px); }
.pnext a.r:hover .arr { transform: translateX(4px); }
.pnext a:hover { color: #2b2b2b; }
/* Header: 50px from the top, same as the side margin */
.site-header { padding-top: 50px; }
.pinfo { top: 90px; max-height: calc(100vh - 110px); }
.pimages img, .pimages video { max-height: calc(100vh - 112px); }
@media (max-width: 900px) { .site-header { padding-top: 24px; } }
/* Even frame: 50px top, sides, and under the header */
.site-header { padding-bottom: 50px; }
.pinfo { top: 118px; max-height: calc(100vh - 138px); }
.pimages img, .pimages video { max-height: calc(100vh - 140px); }
@media (max-width: 900px) { .site-header { padding-bottom: 24px; } }
/* About: photo and text centered against each other */
.aboutpage { align-items: center; }
@media (max-width: 900px) { .aboutpage { align-items: start; } }

/* About: text (left column) | photo (center) | contact form (right, ends at menu edge) */
.aboutpage {
  grid-template-columns: calc(32.4vw - 127px) minmax(0, 1fr) minmax(300px, 380px) !important;
  gap: 0 !important; align-items: center;
}
.aboutpage .abouttext { grid-column: 1; grid-row: 1; padding-right: 50px; }
.aboutpage .portrait { grid-column: 2; grid-row: 1; justify-self: center; }
.aboutpage .aboutcontact { grid-column: 3; grid-row: 1; padding: 0; margin: 0; max-width: none; display: block; }
.aboutcontact .ptitle { margin-bottom: 26px; }
.aboutcontact .ptitle h1 { font: 500 16px/1.1 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #2b2b2b; text-transform: uppercase; }
.aboutcontact form { max-width: none; }
.aboutcontact .row { grid-template-columns: 1fr 1fr; gap: 18px; }
.aboutpage .abouttext .ptitle, .aboutpage .about { max-width: none; }
@media (max-width: 1100px) and (min-width: 901px) {
  .aboutpage { grid-template-columns: 260px minmax(0, 1fr) 300px !important; }
  .aboutpage .portrait { width: 300px; max-width: 300px; }
}
@media (max-width: 900px) {
  .aboutpage { grid-template-columns: 1fr !important; gap: 30px !important; }
  .aboutpage .portrait, .aboutpage .abouttext, .aboutpage .aboutcontact { grid-column: 1; grid-row: auto; justify-self: start; }
  .aboutpage .abouttext { padding-right: 0; }
}
/* About: whole block centered vertically in the page (horizontal positions unchanged) */
.aboutpage { align-content: center; min-height: calc(100vh - 118px - 90px); }
@media (max-width: 900px) { .aboutpage { min-height: 0; align-content: start; } }
/* About (as before): photo under the logo | text beside it | contact on the right. Whole row centered vertically */
.aboutpage {
  grid-template-columns: 366px minmax(0, 620px) minmax(280px, 380px) !important;
  column-gap: 70px !important; justify-content: space-between;
  align-items: center; align-content: center;
}
.aboutpage .portrait { grid-column: 1; grid-row: 1; justify-self: start; }
.aboutpage .abouttext { grid-column: 2; grid-row: 1; padding-right: 0; }
.aboutpage .aboutcontact { grid-column: 3; grid-row: 1; }
@media (max-width: 1250px) and (min-width: 901px) {
  .aboutpage { grid-template-columns: 300px minmax(0, 1fr) 280px !important; column-gap: 40px !important; }
  .aboutpage .portrait { width: 300px; max-width: 300px; }
}
@media (max-width: 900px) {
  .aboutpage { grid-template-columns: 1fr !important; }
  .aboutpage .portrait, .aboutpage .abouttext, .aboutpage .aboutcontact { grid-column: 1; grid-row: auto; }
}
/* About: photo | text | contact — text and contact equal width, equal gaps, ends at menu edge */
.aboutpage { grid-template-columns: 366px minmax(0, 1fr) minmax(0, 1fr) !important; column-gap: 70px !important; justify-content: stretch; }
.aboutpage .abouttext, .aboutpage .aboutcontact { width: 100%; }
@media (max-width: 1250px) and (min-width: 901px) {
  .aboutpage { grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr) !important; column-gap: 40px !important; }
}
@media (max-width: 900px) { .aboutpage { grid-template-columns: 1fr !important; } }
/* Center the About row on the true middle of the window */
.aboutpage { min-height: calc(100vh - 236px); }
.aboutpage { padding-top: 0 !important; padding-bottom: 34px !important; min-height: 0; }
@media (max-width: 900px) { .aboutpage { padding-bottom: 40px !important; } }
/* Kapsimalis grid: 3 per row, 4:3 tiles, 55px gaps, starts 430px from the left at every width */
:root { --kcol: 380px; --kgap: 55px; }
.grid, body.home .grid {
  margin: 0 0 0 var(--kcol) !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--kgap) !important;
}
.grid .tile { aspect-ratio: 4 / 3; height: auto; }
/* Project pages use the same line */
.project { grid-template-columns: var(--kcol) minmax(0, 1fr) !important; }
.pimages { gap: var(--kgap) !important; }
@media (max-width: 1100px) and (min-width: 901px) {
  :root { --kcol: 280px; --kgap: 36px; }
  .grid, body.home .grid { margin-left: var(--kcol) !important; }
  .project { grid-template-columns: var(--kcol) minmax(0, 1fr) !important; }
}
@media (max-width: 900px) {
  .grid, body.home .grid { margin: 0 !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }
  .project { grid-template-columns: 1fr !important; }
  .pimages { gap: 14px !important; }
}
/* About: photo, name and CONTACT start on the same top line; the row stays centered as a group */
.aboutpage { align-items: start !important; align-content: center; }
.aboutpage .portrait, .aboutpage .abouttext, .aboutpage .aboutcontact { align-self: start; }
/* Submit button on the bottom right of the form */
.contact form { display: flex; flex-direction: column; }
.contact form button { align-self: flex-end; }
/* Photo up a little: its faded top sits above the text line */
.aboutpage .portrait { margin-top: -60px; }
@media (max-width: 900px) { .aboutpage .portrait { margin-top: 0; } }
/* Photo back in place; text and contact moved down instead */
.aboutpage .portrait { margin-top: 0; }
.aboutpage .abouttext, .aboutpage .aboutcontact { margin-top: 60px; }
@media (max-width: 900px) { .aboutpage .abouttext, .aboutpage .aboutcontact { margin-top: 0; } }
/* Credits: readable but quieter than title/location */
.pinfo .credits { font-size: 13px; font-weight: 400; line-height: 1.45; color: #555; }
.pinfo .credits li + li { margin-top: 4px; }
/* Credits: tight line spacing */
.pinfo .credits { line-height: 1.3; }
.pinfo .credits li + li { margin-top: 1px; }
/* Project text column exactly as wide as the logo (366px) */
.pinfo { padding-right: 0 !important; width: 366px; max-width: 366px; }
.pinfo .ptitle, .pinfo .ptext, .pinfo .credits { max-width: none !important; width: 100%; }
@media (max-width: 1100px) and (min-width: 901px) { .pinfo { width: auto; max-width: none; padding-right: 30px !important; } }
@media (max-width: 900px) { .pinfo { width: auto; max-width: none; } }

/* TRY: About centered — photo + about text side by side in the middle, contact centered below */
.aboutpage {
  grid-template-columns: 366px minmax(0, 560px) !important;
  column-gap: 60px !important; row-gap: 90px !important;
  justify-content: center !important; align-items: start !important; align-content: start;
  min-height: 0; padding-top: 40px !important; padding-bottom: 90px !important;
}
.aboutpage .portrait { grid-column: 1; grid-row: 1; margin-top: 0; }
.aboutpage .abouttext { grid-column: 2; grid-row: 1; margin-top: 60px; }
.aboutpage .aboutcontact {
  grid-column: 1 / -1; grid-row: 2; margin-top: 0;
  width: 100%; max-width: 560px; justify-self: center;
}
.aboutcontact .ptitle { text-align: left; }
@media (max-width: 1100px) and (min-width: 901px) {
  .aboutpage { grid-template-columns: 300px minmax(0, 1fr) !important; column-gap: 40px !important; }
}
@media (max-width: 900px) {
  .aboutpage { grid-template-columns: 1fr !important; row-gap: 40px !important; padding-top: 0 !important; }
  .aboutpage .portrait, .aboutpage .abouttext, .aboutpage .aboutcontact { grid-column: 1; grid-row: auto; margin-top: 0; justify-self: start; max-width: none; }
}
/* Original narrower portrait: same height as before, less wide */
.aboutpage { grid-template-columns: 282px minmax(0, 560px) !important; }
.aboutpage .portrait, .portrait { width: 282px; max-width: 282px; }
@media (max-width: 900px) { .aboutpage { grid-template-columns: 1fr !important; } .aboutpage .portrait, .portrait { width: 240px; max-width: 240px; } }
/* Contact spans exactly from the photo's left edge to the text's right edge */
.aboutpage .aboutcontact { max-width: none !important; width: 100%; justify-self: stretch; }
/* Photo lower: its top fade starts level with the name, photo and text centered against each other */
.aboutpage .portrait { margin-top: 0; align-self: center; }
.aboutpage .abouttext { margin-top: 0; align-self: center; }
@media (max-width: 900px) { .aboutpage .portrait, .aboutpage .abouttext { align-self: start; } }
.aboutpage .portrait { align-self: start; margin-top: 60px; }
.aboutpage .abouttext { align-self: start; margin-top: 60px; }
@media (max-width: 900px) { .aboutpage .portrait, .aboutpage .abouttext { margin-top: 0; } }
/* Photo moved down without pushing the contact form */
.aboutpage .portrait { margin-bottom: -60px; }
@media (max-width: 900px) { .aboutpage .portrait { margin-bottom: 0; } }
/* Photo further down (120px), still not pushing anything else */
.aboutpage .portrait { margin-top: 120px; margin-bottom: -120px; }
@media (max-width: 900px) { .aboutpage .portrait { margin-top: 0; margin-bottom: 0; } }
/* Photo anchored so the desk edge lines up with the last line of text (any screen / font rendering) */
.aboutpage .portrait { align-self: end; margin-top: 0; margin-bottom: -75px; }
@media (max-width: 900px) { .aboutpage .portrait { align-self: start; margin-bottom: 0; } }
.portrait:hover img:not(.alt) { opacity: 1; }

/* Images: not clickable, not draggable, no "Save image" on right-click or long-press */
img, video { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.pimages figure { cursor: default; }
/* About scales with the screen: photo 220–282px, text column 460–560px */
:root { --pw: clamp(220px, 19.6vw, 282px); --tw: clamp(460px, 39vw, 560px); }
.aboutpage { grid-template-columns: var(--pw) minmax(0, var(--tw)) !important; column-gap: clamp(40px, 4.2vw, 60px) !important; row-gap: clamp(60px, 6vw, 90px) !important; }
.aboutpage .portrait, .portrait { width: var(--pw); max-width: var(--pw); }
/* keep the desk edge on the last text line: desk sits at 80.1% of photo height (photo h = 1.5046 * w) */
.aboutpage .portrait { margin-bottom: calc(-0.2995 * var(--pw) + 9.5px); }
@media (max-width: 1500px), (max-height: 950px) {
  .aboutpage .about { font-size: 14px; line-height: 1.55; }
  .aboutpage .abouttext .ptitle h1 { font-size: 15px; }
  .aboutpage .abouttext { margin-top: 40px; }
}
@media (max-width: 900px) {
  :root { --pw: 240px; }
  .aboutpage { grid-template-columns: 1fr !important; }
  .aboutpage .portrait { margin-bottom: 0; }
  .aboutpage .abouttext { margin-top: 0; }
}
.nw { white-space: nowrap; }
/* Even out line lengths so the unbroken university names don't leave a gap before them */
.about p, .ptext p { text-wrap: pretty; }
.about p { text-wrap: balance; }
/* Degrees: one per line */
.about { text-wrap: wrap; }
.about p { text-wrap: pretty; }
.about .degrees { list-style: none; margin: 14px 0; padding: 0; }
.about .degrees li + li { margin-top: 2px; }
/* Images start 50px after the logo ends (same as the left margin): 50 + 366 + 50 = 466px */
:root { --kcol: 416px; }
@media (max-width: 1100px) and (min-width: 901px) { :root { --kcol: 300px; } }

/* ===== Smaller screens, Kapsimalis-style: text never scales, only images do ===== */
/* Undo the earlier laptop text shrink on About */
@media (max-width: 1500px), (max-height: 950px) {
  .aboutpage .about { font-size: 15px; line-height: 20px; }
  .aboutpage .abouttext .ptitle h1 { font-size: 16px; }
}
/* Tablet (<=1100px): hamburger menu, grid uses the full width, 3 per row; project text above images */
@media (max-width: 1100px) {
  .site-header { align-items: center; padding: 30px var(--edge) 30px; }
  .menu-btn {
    display: block; position: relative; z-index: 40;
    width: 28px; height: 22px; border: 0; background: none; cursor: pointer;
  }
  .menu-btn i { display: block; height: 2px; background: #000; margin: 5px 0; transition: transform .3s, opacity .3s; }
  .menu-open .menu-btn i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn i:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 35; background: #fff;
    flex-direction: column; align-items: center; justify-content: center; gap: 34px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .nav a { font-size: 16px; }
  .grid, body.home .grid { margin: 0 !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px !important; }
  .project { grid-template-columns: 1fr !important; gap: 30px !important; }
  .pinfo { position: static; width: auto; max-width: 560px; max-height: none; overflow: visible; padding-right: 0 !important; }
  .pimages { gap: 20px !important; }
  .pimages img, .pimages video { width: 100% !important; max-height: none; }
  .pimages figure { display: block; }
}
/* Large phone / small tablet (<=800px): 2 per row */
@media (max-width: 800px) {
  .grid, body.home .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px !important; }
}
/* Phone (<=520px): 1 per row */
@media (max-width: 520px) {
  :root { --edge: 18px; }
  .grid, body.home .grid { grid-template-columns: 1fr; gap: 14px !important; }
  .logo img { width: 282px; }
}
/* Titles a bit blacker */
.ptitle h1, .abouttext .ptitle h1, .aboutcontact .ptitle h1, .page h1 { color: #000 !important; }
@media (max-width: 1100px) {
  .ig { position: static; display: block; margin: 0 0 14px; }
  .site-footer { position: static !important; text-align: left; padding: 30px var(--edge) 34px !important; }
}
/* Touch devices: 16px form text so iOS doesn't zoom in when a field is tapped */
@media (pointer: coarse), (max-width: 1100px) {
  .contact input, .contact textarea { font-size: 16px; }
  .contact ::placeholder { font-size: 14px; }
}
/* Unbroken university names only on computer screens; phones/tablets wrap naturally */
@media (max-width: 1100px) { .nw { white-space: normal; } }
@media (max-width: 900px) { .aboutpage { row-gap: 28px !important; } .aboutpage .aboutcontact { margin-top: 20px; } }
/* Left column +20%: images start at 560px (was 466); project text column 460px, 50px gap before images */
:root { --kcol: 510px; }
.pinfo { width: 460px; max-width: 460px; }
@media (max-width: 1250px) and (min-width: 1101px) { :root { --kcol: 440px; } .pinfo { width: 390px; max-width: 390px; } }

/* ===== Computer screens: everything +20% (logo, margins, gaps). Left column 60 + 440 + 60 = 560px ===== */
.pinfo { width: auto; max-width: none; }
@media (min-width: 1101px) {
  :root { --edge: 60px; --kcol: 500px; --kgap: 66px; }
  .logo img { width: 440px !important; height: auto; }
  .site-header { padding: 60px var(--edge) 60px !important; }
  .pinfo { width: 440px; max-width: 440px; top: 138px; max-height: calc(100vh - 160px); }
  .pimages img, .pimages video { max-height: calc(100vh - 170px); }
  .grid, body.home .grid { gap: var(--kgap) !important; }
  .pimages { gap: var(--kgap) !important; }
  .ig { left: var(--edge); bottom: 38px; }
  .totop { right: var(--edge); }
  .site-footer { padding: 36px var(--edge) 48px; }
  .aboutpage { padding-bottom: 40px !important; }
}
@media (min-width: 1101px) and (max-width: 1350px) {
  :root { --edge: 50px; --kcol: 420px; --kgap: 50px; }
  .logo img { width: 370px !important; }
  .site-header { padding: 50px var(--edge) 50px !important; }
  .pinfo { width: 370px; max-width: 370px; }
}
/* Project text: stays put below the header, never clipped */
@media (min-width: 1101px) {
  .pinfo { position: sticky; top: var(--hh, 142px); max-height: none !important; overflow: visible !important; }
  .pinfo.tall { position: static; }
}
/* Slightly bigger: menu, titles, location lines, credits */
.nav a { font-size: 18px !important; }
.ptitle h1, .abouttext .ptitle h1, .aboutcontact .ptitle h1 { font-size: 18px !important; }
.ptitle .place, .abouttext .place { font-size: 14px !important; }
.pinfo .credits { font-size: 14px !important; }
@media (max-width: 1100px) { .nav a { font-size: 20px !important; } }
/* Body text bigger: project descriptions and About */
.ptext, .about, .aboutpage .about { font-size: 16.5px !important; line-height: 25px !important; letter-spacing: -0.1px; }
.ptext p + p, .about p + p { margin-top: 14px; }
/* Instagram icon: solid, Kapsimalis size */
.ig { width: 26px; height: 26px; }
/* Copyright: readable */
.site-footer, .site-footer p { font-size: 14px !important; color: #2b2b2b; }
/* Menu: bigger, no underline after clicking */
.nav a { font-size: 20px !important; text-decoration: none !important; }
.nav a:focus, .nav a:focus-visible, .nav a:active { outline: none; text-decoration: none !important; }
@media (max-width: 1100px) { .nav a { font-size: 22px !important; } }
@media (min-width: 1101px) {
  .ig { bottom: 34px; }
  .site-footer { padding-bottom: 38px !important; line-height: 18px; }
}
.contact button { font-size: 14px !important; padding: 13px 38px; }

/* ===== Landing hero (Fran Silvestre style) ===== */
body.landing .site-header { position: fixed; top: 0; left: 0; right: 0; background: transparent; transition: background .35s ease; }
body.landing:not(.hero-top) .site-header { background: #fff; }
body.landing.hero-top .logo img { filter: brightness(0) invert(1); }
body.landing.hero-top .nav a { color: rgba(255,255,255,.75) !important; }
body.landing.hero-top .nav a:hover { color: #fff !important; }
body.landing.hero-top .menu-btn i { background: #fff; }
body.landing.hero-top.menu-open .menu-btn i { background: #000; }
body.landing.hero-top .ig { opacity: 0; pointer-events: none; }
body.landing .ig { transition: opacity .3s; }
.landing { padding-top: 0 !important; }
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #111;
  margin: 0 calc(-1 * var(--edge)) var(--kgap, 66px);
}
.hero .slides, .hero .slide, .hero-shade { position: absolute; inset: 0; }
.hero .slide { opacity: 0; transition: opacity 1.8s ease; }
.hero .slide.on { opacity: 1; z-index: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7.5s linear; }
.hero .slide.on img { transform: scale(1); }
.hero-shade { z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.30) 35%, rgba(0,0,0,.50) 100%); }
.hero-mark { position: absolute; z-index: 3; left: 0; right: 0; bottom: 15vh; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 0 var(--edge); pointer-events: none; }
.hero-mark img { width: min(62vw, 1100px); height: auto; }
.hero-cap { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-align: center; transition: opacity .6s ease; }
.hero-cap .t { font-size: 15px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.hero-cap .p { font-size: 13px; font-weight: 400; letter-spacing: .04em; opacity: .8; }
.hero-cap.fade { opacity: 0; }
.hero-down { position: absolute; z-index: 3; left: 50%; bottom: 34px; transform: translateX(-50%); background: none; border: 0; cursor: pointer; padding: 8px; }
.hero-down svg { width: 16px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.2; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.landing .grid { scroll-margin-top: calc(var(--hh, 142px) + 10px); }
@media (prefers-reduced-motion: reduce) { .hero .slide img { transition: none; transform: none; } .hero-down svg { animation: none; } }
@media (max-width: 1100px) { .hero-mark { bottom: 18vh; } .hero-mark img { width: 84vw; } }
@media (max-width: 520px) { .hero-cap .t { font-size: 13px; } .hero-cap .p { font-size: 12px; } }
body.landing .logo { transition: opacity .35s ease; }
body.landing.hero-top .logo { opacity: 0; pointer-events: none; }
body.landing.hero-top .logo img { filter: none; }
.hero-shade { background: linear-gradient(to bottom, rgba(0,0,0,.50) 0%, rgba(0,0,0,.38) 40%, rgba(0,0,0,.58) 100%); }
/* One logo everywhere: same artwork as the opening screen; white over images, dark on white */
.logo img { height: auto !important; }
body.landing.hero-top .logo { opacity: 0; }
/* 4 projects per row on computers */
@media (min-width: 1101px) {
  .grid, body.home .grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 44px !important; }
}
/* 4 per row only where tiles stay a good size; 3 per row on laptops */
@media (min-width: 1101px) and (max-width: 1699px) {
  .grid, body.home .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 50px !important; }
}

/* ===== Project text: 3 styles only, one rhythm ===== */
.pinfo .ptitle h1 { font: 500 18px/24px var(--f) !important; letter-spacing: .02em !important; text-transform: uppercase; color: #000 !important; margin: 0 !important; }
.pinfo .ptitle .place, .pinfo .credits, .pinfo .credits li {
  font: 400 15px/23px var(--f) !important; letter-spacing: 0 !important; color: #8a8a8a !important; text-transform: none;
}
.pinfo .ptitle .place { display: block; margin-top: 0 !important; }
.pinfo .credits { margin: 22px 0 0 !important; }
.pinfo .credits li + li { margin-top: 0 !important; }
.pinfo .ptext, .pinfo .ptext p { font: 400 15px/23px var(--f) !important; letter-spacing: 0 !important; color: #2b2b2b !important; }
.pinfo .ptext { margin-top: 22px !important; }
.pinfo .ptext p + p { margin-top: 23px !important; }
.pinfo .ptext .sh { font-weight: 500 !important; margin-top: 23px !important; }
.pinfo .ptext .sh + p { margin-top: 0 !important; }
.pinfo .ptitle { margin-bottom: 0 !important; }
/* About + contact: same three styles */
.aboutcontact .ptitle h1 { letter-spacing: .02em !important; }
.abouttext .ptitle h1, .aboutcontact .ptitle h1 { font: 500 18px/24px var(--f) !important; color: #000 !important; margin: 0 !important; }
.abouttext .ptitle .place { font: 400 15px/23px var(--f) !important; letter-spacing: 0 !important; color: #8a8a8a !important; margin-top: 0 !important; display: block; }
.abouttext .ptitle { margin-bottom: 22px !important; }
.aboutcontact .ptitle { margin-bottom: 22px !important; }
.aboutpage .about, .aboutpage .about p { font: 400 15px/23px var(--f) !important; letter-spacing: 0 !important; color: #2b2b2b !important; }
.aboutpage .about p + p { margin-top: 23px !important; }
.abouttext .ptitle h1 { letter-spacing: normal; }
/* Project grid spans the full width: from the logo's M to the end of the menu */
@media (min-width: 1101px) {
  .grid, body.home .grid, .landing .grid { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; width: auto !important; max-width: none !important; }
}
@media (min-width: 1101px) { .grid, body.home .grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 44px !important; } }

/* ===== Roomier margins ===== */
@media (min-width: 1101px) {
  :root { --edge: 90px; --kcol: 510px; --kgap: 56px; --g: 56px; }
  .site-header { padding: 80px var(--edge) 64px !important; }
  main, main.page { padding-left: var(--edge) !important; padding-right: var(--edge) !important; }
  .grid, body.home .grid { gap: 56px !important; }
  .pimages { gap: 56px !important; }
  .project, .aboutpage { padding-bottom: 90px !important; }
  .ig { left: var(--edge) !important; bottom: 44px !important; }
  .site-footer { padding: 40px var(--edge) 48px !important; }
  .totop { right: var(--edge) !important; }
  .hero { margin-left: calc(-1 * var(--edge)); margin-right: calc(-1 * var(--edge)); margin-bottom: 80px; }
}
@media (min-width: 1101px) and (max-width: 1500px) {
  :root { --edge: 70px; --kcol: 480px; --kgap: 44px; --g: 44px; }
  .site-header { padding: 64px var(--edge) 52px !important; }
  .grid, body.home .grid, .pimages { gap: 44px !important; }
}
@media (max-width: 1100px) { :root { --edge: 32px; } .site-header { padding: 32px var(--edge) 28px !important; } main, main.page { padding-left: var(--edge) !important; padding-right: var(--edge) !important; } }
@media (max-width: 520px) { :root { --edge: 22px; } .site-header { padding: 24px var(--edge) 22px !important; } }
/* Credits: black, a bit bolder */
.pinfo .credits, .pinfo .credits li { color: #000 !important; font-weight: 500 !important; }
/* Instagram: same distance from the bottom as from the side */
@media (min-width: 1101px) {
  .ig { left: var(--edge) !important; bottom: var(--edge) !important; }
  body .site-footer { padding-bottom: calc(var(--edge) + 4px) !important; }
}
.hero .slide img[src*="2ee05d5c"] { object-position: 50% 62%; }
/* Footer row: Instagram (left) and copyright (right) on one line, same distance from the bottom as from the sides; back-to-top box sits above the copyright */
@media (min-width: 1101px) {
  .site-footer { position: fixed !important; left: auto; right: var(--edge); bottom: var(--edge); padding: 0 !important; z-index: 30; background: none; line-height: 26px; }
  .site-footer p { line-height: 26px; }
  .totop { right: var(--edge) !important; bottom: calc(var(--edge) + 26px + 28px) !important; }
  main { padding-bottom: calc(var(--edge) + 60px) !important; }
}
@media (min-width: 1101px) {
  body .site-footer, body.home .site-footer { position: fixed !important; top: auto !important; left: auto !important; right: var(--edge) !important; bottom: var(--edge) !important; padding: 0 !important; margin: 0 !important; }
}
@media (min-width: 1101px) {
  body .site-footer, body.home .site-footer { position: static !important; text-align: right; padding: 0 var(--edge) var(--edge) !important; margin: 0 !important; line-height: 26px; }
  main { padding-bottom: 120px !important; }
}

/* ===== Opening like theamandrakia.com ===== */
.hero { background: #000; }
.hero-shade { display: none; }
.hero .slide img { opacity: .8; }
.hero-mark { top: 0; bottom: 0; justify-content: center; gap: 22px; padding-top: 40px; }
.hero-logo-slot { display: block; width: min(560px, 64vw); aspect-ratio: 1553 / 74; }
.hero-cap .t { font-size: 13px !important; font-weight: 500 !important; letter-spacing: .34em !important; padding-left: .34em; text-transform: uppercase; }
.hero-cap .p { font-size: 12px !important; letter-spacing: .12em !important; opacity: .85; }
/* the travelling logo */
.mark { position: fixed; left: 0; top: 0; z-index: 45; transform-origin: 0 0; pointer-events: none; will-change: transform; }
.mark img { display: block; width: 100%; height: auto; }
.mark .dk { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.mark .wt { transition: opacity .35s ease; }
.mark.dark .dk { opacity: 1; } .mark.dark .wt { opacity: 0; }
html.js-mark body.landing .site-header .logo { opacity: 0 !important; }
body.landing:not(.hero-top) .site-header { background: #fff; }
/* Footer row at the end of every page: Instagram left, copyright right, one line */
@media (min-width: 1101px) {
  body .site-footer, body.home .site-footer { display: flex !important; justify-content: space-between; align-items: center; }
  .ig { position: static !important; display: block; margin: 0 !important; }
}
/* no white strip beside the opening */
html.js-mark { scrollbar-gutter: auto; }
/* docked logo stays clickable: it acts as the header logo after the opening */
.mark { pointer-events: none; }
/* faster slideshow */
.hero .slide { transition: opacity 1.2s ease; }
.hero .slide img { transition: transform 5.5s linear; }
/* Footer on every screen size: Instagram left, copyright bottom right, one line */
body .site-footer, body.home .site-footer {
  display: flex !important; justify-content: space-between !important; align-items: center !important;
  text-align: right !important; position: static !important;
}
body .site-footer .ig { position: static !important; margin: 0 !important; display: block; }
body .site-footer p { margin: 0 0 0 auto !important; text-align: right !important; }
@media (max-width: 1100px) {
  body .site-footer, body.home .site-footer { padding: 28px var(--edge) var(--edge) !important; }
  .totop { bottom: calc(var(--edge) + 26px + 24px) !important; right: var(--edge) !important; }
}
/* Slideshow: no project name or place, only the logo */
.hero-cap { display: none !important; }
body .site-footer p { padding-right: 0 !important; }
/* Landing: only the logo. Whole slideshow clicks through to Architecture */
.hero .hero-link { position: absolute; inset: 0; z-index: 3; cursor: pointer; }
.hero .hero-down { display: none !important; }
.mark { pointer-events: none !important; }
.site-header .nav, .site-header .menu-btn { transition: opacity .25s linear; }
/* Couple image: no zoom, show as much of the frame as possible */
.hero .slide img[src*="couple01"] { transform: none !important; transition: none !important; object-position: 50% 45%; }
/* Location line: same as the body text */
.pinfo .ptitle .place, .abouttext .ptitle .place { color: #2b2b2b !important; font-weight: 400 !important; }
/* Back to top: sits at the corner, and lifts to stay clear of the footer at the end of the page */
.totop, body .totop { bottom: var(--edge) !important; right: var(--edge) !important; will-change: transform; }
@media (max-width: 1100px) { .totop, body .totop { bottom: var(--edge) !important; } }
/* Instagram: fixed in the left margin, centered between the window edge and the text, level with the back-to-top box */
@media (min-width: 1101px) {
  body .site-footer .ig { position: fixed !important; left: calc((var(--edge) - 26px) / 2) !important; bottom: calc(var(--edge) + 7px) !important; margin: 0 !important; z-index: 20; }
}
/* Instagram pinned on every screen size (phones/tablets: margin is too narrow, so it lines up with the text edge) */
@media (max-width: 1100px) {
  body .site-footer .ig { position: fixed !important; left: var(--edge) !important; bottom: calc(var(--edge) + 7px) !important; margin: 0 !important; z-index: 20; }
}
body .site-footer .ig { transition: color .25s; }
body.hero-top .site-footer .ig { color: #fff !important; }
/* Intro logo bigger */
.hero-logo-slot { width: min(860px, 84vw) !important; }
/* Instagram visible at all times, also over the intro slideshow */
body .site-footer .ig, body.hero-top .site-footer .ig, body.landing .site-footer .ig, .js-mark body .site-footer .ig { opacity: 1 !important; visibility: visible !important; z-index: 60 !important; pointer-events: auto !important; }
/* Landing is only the intro: full screen, no scrolling. Click opens Architecture */
html:has(body.landing), body.landing { overflow: hidden !important; height: 100%; overscroll-behavior: none; }
body.landing .hero { position: fixed !important; inset: 0 !important; margin: 0 !important; height: auto !important; min-height: 0 !important; z-index: 5; }
body.landing .site-footer p, body.landing .totop { display: none !important; }
.hero.leaving .slides, .hero.leaving .hero-shade { transition: opacity .7s ease; opacity: 0; }
.hero.leaving { background: #fff !important; }
.mark { transition-property: transform; }
/* Instagram and back-to-top: same distance from the side and from the bottom */
@media (min-width: 1101px) { body .site-footer .ig { bottom: calc((var(--edge) - 26px) / 2) !important; } }
@media (max-width: 1100px) { body .site-footer .ig { bottom: var(--edge) !important; } }
.totop, body .totop { bottom: var(--edge) !important; right: var(--edge) !important; }
/* Back-to-top on desktop: in the right margin, centered between the text and the window edge, same distance from the bottom */
@media (min-width: 1101px) {
  .totop, body .totop { right: calc((var(--edge) - 40px) / 2) !important; bottom: calc((var(--edge) - 40px) / 2) !important; }
}
/* Copyright on the same level as the pinned Instagram icon (at the end of the page) */
body .site-footer p { line-height: 26px !important; }
@media (min-width: 1101px) { body .site-footer, body.home .site-footer { padding-bottom: calc((var(--edge) - 26px) / 2) !important; } }
@media (max-width: 1100px) { body .site-footer, body.home .site-footer { padding-bottom: var(--edge) !important; } }
/* Intro exit: dissolve to white, then the Architecture page fades up */
.hero.leaving .slides, .hero.leaving .hero-shade { transition: opacity .8s ease, transform .8s ease !important; opacity: 0 !important; transform: scale(1.03); }
.hero.leaving { background: #fff !important; transition: background .8s ease; }
@keyframes mt-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html.arrive main, html.arrive .site-header { animation: mt-arrive .8s ease both; }
html:not(.arrive) main { animation: none; }
/* Project titles bolder */
.pinfo .ptitle h1, .abouttext .ptitle h1, .aboutcontact .ptitle h1 { font-weight: 600 !important; }
/* Back-to-top stacked on top of the Instagram icon, both centered in the left margin */
@media (min-width: 1101px) {
  .totop, body .totop { left: calc(var(--edge) / 2 - 20px) !important; right: auto !important; bottom: calc((var(--edge) - 26px) / 2 + 26px + 14px) !important; }
}
@media (max-width: 1100px) {
  .totop, body .totop { left: calc(var(--edge) + 13px - 20px) !important; right: auto !important; bottom: calc(var(--edge) + 26px + 14px) !important; }
}
/* Back-to-top on the RIGHT, stacked on top of the copyright, right edges aligned */
@media (min-width: 1101px) {
  .totop, body .totop { left: auto !important; right: var(--edge) !important; bottom: calc((var(--edge) - 26px) / 2 + 26px + 14px) !important; }
}
@media (max-width: 1100px) {
  .totop, body .totop { left: auto !important; right: var(--edge) !important; bottom: calc(var(--edge) + 26px + 14px) !important; }
}
/* Copyright mirrors Instagram: same distance from the right edge as the icon from the left. Arrow sits on top of it */
@media (min-width: 1101px) {
  body .site-footer, body.home .site-footer { padding-right: calc((var(--edge) - 26px) / 2) !important; }
  .totop, body .totop { right: calc((var(--edge) - 26px) / 2) !important; }
}
/* ===== Editorial text style (like a magazine or news feature) ===== */
/* Dateline / kicker above the headline */
.pinfo .ptitle .place, .abouttext .ptitle .place {
  display: block !important; font: 500 11px/16px var(--f) !important; letter-spacing: .14em !important;
  text-transform: uppercase !important; color: #8a8a8a !important; margin: 0 0 12px !important;
}
/* Headline */
.pinfo .ptitle h1, .abouttext .ptitle h1, .aboutcontact .ptitle h1 {
  font: 500 30px/1.15 var(--f) !important; letter-spacing: -.015em !important; text-transform: none !important;
  color: #111 !important; margin: 0 !important;
}
.pinfo .ptitle, .abouttext .ptitle, .aboutcontact .ptitle { margin-bottom: 0 !important; }
/* Body: lede paragraph a step larger, then regular reading text */
.pinfo .ptext { margin-top: 26px !important; }
.pinfo .ptext, .pinfo .ptext p, .aboutpage .about, .aboutpage .about p { font: 400 16px/26px var(--f) !important; letter-spacing: 0 !important; color: #333 !important; }
.pinfo .ptext p:first-child, .aboutpage .about p:first-child { font: 400 19px/29px var(--f) !important; color: #111 !important; letter-spacing: -.005em !important; }
.pinfo .ptext p + p, .aboutpage .about p + p { margin-top: 16px !important; }
.pinfo .ptext .sh { font-weight: 500 !important; color: #111 !important; margin-top: 22px !important; }
.abouttext .ptitle { margin-bottom: 26px !important; }
/* Credits at the end, like an article's credit box: small label above, name below */
.pinfo .credits { margin: 32px 0 0 !important; padding: 20px 0 0 !important; border-top: 1px solid #e3e3e3; list-style: none; }
.pinfo .credits li { font: 400 14px/20px var(--f) !important; color: #111 !important; letter-spacing: 0 !important; }
.pinfo .credits li + li { margin-top: 12px !important; }
.pinfo .credits .k { display: block; font: 500 10.5px/15px var(--f); letter-spacing: .14em; text-transform: uppercase; color: #8a8a8a; margin-bottom: 2px; }
.pinfo .credits .v { display: block; font-weight: 400 !important; color: #111 !important; }
@media (max-width: 700px) {
  .pinfo .ptitle h1, .abouttext .ptitle h1, .aboutcontact .ptitle h1 { font-size: 26px !important; }
  .pinfo .ptext p:first-child, .aboutpage .about p:first-child { font-size: 17px !important; line-height: 27px !important; }
}
/* Desktop: arrow button centered in the right margin (equal space to the images and to the window edge) */
@media (min-width: 1101px) { .totop, body .totop { right: calc((var(--edge) - 40px) / 2) !important; } }
/* One body style: no larger lede */
.pinfo .ptext p:first-child, .aboutpage .about p:first-child { font: 400 16px/26px var(--f) !important; color: #333 !important; letter-spacing: 0 !important; }
@media (max-width: 700px) { .pinfo .ptext p:first-child, .aboutpage .about p:first-child { font-size: 16px !important; line-height: 26px !important; } }
/* Headlines in capitals */
.pinfo .ptitle h1, .abouttext .ptitle h1, .aboutcontact .ptitle h1 { text-transform: uppercase !important; letter-spacing: .01em !important; }
/* Headline: capitals, smaller than the logo */
.pinfo .ptitle h1, .abouttext .ptitle h1, .aboutcontact .ptitle h1 { font: 500 19px/26px var(--f) !important; letter-spacing: .04em !important; text-transform: uppercase !important; }
@media (max-width: 700px) { .pinfo .ptitle h1, .abouttext .ptitle h1, .aboutcontact .ptitle h1 { font-size: 17px !important; line-height: 24px !important; } }
.pinfo .ptitle .place, .abouttext .ptitle .place { margin-bottom: 8px !important; }
.pinfo .ptext { margin-top: 22px !important; }
.pinfo .ptitle h1, .abouttext .ptitle h1, .aboutcontact .ptitle h1 { font-weight: 600 !important; }
/* Previous / next line: same distance from the last image as the images are from each other */
.pimages { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.pnext, body .pnext { margin-top: var(--kgap, 56px) !important; }
@media (max-width: 1100px) { .pnext, body .pnext { margin-top: 20px !important; } }
/* Previous / next: same chevron as the back-to-top button */
.pnext .arr { width: 12px !important; height: 12px !important; stroke-width: 1.6 !important; stroke: #2b2b2b !important; fill: none; }
.pnext a b { gap: 10px !important; }
.pnext a:hover .arr { stroke: #9a9a9a !important; }
/* Footer grid: Instagram and copyright on one line, as far from the bottom as from the side.
   Arrow box above the copyright with the same gap, right edges of box and copyright aligned. */
@media (min-width: 1101px) {
  body .site-footer, body.home .site-footer { padding-right: calc((var(--edge) - 40px) / 2) !important; padding-bottom: calc((var(--edge) - 26px) / 2) !important; }
  .totop, body .totop { right: calc((var(--edge) - 40px) / 2) !important; bottom: calc((var(--edge) - 26px) + 26px) !important; }
}
@media (max-width: 1100px) {
  .totop, body .totop { right: var(--edge) !important; bottom: calc(var(--edge) * 2 + 26px) !important; }
}
/* Instagram: sticky (no JavaScript, no jitter). It rides at the bottom of the screen and,
   at the end of the page, comes to rest exactly on the copyright line. */
.igpin { --s: calc((var(--edge) - 26px) / 2); position: sticky; bottom: var(--s); width: 26px; height: 26px;
  margin: calc(-1 * (var(--s) + 26px)) 0 var(--s) var(--s); z-index: 60; }
@media (max-width: 1100px) { .igpin { --s: var(--edge); } }
.igpin .ig { position: static !important; display: block; width: 26px; height: 26px; color: #000; transform: none !important; }
.igpin .ig svg { width: 26px; height: 26px; display: block; }
/* Intro: the page does not scroll there, so pin it to the corner and make it white */
body.landing .igpin { position: fixed; left: 0; bottom: var(--s); margin: 0 0 0 var(--s); }
body.landing .igpin .ig { color: #fff !important; }
/* Title tracking a touch tighter */
.pinfo .ptitle h1, .abouttext .ptitle h1, .aboutcontact .ptitle h1 { letter-spacing: .02em !important; }
/* More room between CONTACT and the first field */
.aboutcontact .ptitle { margin-bottom: 40px !important; }
/* Faster slideshow: shorter crossfade and zoom to match 3s per picture */
.hero .slide { transition: opacity 1s ease !important; }
.hero .slide img { transition: transform 4.2s linear; }
/* Intro: no Instagram */
body.landing .igpin { display: none !important; }
/* Logo re-spaced (wider image): scale widths so the letters stay the same size */
body .site-header .logo img { width: 410px !important; max-width: calc(100vw - 2 * var(--edge) - 52px) !important; height: auto !important; }
@media (max-width: 900px) { body .site-header .logo img { width: 316px !important; } }
@media (min-width: 1101px) { body .site-header .logo img { width: 493px !important; } }
@media (min-width: 1101px) and (max-width: 1350px) { body .site-header .logo img { width: 414px !important; } }
/* Project website link in the credits */
.pinfo .credits .web a { color: #111; text-decoration: underline; text-decoration-color: #bdbdbd; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .2s, color .2s; }
.pinfo .credits .web a:hover { text-decoration-color: #111; }
/* Logo spacing halfway: widths for the 1553px image */
body .site-header .logo img { width: 388px !important; }
@media (max-width: 900px) { body .site-header .logo img { width: 299px !important; } }
@media (min-width: 1101px) { body .site-header .logo img { width: 466px !important; } }
@media (min-width: 1101px) and (max-width: 1350px) { body .site-header .logo img { width: 392px !important; } }
/* ===== Project tiles: Apple-style hover ===== */
.grid .tile { overflow: hidden; transform: translateZ(0); transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s cubic-bezier(.2,.8,.2,1); }
.grid .tile img, .grid .tile video { transition: transform 1.1s cubic-bezier(.2,.8,.2,1) !important; transform: scale(1.001); }
.grid .tile .cap {
  position: absolute !important; inset: auto 0 0 0 !important; display: block !important; text-align: left !important;
  padding: 60px 20px 18px !important; background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0)) !important;
  color: #fff !important; font: 600 15px/20px var(--f) !important; letter-spacing: .02em !important; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .5s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1) !important;
}
.grid .tile .cap small { display: block; font: 500 10.5px/15px var(--f); letter-spacing: .14em; color: rgba(255,255,255,.78); margin-bottom: 3px; }
.grid .tile::after, .grid .tile.nocap::after { display: none !important; }
@media (hover: hover) {
  .grid .tile:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -18px rgba(0,0,0,.35); }
  .grid .tile:hover img, .grid .tile:hover video { transform: scale(1.04); }
  .grid .tile:hover .cap { opacity: 1; transform: none; }
}
/* Phones and tablets (no hover): caption always shown, quietly */
@media (hover: none) { .grid .tile .cap { opacity: 1; transform: none; padding: 48px 14px 12px !important; font-size: 13px !important; } }
/* Quicker intro exit: short fade out, page fades straight in (no long white pause) */
.hero.leaving .slides, .hero.leaving .hero-shade { transition: opacity .4s ease, transform .4s ease !important; }
.hero.leaving { transition: background .4s ease; }
html.arrive main, html.arrive .site-header { animation: mt-arrive .45s ease-out both !important; }
@keyframes mt-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* ===== Apple-style layer ===== */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
/* Frosted glass header once the page scrolls */
.site-header { transition: background-color .4s ease, box-shadow .4s ease, -webkit-backdrop-filter .4s ease, backdrop-filter .4s ease; }
.site-header.scrolled { background: rgba(255,255,255,.72) !important; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
/* Menu links: soft fade */
.nav a { transition: color .3s ease, opacity .3s ease !important; }
/* Content eases in as it scrolls into view */
html.reveal-on .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
html.reveal-on .rv.in { opacity: 1; transform: none; }
html.reveal-on .grid .tile.rv.in { transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) { html.reveal-on .grid .tile.rv.in:hover { transform: translateY(-4px); } }
/* Cards: soft rounded corners like Apple's tiles */
.grid .tile { border-radius: 14px; -webkit-mask-image: -webkit-radial-gradient(white, black); }
/* Back-to-top: rounded, frosted dark */
.totop, body .totop { border-radius: 12px !important; background: rgba(0,0,0,.82) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity .35s ease, transform .35s ease, background .25s ease !important; }
.totop:hover { background: #000 !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } html.reveal-on .rv { opacity: 1 !important; transform: none !important; } }
/* Tiles: square corners */
.grid .tile { border-radius: 0 !important; -webkit-mask-image: none !important; }
/* Back-to-top: square again, quiet */
.totop, body .totop { border-radius: 0 !important; background: #000 !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Tiles: name only, centered on the image */
.grid .tile .cap small { display: none !important; }
.grid .tile .cap {
  inset: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important;
  text-align: center !important; padding: 20px !important; background: rgba(0,0,0,.32) !important; transform: none !important;
}
@media (hover: hover) { .grid .tile .cap { transform: scale(.98) !important; } .grid .tile:hover .cap { transform: none !important; } }
@media (hover: none) { .grid .tile .cap { background: rgba(0,0,0,.22) !important; } }
/* Copyright can never sit lower than the Instagram line: it is sticky with the same bottom distance */
body .site-footer, body.home .site-footer { display: block !important; }
body .site-footer p { --s: calc((var(--edge) - 26px) / 2); position: sticky !important; bottom: var(--s); display: block; width: max-content; margin: 0 0 0 auto !important; line-height: 26px !important; }
@media (max-width: 1100px) { body .site-footer p { --s: var(--edge); } }
/* Give the sticky copyright room to rise (no visible change to the layout) */
body .site-footer, body.home .site-footer { padding-top: 140px !important; margin-top: -140px !important; pointer-events: none; position: relative; z-index: 2; }
body .site-footer p { pointer-events: auto; }
/* room for the sticky copyright must be inside the footer's content, not its padding */
body .site-footer, body.home .site-footer { padding-top: 0 !important; }
body .site-footer::before { content: ""; display: block; height: 140px; }
/* Tile names lighter */
.grid .tile .cap { font-weight: 500 !important; letter-spacing: .05em !important; }
/* Calmer tile hover: no lift, no shadow. Just a slow, slight zoom and the name fading in */
html.reveal-on .rv.done { transition: none; }
.grid .tile, html.reveal-on .grid .tile.rv.in { box-shadow: none !important; }
@media (hover: hover) {
  .grid .tile:hover, html.reveal-on .grid .tile.rv.in:hover { transform: none !important; box-shadow: none !important; }
  .grid .tile img, .grid .tile video { transition: transform 1.2s cubic-bezier(.25,.1,.25,1) !important; }
  .grid .tile:hover img, .grid .tile:hover video { transform: scale(1.03) !important; }
  .grid .tile .cap { transform: none !important; transition: opacity .6s cubic-bezier(.25,.1,.25,1) !important; }
  .grid .tile:hover .cap { transform: none !important; }
}
/* Copyright: on desktop it may rise up to 40px (into empty space only) to stay on the Instagram line. Off on phones */
body .site-footer::before { height: 40px !important; }
body .site-footer, body.home .site-footer { margin-top: -40px !important; }
@media (max-width: 1100px) {
  body .site-footer::before { height: 0 !important; }
  body .site-footer, body.home .site-footer { margin-top: 0 !important; }
  body .site-footer p { position: static !important; }
}
/* Tile names: same style as the project page titles */
.grid .tile .cap { font: 600 19px/26px var(--f) !important; letter-spacing: .02em !important; text-transform: uppercase !important; }
@media (max-width: 1500px) { .grid .tile .cap { font-size: 17px !important; line-height: 24px !important; } }
@media (max-width: 700px) { .grid .tile .cap { font-size: 16px !important; } }
/* Tile names smaller */
.grid .tile .cap { font-size: 15px !important; line-height: 20px !important; }
@media (max-width: 1500px) { .grid .tile .cap { font-size: 14px !important; } }
@media (max-width: 700px) { .grid .tile .cap { font-size: 14px !important; } }
/* Steady tiles: keep zoom and text on their own layer so nothing shimmers */
.grid .tile img { backface-visibility: hidden; will-change: transform; }
.grid .tile .cap { backface-visibility: hidden; -webkit-font-smoothing: antialiased; }
.grid .tile .cap { font-weight: 500 !important; }
/* Instagram and copyright share ONE pinned row, so they are always on the same line */
.igpin { width: auto !important; margin-right: var(--s) !important; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.igpin .ig, .igpin .cpr { pointer-events: auto; }
.igpin .cpr { font: 400 13px/26px var(--f); color: #2b2b2b; letter-spacing: .01em; white-space: nowrap; }
@media (min-width: 1101px) { .igpin { margin-right: calc((var(--edge) - 40px) / 2) !important; } }
body .site-footer p { visibility: hidden !important; }
body .site-footer p { position: static !important; }
.igpin .ig { margin: 0 !important; }
/* Intro exit: photo dissolves into the page */
.intro-veil { position: fixed; inset: 0; z-index: 70; pointer-events: none; background: transparent; transition: opacity 1s cubic-bezier(.4,0,.2,1); }
.intro-veil img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform 1s cubic-bezier(.4,0,.2,1); }
.intro-veil i { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.3) 35%, rgba(0,0,0,.5)); }
.intro-veil .veil-mark { position: fixed; left: 0; top: 0; z-index: 2; transform-origin: 0 0; }
.intro-veil.out { opacity: 0; }
.intro-veil.out img { transform: scale(1.04); }
html.arrive main, html.arrive .site-header { animation: none !important; }
/* Intro exit, middle ground: photo melts into a soft white haze, and the page comes through it */
.intro-veil { background: rgba(255,255,255,.9) !important; transition: opacity .6s cubic-bezier(.4,0,.2,1) .32s !important; }
.intro-veil img, .intro-veil i, .intro-veil .veil-mark { transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .9s cubic-bezier(.4,0,.2,1) !important; }
.intro-veil.out img, .intro-veil.out i, .intro-veil.out .veil-mark { opacity: 0 !important; }
/* ===== Intro exit, redesigned: the photo lifts away like a curtain and the projects are already there underneath ===== */
.intro-veil { background: #111 !important; opacity: 1 !important; overflow: hidden; transform: translateY(0); transition: transform 1.05s cubic-bezier(.76,0,.24,1) !important; will-change: transform; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.intro-veil img { opacity: .82 !important; transform: translateY(0) scale(1); transition: transform 1.05s cubic-bezier(.76,0,.24,1) !important; }
.intro-veil i, .intro-veil .veil-mark { opacity: 1 !important; transition: none !important; }
.intro-veil .veil-mark { position: absolute !important; }
.intro-veil.out { transform: translateY(-100%); opacity: 1 !important; }
.intro-veil.out img { transform: translateY(35%) scale(1.06); opacity: .82 !important; }
.intro-veil.out i, .intro-veil.out .veil-mark { opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) { .intro-veil { transition: opacity .3s !important; } .intro-veil.out { transform: none; opacity: 0 !important; } }
.intro-veil .veil-mark { visibility: visible !important; opacity: 1 !important; }
.intro-veil .veil-mark .wt { opacity: 1 !important; } .intro-veil .veil-mark .dk { opacity: 0 !important; }
.mark.riding { z-index: 80 !important; transition: transform 1.05s cubic-bezier(.76,0,.24,1) !important; visibility: visible !important; }
.mark.riding .wt { opacity: 1 !important; } .mark.riding .dk { opacity: 0 !important; }
/* ===== Intro exit, Apple style: the photo recedes like closing an app, the page settles into focus behind it ===== */
.intro-veil { transform: none; border-radius: 0; box-shadow: none !important; overflow: hidden;
  transition: transform .8s cubic-bezier(.32,.72,0,1), border-radius .8s cubic-bezier(.32,.72,0,1), opacity .5s cubic-bezier(.4,0,.2,1) .18s !important; }
.intro-veil img { transform: none !important; transition: none !important; }
.intro-veil.out { transform: scale(.9) !important; border-radius: 28px; opacity: 0 !important; }
.intro-veil.out img { transform: none !important; }
.mark.riding { transition: opacity .4s cubic-bezier(.4,0,.2,1) !important; }
@keyframes apple-settle { from { opacity: .35; transform: scale(1.035); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
html.apple-in main { animation: apple-settle .85s cubic-bezier(.32,.72,0,1) both !important; transform-origin: 50% 40%; }
html.apple-in .site-header { animation: apple-settle .85s cubic-bezier(.32,.72,0,1) .05s both !important; }
@media (prefers-reduced-motion: reduce) { html.apple-in main, html.apple-in .site-header { animation: none !important; } }
/* ===== Intro exit: fade to white, then the page fades in ===== */
.intro-veil { background: #fff !important; transform: none !important; border-radius: 0 !important; transition: opacity .45s cubic-bezier(.4,0,.2,1) .42s !important; }
.intro-veil img, .intro-veil i { transition: opacity .42s cubic-bezier(.4,0,.2,1) !important; transform: none !important; }
.intro-veil.out { transform: none !important; border-radius: 0 !important; opacity: 0 !important; }
.intro-veil.out img, .intro-veil.out i { opacity: 0 !important; }
.mark.riding { transition: opacity .35s cubic-bezier(.4,0,.2,1) !important; }
html.apple-in main, html.apple-in .site-header { animation: none !important; }
/* Smoother: soft warm haze instead of hard white, long overlapping fades */
.intro-veil { background: rgba(250,248,245,.88) !important; transition: opacity .9s cubic-bezier(.45,0,.25,1) .28s !important; }
.intro-veil img, .intro-veil i { transition: opacity .8s cubic-bezier(.45,0,.25,1) !important; }
.mark.riding { transition: opacity .6s cubic-bezier(.45,0,.25,1) !important; }
/* Copyright: not pinned. It sits at the very bottom of each page, on the Instagram line when you reach the end */
.igpin { width: 26px !important; margin-right: 0 !important; }
body .site-footer p { visibility: visible !important; position: static !important; }
body .site-footer::before { height: 0 !important; display: none !important; }
body .site-footer, body.home .site-footer { margin-top: 0 !important; pointer-events: auto; display: block !important; }
.site-header .nav, .site-header .menu-btn { transition: opacity .2s linear !important; }
/* Phones and tablets: nothing floats while scrolling. Instagram, the copyright and the back-to-top button
   appear only at the very end of the page, in the footer */
@media (max-width: 1100px) {
  .igpin { position: static !important; }
  body .site-footer, body.home .site-footer { position: relative !important; padding-top: calc(40px + 14px) !important; }
  .site-footer .totop { position: absolute !important; top: 0 !important; right: var(--edge) !important; left: auto !important; bottom: auto !important;
    opacity: 1 !important; pointer-events: auto !important; transform: none !important; }
}
@media (max-width: 1100px) {
  body .site-footer, body.home .site-footer { padding-top: calc(28px + 40px + 14px) !important; }
  .site-footer .totop { top: 28px !important; }
}
/* Phones and tablets: smaller copyright */
@media (max-width: 1100px) { body .site-footer p, .site-footer p { font-size: 11.5px !important; letter-spacing: .01em !important; color: #555 !important; } }
/* Phones and tablets: space between projects = side margin */
@media (max-width: 1100px) {
  .grid, body.home .grid { gap: var(--edge) !important; row-gap: var(--edge) !important; column-gap: var(--edge) !important; }
  .pimages { gap: var(--edge) !important; }
  .pnext, body .pnext { margin-top: var(--edge) !important; }
}
