@font-face {
  font-family: "Mea Culpa";
  src: url("../assets/fonts/MeaCulpa-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/PlayfairDisplay-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/DMSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream: #f7e9c9;
  --brown: #7b250c;
  --brown-dark: #5f1a08;
  --green: #0d4d2c;
  --nav-hover: rgb(14, 16, 39);
  --white: #fffdf5;
  --serif: "Playfair Display", Georgia, serif;
  --script: "Mea Culpa", "Brush Script MT", cursive;
  --sans: "DM Sans", Arial, sans-serif;
  --header-height: 132px;
  --shadow: 0 16px 42px rgba(93, 31, 9, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.22), transparent 25rem),
    var(--cream);
  color: var(--brown);
  font-family: var(--sans);
  animation: page-enter 620ms ease-out both;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

img,
object {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--nav-hover);
  color: white;
  font-family: var(--sans);
  text-decoration: none;
  transition: transform 180ms ease;
}

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

.site-header {
  position: relative;
  z-index: 50;
  min-height: var(--header-height);
  border-bottom: 7px double rgba(255, 253, 245, 0.92);
  background: var(--brown);
  color: var(--white);
}

.header-inner {
  display: grid;
  width: min(100% - 3rem, 1220px);
  min-height: var(--header-height);
  margin: 0 auto;
  grid-template-columns: 310px 1fr;
  align-items: center;
  gap: 2rem;
}

.brand-link {
  position: relative;
  align-self: stretch;
  display: grid;
  min-height: 154px;
  place-items: center;
  overflow: hidden;
  border-radius: 0 0 46% 46%;
  background: var(--brown);
  outline-offset: 6px;
}

.brand-object {
  position: absolute;
  width: min(250px, 82%);
  height: 116px;
  pointer-events: none;
  transition: opacity 260ms ease, transform 360ms ease;
}

.brand-object object {
  width: 100%;
  height: 100%;
}

.brand-object--hover {
  opacity: 0;
}

.brand-link:hover .brand-object--default,
.brand-link:focus-visible .brand-object--default {
  opacity: 0;
  transform: scale(0.94);
}

.brand-link:hover .brand-object--hover,
.brand-link:focus-visible .brand-object--hover {
  opacity: 1;
  transform: scale(1.03);
}

.asset-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 90px;
  place-items: center;
  padding: 1rem;
  border: 1px dashed rgba(123, 37, 12, 0.36);
  border-radius: 18px;
  background: rgba(255, 253, 245, 0.52);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
}

.brand-object .asset-fallback {
  min-height: 100%;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: white;
  font-family: var(--script);
  font-size: 2.1rem;
}

