@font-face {
  font-family: 'Sligoil';
  src: url('polices/Sligoil-Micro.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --text-main: #000000;
  --font-primary: 'Sligoil', sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  color: var(--text-main);
  background: #fff;
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 40px;
}

h3 {
  font-size: 20px;
  font-weight: bold;
}

h4 {
  font-size: 10px;
  font-weight: bold;
}

h5 {
  font-size: 15px;
  color:#777;
}

p {
  font-size: 15px;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-bottom: 1px solid #111;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}


.school-link {
  text-align: center;
}

.about-link {
  text-align: right;
}

.hero {
  position: relative;
  height: clamp(265px, 48vw, 620px);
  overflow: hidden;
  background: #d5d5d5;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  z-index: 2;
  display: block;
  cursor: grab;
  line-height: 0;
  touch-action: none;
  user-select: none;
  transition: transform 220ms ease;
}

.hero-image img {
  -webkit-user-drag: none;
}

.hero-image.is-dragging {
  z-index: 4;
  cursor: grabbing;
}

.hero-image:hover {
  transform: scale(1.04);
}

.hero.physics-ready .hero-image {
  transition: none;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-bag {
  top: 3%;
  left: -1%;
  width: 31%;
}

.hero-garden {
  top: 7%;
  right: -1%;
  width: 32%;
}

.hero-house {
  bottom: -3%;
  left: 3%;
  width: 35%;
}

.hero-frames {
  z-index: 3;
  bottom: 0;
  left: 43%;
  width: 18%;
}

.hero-flag {
  right: -1%;
  bottom: -4%;
  width: 13%;
}

.category-filter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 5px 8px;
  border: 0;
  border-top: 1px solid #777;
  border-bottom: 1px solid #777;
  background: #d5d5d5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.category-filter label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.category-filter input {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin: 0;
  appearance: none;
  border: 1px solid #111;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.category-filter input:checked {
  background: #111;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.category-filter input:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.projects {
  display: grid;
  gap: 8px;
  padding: 0 8px 72px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr);
  gap: 12px;
  align-items: start;
}

.project-row[hidden] {
  display: none;
}

.project-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.8;
  border-radius: 4px;
  background: #080808;
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.project-image:hover img {
  transform: scale(1.025);
}

.project-image-light {
  background: #f1f3fa;
}

.project-image-light img {
  object-fit: contain;
}

.project-image-cover img {
  object-fit: cover;
}

.project-image-paper {
  background: #ddd;
}

.hero-image .hover-preview,
.project-image .hover-preview {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050505;
  pointer-events: none;
}

.project-copy {
  padding: 1px 2px 0 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
}

.project-copy h2 {
  margin: 0 0 5px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  font-style : bold;
}

.project-copy h2 a {
  text-decoration: none;
}

.project-copy h2 a:hover,
.site-header a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-meta {
  margin-top: 7px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px 16px;
  border-top: 1px solid #111;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 1000px)  {
  .site-header {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 11px;
  }

  .projects {
    gap: 12px;
    padding: 0 16px 96px;
  }

  .project-row {
    gap: 18px;
  }

  .project-copy {
    font-size: 11px;
  }

  .project-copy h2 {
    margin-bottom: 8px;
    font-size: 13px;
  }
}

@media (max-width: 700px) {
  .category-filter {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 6px 8px;
    scrollbar-width: thin;
  }

  .category-filter label {
    flex: 0 0 auto;
  }

  .project-row {
    grid-template-columns: minmax(0, 2fr) minmax(112px, 1fr);
    gap: 8px;
  }

  .project-copy {
    font-size: 7px;
  }

  .project-copy h2 {
    font-size: 9px;
  }
}

@media (max-width: 420px) {
  .hero {
    height: 265px;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .project-copy {
    padding: 0 2px 12px;
    font-size: 9px;
  }

  .project-copy h2 {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.about-page .resume-section {
	padding-bottom: 74px;
}

.about-page .section-heading {
	margin: 34px 0 0;
	padding: 3px 8px 5px;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
	background: #fff;
	font-size: clamp(25px, 4vw, 38px);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.about-page .resume-list {
	display: grid;
	gap: 13px;
	margin: 0;
	padding: 20px 12px 0;
	list-style: none;
}

.about-page .resume-entry {
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
}

.about-page .resume-entry time {
	display: block;
	margin-bottom: 2px;
	font-weight: 700;
}

.about-page .resume-entry p {
	margin: 0;
}

.about-page .studies-section .section-heading {
	margin-top: 0;
}

@media (min-width: 700px) {
	.about-page .site-header {
		min-height: 36px;
		padding: 7px 14px;
		font-size: 11px;
	}

	.about-page .section-heading {
		margin-top: 36px;
		padding: 5px 12px 7px;
		font-size: clamp(30px, 4vw, 42px);
	}

	.about-page .resume-list {
		gap: 17px;
		padding: 24px 20px 0;
	}

	.about-page .resume-entry {
		font-size: 14px;
	}

	.about-page .resume-section {
		padding-bottom: 110px;
	}
}

@media (max-width: 480px) {

	.about-page .resume-list {
		gap: 18px;
		padding: 20px 10px 0;
	}

	.about-page .resume-entry {
		font-size: 11px;
	}

	.about-page .resume-section {
		padding-bottom: 76px;
	}
}


.project-view {
	position: relative;
}

.project-details {
	position: sticky;
	top: 0;
	z-index: 5;
	background: #fff;
}

.project-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 5px 6px;
	border-top: 1px solid #888;
	border-bottom: 1px solid #888;
	background: #f4f4f4;
}

.project-heading h1 {
	margin: 0;
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.info-toggle {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.info-toggle:hover .toggle-label,
.info-toggle:focus-visible .toggle-label {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.info-toggle:focus-visible {
	outline: 2px solid #111;
	outline-offset: 4px;
}

.project-info {
	padding: 10px 6px 14px;
	border-bottom: 1px solid #888;
}

.project-info[hidden] {
	display: none;
}

.project-info p,
.project-info h4 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.02;
	text-transform: uppercase;
}

.project-info h4 {
	margin-top: 8px;
	font-size: 9px;
}

.project-page .project-gallery {
	display: grid;
	gap: 5px;
	padding: 0 6px 6px;
}


.edition-covers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	justify-items: center;
	gap: clamp(20px, 8vw, 120px);
	min-height: min(78svh, 900px);
	padding: 32px clamp(20px, 8vw, 140px);
	overflow: hidden;
}

.edition-covers3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	justify-items: center;
	gap: clamp(20px, 8vw, 120px);
	min-height: min(78svh, 900px);
	padding: 32px clamp(20px, 8vw, 140px);
	overflow: hidden;
}

.edition-cover {
	width: min(100%, 700px);
	margin: 0;
	animation: edition-float 6s ease-in-out infinite;
	will-change: transform;
}

.edition-cover--delayed {
	animation-delay: -3s;
}

.edition-cover img {
	display: block;
	width: 100%;
	height: 100%;
}

@keyframes edition-float {
	0%, 100% {
		transform: translate3d(0, 0, 0) rotate(-1deg);
	}

	50% {
		transform: translate3d(0, -14px, 0) rotate(1deg);
	}
}

.project-page .gallery-frame {
	margin: 0;
	overflow: hidden;
	border-radius: 4px;
	background: #050505;
}

.project-page .gallery-frame img {
	display: block;
	width: 100%;
	height: auto;
}

.project-page .gallery-frame video {
	display: block;
	width: 100%;
	height: auto;
}

.project-page .video-background {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.project-page .video-background video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 700px) { 

	.project-heading {
		padding: 6px 14px;
	}

	.project-heading h1 {
		font-size: 48px;
	}

	.info-toggle {
		font-size: 38px;
	}

	.project-info {
		padding: 12px 14px 18px;
	}

	.project-info p {
		font-size: 20px;
	}

	.project-page .project-gallery {
		gap: 8px;
		padding: 0 14px 14px;
	}
}

@media (max-width: 480px) {

	.edition-covers {
		gap: 12px;
		min-height: 60svh;
		padding: 24px 12px;
	}

	.project-heading {
		align-items: flex-start;
		gap: 8px;
		padding: 7px 6px;
	}

	.project-heading h1 {
		font-size: 23px;
	}

	.info-toggle {
		gap: 4px;
		font-size: 18px;
	}
}

/* Reusable horizontal image carousel */
.carousel {
	display: flex;
	gap: clamp(12px, 3vw, 32px);
	padding: 18px 6px 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-snap-stop: always;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	overscroll-behavior-x: contain;
	touch-action: pan-x;
}

.carousel:focus-visible {
	outline: 2px solid #111;
	outline-offset: -2px;
}

.carousel__slide {
	flex: 0 0 min(82vw, 720px);
	margin: 0;
	scroll-snap-align: center;
}

.carousel__slide img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 70svh;
	object-fit: contain;
}

@media (max-width: 700px) {
	.carousel__slide:first-child {
		flex-basis: min(45vw, 360px);
	}
}

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

	.edition-cover {
		animation: none;
	}
}
