:root {
  --bg: #e8e0d4;
  --bg-deep: #d9cfc0;
  --surface: #f4efe6;
  --surface-2: #ebe3d6;
  --ink: #2a2622;
  --muted: #6a6157;
  --line: rgba(42, 38, 34, 0.12);
  --accent: #6f7d68;
  --accent-deep: #55614f;
  --warm: #a68a6a;
  --shadow: 0 18px 40px rgba(42, 38, 34, 0.08);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-offset: 5.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 252, 245, 0.7), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(166, 138, 106, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #efe8dc 45%, var(--bg-deep) 100%);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(244, 239, 230, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 239, 230, 0.9);
}

.site-header__inner {
  width: min(100% - 2.4rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  min-width: 0;
}

.logo__mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(42, 38, 34, 0.06);
}

.logo__text {
  line-height: 1;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--ink);
  border-radius: 2px;
}

.nav {
  display: flex;
  gap: 1.45rem;
}

.nav a {
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: auto;
  padding: clamp(8rem, 14vh, 9.5rem) 0 clamp(3.25rem, 7vh, 4.5rem);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    url("../img/hero-bg.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(232, 224, 212, 0.25) 0%, rgba(232, 224, 212, 0.55) 45%, rgba(232, 224, 212, 0.92) 100%),
    linear-gradient(90deg, rgba(42, 38, 34, 0.18), transparent 55%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.4rem, var(--max));
  margin: 0 auto;
}

.hero__content {
  max-width: none;
  width: 100%;
  animation: riseIn 1s ease both;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.2;
  max-width: none;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: none;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--ink);
  color: #f7f2ea;
}

.btn--primary:hover {
  background: #151311;
}

.btn--ghost {
  border: 1px solid rgba(42, 38, 34, 0.28);
  background: rgba(244, 239, 230, 0.55);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.section {
  width: min(100% - 2.4rem, var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 5.5rem) 0;
}

.section[id],
#top {
  scroll-margin-top: var(--header-offset);
}

.section.projects {
  padding-top: clamp(1.75rem, 4vh, 2.75rem);
}

.section.landings {
  padding-top: clamp(0.75rem, 2vh, 1.25rem);
}

.section__text a {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(85, 97, 79, 0.35);
}

.section__text a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.section__intro {
  max-width: none;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 500;
}

.section h2,
.about__panel h2,
.contact__card h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: none;
}

.section__text,
.about__panel p,
.contact__card p,
.tile__body p {
  color: var(--muted);
}

.section__text {
  margin: 0;
  max-width: none;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(42, 38, 34, 0.12);
}

.tile__media,
.tile__media--static {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}

.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.tile:hover .tile__media img {
  transform: scale(1.04);
}

.tile__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;
}

.tile__copy {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tile__tag {
  margin: 0;
  min-height: 1.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.tile__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.1;
}

.tile__copy > p:not(.tile__tag) {
  margin: 0;
  font-size: 0.98rem;
}

.tile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-top: auto;
  padding-top: 1.1rem;
  min-height: 1.75rem;
  align-items: flex-end;
}

.tile__link {
  width: fit-content;
  color: var(--accent-deep);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(85, 97, 79, 0.35);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tile__link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.tile__link--secondary {
  color: var(--muted);
  border-bottom-color: rgba(106, 97, 87, 0.35);
}

.about {
  padding-top: 1rem;
}

.about__panel,
.contact__card {
  background: rgba(244, 239, 230, 0.78);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
}

.about__panel p + p {
  margin-top: 0.9rem;
}

.contact {
  padding-top: 0.5rem;
  padding-bottom: clamp(4rem, 9vh, 6rem);
}

.contact__mail {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(85, 97, 79, 0.35);
}

.contact__mail:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.site-footer {
  width: min(100% - 2.4rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer span {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.site-footer__copy {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (max-width: 860px) {
  .tiles {
    grid-template-columns: 1fr;
  }

  .hero__brand {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }
}

@media (max-width: 640px) {
  .logo {
    font-size: 1.45rem;
    gap: 0.55rem;
  }

  .logo__mark {
    width: 2.15rem;
    height: 2.15rem;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.65rem 0 0.85rem;
    background: rgba(244, 239, 230, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(42, 38, 34, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    font-size: 1rem;
    padding: 0.7rem 0.15rem;
    border-top: 1px solid var(--line);
  }

  .hero {
    padding-top: 7.25rem;
    padding-bottom: 2.75rem;
  }

  .hero__actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media,
  .reveal,
  .tile,
  .tile__media img,
  .hero__content {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
