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

:root {
  color-scheme: light;
  --paper: #f4f0e9;
  --paper-deep: #e8e0d6;
  --ink: #2f2922;
  --muted: #7d746b;
  --white: #fbfaf7;
  --line: rgba(47, 41, 34, 0.32);
  --soft-line: rgba(47, 41, 34, 0.13);
  --shadow: 0 18px 38px rgba(47, 41, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(47, 41, 34, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 41, 34, 0.035) 1px, transparent 1px);
  background-size: 6px 6px;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 32px 42px 24px;
  background: rgba(251, 250, 247, 0.86);
  box-shadow: none;
}

.site-header.over-hero {
  position: absolute;
  top: 0;
  left: 50%;
  color: var(--white);
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 152px;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1;
  text-transform: uppercase;
}

.brand span {
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.brand small {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.35rem);
  padding-top: 4px;
}

.site-nav a {
  position: relative;
  padding-bottom: 7px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  transition: opacity 180ms ease, color 180ms ease;
}

.site-nav a::after,
.portfolio-tabs a::after {
  position: absolute;
  right: 0.38em;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active,
.portfolio-tabs a:hover,
.portfolio-tabs a.active {
  opacity: 1;
}

.site-nav a:hover::after,
.site-nav a.active::after,
.portfolio-tabs a:hover::after,
.portfolio-tabs a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.home-page {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: rgba(251, 250, 247, 0.78);
  box-shadow: none;
}

.hero {
  position: relative;
  display: grid;
  width: 100vw;
  min-height: 70dvh;
  margin-left: calc(50% - 50vw);
  place-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100%;
}

.hero-image {
  z-index: -3;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(0.78) contrast(0.94) brightness(0.82);
  transform: scale(1.12);
  transform-origin: center;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18, 16, 13, 0.42), rgba(18, 16, 13, 0.08) 42%, rgba(18, 16, 13, 0.46)),
    linear-gradient(180deg, rgba(18, 16, 13, 0.12), rgba(18, 16, 13, 0.42));
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 56px;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.7rem, 7.1vw, 7rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-copy p {
  margin: 22px 0 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(0.72rem, 1vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.75;
  text-transform: uppercase;
}

.hero-rule,
.section-rule {
  display: block;
  width: 1px;
  height: 34px;
  margin: 24px 0 18px;
  background: currentColor;
  opacity: 0.64;
}

.section-rule {
  width: 46px;
  height: 1px;
  margin: 22px auto 0;
  background: var(--line);
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  min-height: 46px;
  border: 1px solid rgba(251, 250, 247, 0.7);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.outline-button:hover {
  color: var(--ink);
  background: var(--white);
  transform: translateY(-1px);
}

.home-intro {
  padding: 34px 24px 14px;
  text-align: center;
}

.home-intro h2,
.portfolio-heading h1,
.simple-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.1vw, 3.15rem);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 22px 58px 28px;
}

.category-card {
  position: relative;
  display: block;
  min-height: 272px;
  overflow: hidden;
  color: var(--white);
  background: #d8cec2;
}

.category-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 38%, rgba(20, 17, 14, 0.58));
}

.category-card img {
  height: 100%;
  min-height: 272px;
  object-fit: cover;
  filter: saturate(0.84) contrast(0.94);
  transition: transform 700ms ease;
}

.category-card:hover img {
  transform: scale(1.045);
}

.category-card span {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 2;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.page-footer,
.portfolio-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 18px 40px 24px;
  text-align: center;
}

.page-footer {
  flex-direction: column;
}

.page-footer p {
  margin: 0;
  font-size: 1.18rem;
}

.page-footer div,
.portfolio-footer div {
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.contact-email {
  letter-spacing: 0.08em;
  text-transform: none;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  letter-spacing: 0;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--white);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon circle {
  fill: none;
}

.social-icon circle:last-child {
  fill: var(--white);
  stroke: none;
}

.portfolio-page,
.simple-page {
  width: 100%;
  margin: 0;
  padding: 42px 44px 30px;
  background: rgba(251, 250, 247, 0.86);
  box-shadow: none;
}

.portfolio-heading {
  text-align: center;
}

.portfolio-heading h1 {
  font-size: clamp(2.9rem, 4.9vw, 4.9rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin: 26px 0 28px;
}

.portfolio-tabs a {
  position: relative;
  padding-bottom: 8px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.work-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto 32px;
  padding: 0 8px;
}

.work-notes[hidden] {
  display: none;
}

.work-notes article {
  grid-column: 1 / -1;
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--soft-line);
  padding-top: 18px;
  text-align: center;
}

.work-notes h2 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
  font-weight: 500;
  line-height: 1.05;
}

.work-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.46;
}

.work-notes p + p {
  margin-top: 8px;
}

