@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..700,50,1&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --background: #fbf8ea;
  --foreground: #262112;
  --muted: #736c59;
  --panel: rgba(255, 253, 244, 0.78);
  --panel-strong: #fffdf4;
  --border: #e4dcc5;
  --border-strong: #d2c5a7;
  --lemon: #f2d92f;
  --lemon-deep: #c69b00;
  --leaf: #4d8b56;
  --ink: #262112;
  --secondary: #f1ead5;
  --shadow-soft: 0 24px 70px -34px rgba(50, 42, 20, 0.42);
  --shadow-deep: 0 34px 90px -42px rgba(38, 33, 18, 0.55);
  --header-height: 4rem;
  --shell: min(1440px, calc(100% - 2rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--foreground);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 253, 244, 0.7), rgba(251, 248, 234, 0.96)),
    radial-gradient(circle at 16% 0%, rgba(242, 217, 47, 0.32), transparent 28rem),
    var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(38, 33, 18, 0.055) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.48;
}

img,
iframe {
  display: block;
}

a {
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--lemon-deep);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 100;
  padding: 0.7rem 0.95rem;
  color: var(--panel-strong);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  border-bottom: 1px solid rgba(210, 197, 167, 0.6);
  background: rgba(251, 248, 234, 0.7);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .site-header__inner {
    padding: 0 2.5rem;
  }
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  transition: transform 260ms var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(3deg) scale(1.04);
}

.brand__name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 450;
  line-height: 1;
  white-space: nowrap;
}

.brand__name span {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-nav a {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--secondary);
}

.header-cta {
  min-height: 2.5rem;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  color: var(--panel-strong);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  background: var(--ink);
  transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: rgba(38, 33, 18, 0.92);
  box-shadow: var(--shadow-soft);
}

.header-cta__short {
  display: none;
}

.gallery-hero {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 4.6rem) 0 clamp(2.8rem, 5vw, 5rem);
}

.gallery-hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(1.4rem, 4vw, 2.8rem);
}

.eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 -0.45rem;
  color: var(--leaf);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  font-weight: 360;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 10ch;
  margin-bottom: 0;
  font-size: clamp(4.2rem, 12vw, 11rem);
  line-height: 0.83;
}

.lede {
  max-width: 34rem;
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.35rem);
}

.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(210, 197, 167, 0.88);
  border-radius: 1.6rem;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  animation: rise 700ms var(--ease) both;
  transition: transform 280ms var(--ease), border-color 280ms ease, box-shadow 280ms ease, background-color 280ms ease;
}

.project-card:nth-child(2) {
  animation-delay: 80ms;
}

.project-card:nth-child(3) {
  animation-delay: 160ms;
}

.project-card:nth-child(4) {
  animation-delay: 240ms;
}

.project-card:nth-child(5) {
  animation-delay: 320ms;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
}

.project-card--featured {
  border-color: rgba(198, 155, 0, 0.42);
}

.project-card__preview {
  position: relative;
  display: block;
  height: clamp(18rem, 34vw, 31rem);
  overflow: hidden;
  color: transparent;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(242, 217, 47, 0.26), rgba(77, 139, 86, 0.08)),
    #f4edd5;
}

.project-card__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-bottom: 1px solid rgba(210, 197, 167, 0.86);
  box-shadow: inset 0 -38px 72px -64px rgba(38, 33, 18, 0.72);
}

.project-card__preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 1500px;
  border: 0;
  overflow: hidden;
  pointer-events: none;
  transform: scale(0.46);
  transform-origin: top left;
}

.project-card__body {
  padding: clamp(1.1rem, 2.5vw, 1.55rem);
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1.45rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 0.98;
}

.project-card p {
  max-width: 36rem;
  margin-bottom: 1.35rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-card__actions a {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.95rem;
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.68);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.project-card__actions a:first-child {
  color: var(--panel-strong);
  border-color: var(--ink);
  background: var(--ink);
}

.project-card__actions a:hover,
.project-card__actions a:focus-visible {
  border-color: var(--border-strong);
  background: rgba(242, 217, 47, 0.36);
  transform: translateY(-1px);
}

.project-card__actions a:first-child:hover,
.project-card__actions a:first-child:focus-visible {
  color: var(--ink);
  border-color: var(--lemon);
  background: var(--lemon);
}

.site-footer {
  width: var(--shell);
  margin: 0 auto;
  padding: 1.5rem 0 2.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(210, 197, 167, 0.72);
}

.site-footer p {
  margin: 0;
}

.reveal {
  animation: rise 700ms var(--ease) both;
}

.gallery-hero__intro.reveal {
  animation-duration: 820ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card--featured {
    grid-column: span 2;
  }

  .project-card--featured .project-card__preview {
    height: clamp(24rem, 38vw, 36rem);
  }

  .project-card--featured .project-card__preview iframe {
    transform: scale(0.56);
  }
}

@media (min-width: 1180px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-card--featured {
    grid-column: span 2;
  }

  .project-card__preview iframe {
    transform: scale(0.36);
  }

  .project-card--featured .project-card__preview iframe {
    transform: scale(0.56);
  }
}

@media (min-width: 1460px) {
  .project-card__preview iframe {
    transform: scale(0.405);
  }

  .project-card--featured .project-card__preview iframe {
    transform: scale(0.66);
  }
}

@media (max-width: 759px) {
  :root {
    --shell: min(44rem, calc(100% - 1rem));
  }

  .site-header {
    height: auto;
    min-height: var(--header-height);
  }

  .site-header__inner {
    padding: 0.65rem 1rem;
  }

  .brand {
    overflow: hidden;
  }

  .brand__name {
    overflow: hidden;
    font-size: 1.08rem;
    text-overflow: ellipsis;
  }

  .site-nav {
    display: none;
  }

  .site-nav a {
    padding: 0 0.65rem;
    font-size: 0.82rem;
  }

  .header-cta {
    min-height: 2.35rem;
    padding: 0 0.85rem;
    font-size: 0.85rem;
  }

  .header-cta__full {
    display: none;
  }

  .header-cta__short {
    display: inline;
  }

  .gallery-hero {
    padding-top: 2rem;
  }

  .gallery-hero__intro {
    display: block;
    margin-bottom: 1.3rem;
  }

  .eyebrow {
    margin-bottom: 0.85rem;
  }

  h1 {
    margin-bottom: 1.05rem;
    font-size: clamp(3.55rem, 18vw, 5.1rem);
  }

  .project-card__preview {
    height: 18.5rem;
  }

  .project-card__preview iframe {
    transform: scale(0.34);
  }
}

@media (max-width: 430px) {
  .brand__mark {
    width: 2.2rem;
    height: 2.2rem;
  }

  .site-nav a {
    min-height: 2.2rem;
    padding: 0 0.5rem;
  }

  .header-cta {
    padding: 0 0.75rem;
  }

  .project-card {
    border-radius: 1.15rem;
  }

  .project-card__preview {
    height: 16rem;
  }

  .project-card__preview iframe {
    transform: scale(0.29);
  }
}

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