.main-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.4rem, 2vw, 1.45rem);
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  padding: 0.55rem 1.15rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.nav-link::after {
  position: absolute;
  right: 1rem;
  bottom: 0.34rem;
  left: 1rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: currentColor;
  content: "";
  transition: transform 220ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  background: var(--white);
  color: var(--nav-hover);
  transform: translateY(-2px);
  outline: none;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.page-main {
  min-height: calc(100vh - var(--header-height) - 78px);
}

.page-shell {
  width: min(100% - 3rem, 1200px);
  margin: 0 auto;
}

.script-title {
  margin: 0;
  color: var(--brown);
  font-family: var(--script);
  font-size: clamp(5rem, 11vw, 9.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.8;
}

.drop-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(-52px) rotate(-1deg);
  animation: word-drop 760ms cubic-bezier(0.18, 0.85, 0.23, 1.08) forwards;
  animation-delay: calc(100ms + (var(--i, 0) * 125ms));
}

.page-kicker {
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.body-copy {
  color: var(--brown);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.75;
}

.site-footer {
  display: grid;
  min-height: 78px;
  place-items: center;
  padding: 1rem;
  background: var(--green);
  color: white;
  font-family: var(--sans);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.asset-box {
  width: 100%;
  height: 100%;
}

.asset-box object {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.load-reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: reveal-up 760ms cubic-bezier(0.2, 0.75, 0.28, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

.scroll-reveal {
  opacity: 1;
  transform: none;
}

@supports (animation-timeline: view()) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(52px);
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry var(--entry, 5%) cover var(--cover, 32%);
  }
}

/* HOME */
.home-hero {
  display: grid;
  min-height: 790px;
  padding: 4rem 0 3rem;
  grid-template-columns: 1.1fr 0.9fr 0.62fr;
  align-items: center;
  gap: 1.6rem;
}

.home-portrait {
  position: relative;
  align-self: stretch;
  min-height: 650px;
}

.home-person {
  position: absolute;
  width:100%;
  height:auto;
  z-index: 2;
  inset: 0 0 0 0;
}

.home-frame-l {
  position: absolute;
  z-index: 3;
  inset: -1rem -1rem auto -1.8rem;
  height: 100%;
  width:1000px;
  left: -100px;
  top:95px;
  pointer-events: none;
}

.home-copy {
  position: relative;
  z-index: 5;
  align-self: center;
  margin-left: -2.5rem;
}

.home-copy h1 {
  margin: 0;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6.8vw, 6.5rem);
  font-weight: 600;
  line-height: 0.86;
}

.home-copy .script-line {
  display: block;
  margin-left: 14%;
  color: var(--green);
  font-family: var(--script);
  font-size: 1.14em;
  font-weight: 400;
}

.home-copy .small-script {
  display: block;
  margin: 0 0 -0.3em 20%;
  color: var(--green);
  font-family: var(--script);
  font-size: 0.55em;
  font-weight: 400;
}

.home-copy p {
  max-width: 30rem;
  margin: 2rem 0 0 auto;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.home-memories {
  display: grid;
  align-self: stretch;
  padding: 1.5rem 0;
  align-content: center;
  gap: 1.6rem;
}

.memory-frame {
  min-height: 260px;
  top:-300px;
  left:-600px;
  height:500px;
  width:700px;
  filter: drop-shadow(0 13px 10px rgba(79, 20, 5, 0.12));
}

.home-legacy {
  display: grid;
  min-height: 660px;
  padding: 4.5rem 0 6rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.legacy-copy {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.25;
}

.legacy-copy p {
  margin: 0;
}

.legacy-copy .accent {
  color: var(--green);
  font-family: var(--script);
  font-size: 1.18em;
  font-weight: 400;
}

.legacy-bolen {
  min-height: 400px;
  transition: transform 420ms ease, filter 420ms ease;
}

.legacy-bolen:hover {
  transform: translateY(-10px) rotate(1deg) scale(1.035);
  filter: drop-shadow(0 18px 15px rgba(116, 53, 7, 0.18));
}

/* PROFILE */
.profile-layout {
  display: grid;
  min-height: calc(100vh - var(--header-height) - 78px);
  padding: 5rem 0 0;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: end;
  gap: 4rem;
}

.owner-figure {
  position: relative;
  min-height: 650px;
  margin: 0;
}

.owner-image {
  height: 650px;
}

.owner-caption {
  position: absolute;
  right: 2rem;
  bottom: 2.2rem;
  left: 0;
  padding: 1.1rem 2rem;
  border-radius: 22px 22px 22px 0;
  background: var(--brown);
  color: white;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.45;
  box-shadow: var(--shadow);
}

.profile-copy {
  align-self: center;
  padding-bottom: 6rem;
}

.profile-copy .script-title {
  margin-bottom: 3rem;
}

.profile-copy p {
  max-width: 44rem;
}

/* PRODUCT */
.product-page {
  padding: 4rem 0 7rem;
}

.product-heading {
  margin: 0 0 4rem;
  text-align: center;
}

.product-list {
  display: grid;
  gap: 6rem;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.product-card:nth-child(even) .product-art {
  order: 2;
}

.product-art {
  position: relative;
  min-height: 430px;
  isolation: isolate;
}

.product-image,
.product-frame,
.best-seller {
  position: absolute;
}

.product-image {
  z-index: 2;
  inset: 8% 7%;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 500ms ease;
}

.product-art:hover .product-image {
  transform: scale(1.09) rotate(-1.5deg);
  filter: drop-shadow(0 20px 15px rgba(81, 33, 6, 0.16));
}

.product-frame {
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.best-seller {
  z-index: 4;
  top: 1rem;
  right: 0;
  width: 34%;
  min-height: 110px;
  transform: rotate(5deg);
}

.product-copy {
  max-width: 31rem;
}

.product-copy h2 {
  margin: 0 0 1rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
  line-height: 1.25;
  text-transform: uppercase;
}

.product-copy p {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
}

.product-price {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem) !important;
}

/* LOCATION */
.location-layout {
  display: grid;
  min-height: calc(100vh - var(--header-height) - 78px);
  padding: 5rem 0;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.location-copy .script-title {
  margin-bottom: 2rem;
}

.address-block {
  margin-top: 1.7rem;
}

.address-block h2 {
  margin: 0 0 0.2rem;
  font-family: var(--sans);
  font-size: 1.1em;
  font-weight: 400;
}

.address-block p {
  margin: 0;
}

.map-link {
  position: relative;
  display: block;
  min-height: 600px;
  padding: 0.85rem;
  overflow: hidden;
  border: 10px solid var(--green);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow);
  outline-offset: 6px;
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.map-link:hover,
.map-link:focus-visible {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 26px 50px rgba(13, 77, 44, 0.22);
}

.map-link::after {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--green);
  color: white;
  content: "Buka Google Maps ↗";
  font-family: var(--sans);
  font-size: 0.85rem;
}

.map-asset {
  height: 100%;
  min-height: 555px;
}

/* CONTACT */
.contact-layout {
  display: grid;
  min-height: calc(100vh - var(--header-height) - 78px);
  padding: 4rem 0;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.contact-copy {
  padding-left: 4vw;
}

.contact-copy .script-title {
  margin-bottom: 2.2rem;
}

.contact-copy > p {
  margin: 1.5rem 0 0.75rem;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.contact-link {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 22px;
  outline-offset: 5px;
  transition: transform 280ms ease, background-color 280ms ease, box-shadow 280ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-7px) scale(1.06);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 100%;
  height: 100%;
}

.telephone-link {
  display: inline-flex;
  min-height: 62px;
  padding: 0.5rem 1rem 0.5rem 0;
  align-items: center;
  gap: 1rem;
  border-radius: 18px;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  text-decoration: none;
  transition: color 220ms ease, transform 220ms ease;
}

.telephone-link:hover,
.telephone-link:focus-visible {
  color: var(--green);
  transform: translateX(6px);
}

.telephone-link .contact-icon {
  width: 58px;
  height: 58px;
}

.contact-basket {
  min-height: 600px;
  transition: transform 420ms ease;
}

.contact-basket:hover {
  transform: translateY(-8px) rotate(1deg);
}

@keyframes page-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes page-leave {
  to {
    opacity: 0;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(52px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes word-drop {
  from {
    opacity: 0;
    transform: translateY(-52px) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes vt-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes vt-fade-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 260ms ease both vt-fade-out;
}

::view-transition-new(root) {
  animation: 520ms ease 80ms both vt-fade-in;
}

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

  .scroll-reveal,
  .load-reveal,
  .drop-word {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 174px;
  }

  .header-inner {
    width: min(100% - 2rem, 900px);
    grid-template-columns: 190px 1fr;
    gap: 0.8rem;
  }

  .brand-link {
    min-height: 168px;
  }

  .main-nav ul {
    justify-content: flex-start;
    gap: 0.2rem;
  }

  .nav-link {
    padding-inline: 0.68rem;
    font-size: 0.95rem;
  }

  .home-hero {
    min-height: auto;
    padding-top: 3rem;
    grid-template-columns: 1fr 1fr;
  }

  .home-portrait {
    min-height: 560px;
  }

  .home-copy {
    margin-left: -4rem;
  }

  .home-memories {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
  }

  .owner-figure,
  .owner-image {
    min-height: 560px;
    height: 560px;
  }

  .product-art {
    min-height: 360px;
  }

  .location-layout {
    grid-template-columns: 1fr 0.9fr;
    gap: 2.5rem;
  }

  .map-link {
    min-height: 520px;
  }

  .map-asset {
    min-height: 475px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 220px;
  }

  .header-inner {
    display: flex;
    width: 100%;
    min-height: var(--header-height);
    flex-direction: column;
    gap: 0;
  }

  .brand-link {
    width: 210px;
    min-height: 126px;
    flex: 0 0 126px;
  }

  .brand-object {
    width: 160px;
    height: 100px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .main-nav ul {
    width: max-content;
    min-width: 100%;
    padding: 0.7rem;
    justify-content: center;
  }

  .nav-link {
    min-height: 42px;
    font-size: 0.82rem;
  }

  .page-shell {
    width: min(100% - 2rem, 680px);
  }

  .home-hero,
  .profile-layout,
  .product-card,
  .location-layout,
  .contact-layout,
  .home-legacy {
    grid-template-columns: 1fr;
  }

  .home-hero {
    gap: 2.5rem;
  }

  .home-portrait {
    min-height: 520px;
  }

  .home-copy {
    margin: -1rem 0 0;
    text-align: center;
  }

  .home-copy p {
    margin-right: auto;
  }

  .home-memories {
    grid-template-columns: 1fr;
  }

  .memory-frame {
    min-height: 230px;
  }

  .home-legacy {
    min-height: auto;
    padding: 4rem 0;
    gap: 2rem;
  }

  .legacy-copy {
    text-align: center;
  }

  .legacy-bolen {
    min-height: 300px;
  }

  .profile-layout {
    padding-top: 3.5rem;
  }

  .profile-copy {
    order: -1;
    padding-bottom: 0;
  }

  .profile-copy .script-title {
    text-align: center;
  }

  .owner-figure,
  .owner-image {
    min-height: 560px;
    height: 560px;
  }

  .product-list {
    gap: 7rem;
  }

  .product-card:nth-child(even) .product-art {
    order: 0;
  }

  .product-art {
    min-height: 380px;
  }

  .product-copy {
    max-width: none;
    text-align: center;
  }

  .location-layout {
    padding: 4rem 0;
  }

  .map-link {
    min-height: 470px;
  }

  .map-asset {
    min-height: 425px;
  }

  .contact-layout {
    padding: 3.5rem 0;
  }

  .contact-copy {
    padding-left: 0;
    text-align: center;
  }

  .contact-actions,
  .telephone-link {
    justify-content: center;
  }

  .contact-basket {
    min-height: 420px;
  }
}

@media (max-width: 480px) {
  .main-nav ul {
    justify-content: flex-start;
  }

  .script-title {
    font-size: clamp(4.8rem, 27vw, 7rem);
  }

  .home-portrait {
    min-height: 440px;
  }

  .home-copy h1 {
    font-size: 3.2rem;
  }

  .owner-figure,
  .owner-image {
    min-height: 480px;
    height: 480px;
  }

  .owner-caption {
    right: 0.75rem;
    padding: 0.9rem 1.2rem;
  }

  .product-art {
    min-height: 310px;
  }

  .map-link {
    min-height: 400px;
    border-width: 7px;
  }

  .map-asset {
    min-height: 360px;
  }
}