.work-notes ul {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-notes li {
  border-top: 1px solid var(--soft-line);
  padding-top: 14px;
}

.work-notes button {
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color 180ms ease;
}

.work-notes button:hover,
.work-notes button.active {
  color: var(--ink);
}

.work-notes button.active {
  text-decoration: underline;
  text-underline-offset: 8px;
}

.work-notes li,
.work-notes button {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-carousel {
  position: relative;
  display: grid;
  max-width: min(100%, 1120px);
  margin: 0 auto;
  place-items: center;
}

.carousel-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.carousel-frame img {
  width: auto;
  max-width: 100%;
  max-height: min(66dvh, 720px);
  object-fit: contain;
  filter: saturate(0.92) contrast(0.98);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(47, 41, 34, 0.48);
  box-shadow: 0 8px 20px rgba(18, 16, 13, 0.16);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  padding: 0 0 3px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.carousel-arrow-prev {
  left: 18px;
}

.carousel-arrow-next {
  right: 18px;
}

.carousel-arrow:hover:not(:disabled) {
  background: rgba(47, 41, 34, 0.66);
  transform: translateY(-50%) scale(1.04);
}

.carousel-arrow:disabled {
  cursor: default;
  opacity: 0.28;
}

.portfolio-footer {
  justify-content: center;
  padding: 34px 4px 0;
}

.portfolio-footer p {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.simple-page {
  min-height: calc(100dvh - 126px);
}

.about-page {
  padding-bottom: 46px;
}

.simple-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: 30px 18px 18px;
}

.simple-hero p {
  max-width: 54ch;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 1.26rem;
  line-height: 1.65;
}

.simple-hero img {
  height: min(620px, 66dvh);
  object-fit: cover;
  box-shadow: 0 16px 30px rgba(47, 41, 34, 0.13);
}

.about-intro {
  text-align: center;
}

.about-intro p + p {
  margin-top: 16px;
}

.cv-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 1120px;
  margin: 56px auto 0;
  padding: 38px 18px 0;
  border-top: 1px solid var(--soft-line);
}

.cv-heading {
  position: sticky;
  top: 24px;
  align-self: start;
}

.cv-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.4vw, 2.45rem);
  font-weight: 400;
  line-height: 1.08;
}

.cv-heading p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.cv-list {
  display: grid;
  gap: 0;
}

.cv-list article {
  display: grid;
  grid-template-columns: minmax(132px, 0.3fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.4rem);
  padding: 20px 0;
  border-top: 1px solid var(--soft-line);
}

.cv-list article:first-child {
  padding-top: 0;
  border-top: 0;
}

.cv-list time {
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.cv-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.56;
}

.cv-list cite {
  color: var(--ink);
  font-style: italic;
}

.kicker {
  margin: 0 0 20px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.46em;
  text-transform: uppercase;
}

@media (max-width: 940px) {
  .site-header,
  .site-header.over-hero {
    position: relative;
    left: auto;
    width: 100%;
    padding: 22px 20px;
    color: var(--ink);
    background: rgba(251, 250, 247, 0.9);
    transform: none;
  }

  .site-header {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 14px;
  }

  .home-page,
  .portfolio-page,
  .simple-page {
    width: 100%;
    margin-top: 0;
  }

  .hero-copy {
    margin-top: 0;
    padding: 54px 18px;
  }

  .hero {
    min-height: 66dvh;
  }

  .category-grid,
  .simple-hero {
    grid-template-columns: 1fr;
  }

  .cv-section {
    grid-template-columns: 1fr;
  }

  .cv-heading {
    position: static;
    text-align: center;
  }

  .category-grid {
    padding: 18px 22px 24px;
  }

  .simple-hero img {
    height: auto;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .home-page,
  .portfolio-page,
  .simple-page {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }

  .site-header,
  .site-header.over-hero {
    width: 100%;
    margin: 0;
  }

  .site-nav a {
    font-size: 0.52rem;
    letter-spacing: 0.28em;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 9vw, 2.25rem);
    letter-spacing: 0.015em;
  }

  .hero-copy p {
    max-width: 20rem;
    font-size: 0.64rem;
    letter-spacing: 0.22em;
  }

  .outline-button {
    min-width: 162px;
    padding: 0 18px;
    font-size: 0.58rem;
    letter-spacing: 0.24em;
  }

  .home-intro {
    padding-top: 28px;
  }

  .category-grid,
  .portfolio-page,
  .simple-page {
    padding-right: 16px;
    padding-left: 16px;
  }

  .about-page {
    padding-bottom: 34px;
  }

  .cv-section {
    margin-top: 38px;
    padding-top: 30px;
  }

  .cv-list article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  .portfolio-tabs {
    gap: 20px;
  }

  .portfolio-tabs a {
    font-size: 0.56rem;
    letter-spacing: 0.28em;
  }

  .work-notes {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 26px;
    padding: 0;
  }

  .work-notes ul {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }

  .carousel-frame img {
    max-height: min(62dvh, 520px);
  }

  .carousel-arrow {
    width: 32px;
    height: 32px;
    font-size: 1.32rem;
    padding-bottom: 3px;
  }

  .carousel-arrow-prev {
    left: 12px;
  }

  .carousel-arrow-next {
    right: 12px;
  }

  .portfolio-footer {
    flex-direction: column;
    gap: 18px;
  }
}
