/* =====================================================================
   Kreem Aly — monochrome site system
   Black, white and grays only. Shared by index, pricing and privacy.
   Motion uses transform / opacity / clip-path only (no loops, no blur)
   so it stays smooth on phones.
   ===================================================================== */

:root {
  --paper: #e2e2e2;
  --paper-2: #d7d7d7;
  --paper-3: #ececec;
  --white: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #161616;
  --ink-3: #222222;
  --gray: #6e6e6e;
  --gray-2: #9a9a9a;
  --line: rgba(0, 0, 0, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 64px;
  --gutter: clamp(16px, 4vw, 48px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.icon { width: 16px; height: 16px; flex: none; }

/* ---------------------------------------------------------------------
   Type
   --------------------------------------------------------------------- */

.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}

.h-display {
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.sec-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  display: grid;
  justify-items: center;
  gap: 14px;
}

.sec-head p {
  color: var(--gray);
  max-width: 560px;
  font-size: 15px;
}

.dark { background: var(--ink); color: var(--white); }
.dark .kicker,
.dark .sec-head p { color: var(--gray-2); }

/* ---------------------------------------------------------------------
   Buttons — small sharp rectangles; fill wipes up and inverts on hover
   --------------------------------------------------------------------- */

.btn {
  --bg: var(--ink);
  --fg: var(--white);
  --hover-bg: var(--white);
  --hover-fg: var(--ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid var(--bg);
  border-radius: 2px;
  background: var(--bg);
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.45s var(--ease-io), border-color 0.45s var(--ease-io);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hover-bg);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease-io);
}

.btn .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.45s var(--ease-io);
}

@media (hover: hover) {
  .btn:hover { color: var(--hover-fg); border-color: var(--hover-fg); }
  .btn:hover::before { transform: scaleY(1); }
  .btn:hover .icon { transform: translate(2px, -2px); }
  .btn:hover .icon.down { transform: translateY(2px); }
}

.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.btn-white { --bg: var(--white); --fg: var(--ink); --hover-bg: var(--ink); --hover-fg: var(--white); }
.btn-ghost { --bg: transparent; --fg: var(--ink); --hover-bg: var(--ink); --hover-fg: var(--white); border-color: var(--ink); }
.dark .btn-ghost,
.btn-ghost-light { --bg: transparent; --fg: var(--white); --hover-bg: var(--white); --hover-fg: var(--ink); border-color: rgba(255, 255, 255, 0.5); }
.dark .btn:not(.btn-white):not(.btn-ghost) { --bg: var(--white); --fg: var(--ink); --hover-bg: var(--paper-2); --hover-fg: var(--ink); }

.btn-sm { height: 34px; padding: 0 14px; font-size: 11px; }
.btn-block { width: 100%; }

/* Text link with an underline that draws in on hover */
.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease-io);
}

@media (hover: hover) { .link-line:hover::after { transform: scaleX(1); } }

/* ---------------------------------------------------------------------
   Header + menu
   --------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--gutter);
  color: var(--ink);
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.45s var(--ease-io);
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: var(--paper);
  border-bottom-color: var(--line);
}

.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { transform: none; background: var(--paper); border-bottom-color: var(--line); }

.menu-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding-right: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-lines {
  position: relative;
  width: 20px;
  height: 12px;
}

.menu-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease-io), top 0.45s var(--ease-io);
}

.menu-lines span:nth-child(1) { top: 2px; }
.menu-lines span:nth-child(2) { top: 9px; }
.menu-open .menu-lines span:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
.menu-open .menu-lines span:nth-child(2) { top: 5.5px; transform: rotate(-45deg); }

/* Both words share one grid cell so the label is as wide as the longer one */
.menu-label { display: inline-grid; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.menu-label span { grid-area: 1 / 1; transition: transform 0.45s var(--ease-io); }
.menu-label span + span { transform: translateY(100%); }
.menu-open .menu-label span:first-child { transform: translateY(-100%); }
.menu-open .menu-label span + span { transform: none; }

.brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding-left: 0.32em;
  white-space: nowrap;
}

.header-cta { justify-self: end; display: flex; align-items: center; gap: 10px; }

.menu-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  z-index: 99;
  width: min(380px, 100%);
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px var(--gutter) 32px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.55s var(--ease-io), visibility 0s linear 0.55s;
}

.menu-open .menu-panel {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.55s var(--ease-io), visibility 0s;
}

.menu-scrim {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 98;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.menu-open .menu-scrim { opacity: 1; visibility: visible; transition: opacity 0.45s ease, visibility 0s; }

.menu-links { list-style: none; display: grid; }

.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease), padding-left 0.35s var(--ease);
}

.menu-links a small {
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.1em;
  min-width: 18px;
}

.menu-links a.is-current { color: var(--gray); }

@media (hover: hover) { .menu-links a:hover { padding-left: 8px; } }

.menu-open .menu-links a { opacity: 1; transform: none; }
.menu-open .menu-links li:nth-child(1) a { transition-delay: 0.12s, 0s, 0s; }
.menu-open .menu-links li:nth-child(2) a { transition-delay: 0.16s, 0s, 0s; }
.menu-open .menu-links li:nth-child(3) a { transition-delay: 0.2s, 0s, 0s; }
.menu-open .menu-links li:nth-child(4) a { transition-delay: 0.24s, 0s, 0s; }
.menu-open .menu-links li:nth-child(5) a { transition-delay: 0.28s, 0s, 0s; }
.menu-open .menu-links li:nth-child(6) a { transition-delay: 0.32s, 0s, 0s; }
.menu-open .menu-links li:nth-child(7) a { transition-delay: 0.36s, 0s, 0s; }
.menu-open .menu-links li:nth-child(8) a { transition-delay: 0.4s, 0s, 0s; }

.menu-foot {
  margin-top: 26px;
  display: grid;
  gap: 18px;
  opacity: 0;
  transition: opacity 0.4s ease 0s;
}

.menu-open .menu-foot { opacity: 1; transition-delay: 0.42s; }

.socials { display: flex; flex-wrap: wrap; gap: 8px; }

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.socials a .icon { width: 16px; height: 16px; }

@media (hover: hover) {
  .socials a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
  .dark .socials a:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
}

.dark .socials a { border-color: var(--line-dark); }

body.menu-open { overflow: hidden; }

@media (max-width: 700px) {
  :root { --header-h: 58px; }
  .menu-btn .menu-label { display: none; }
  .brand { font-size: 12px; letter-spacing: 0.26em; }
  .header-cta .btn { height: 34px; padding: 0 12px; font-size: 10px; }
  .menu-panel { width: 100%; border-right: 0; }
  .menu-links a { font-size: 17px; padding: 14px 0; }
}

/* ---------------------------------------------------------------------
   Scroll reveals
   --------------------------------------------------------------------- */

[data-r] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

[data-r].in { opacity: 1; transform: none; }

/* Images unveil from the bottom edge */
[data-r="media"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-io); transition-delay: var(--d, 0s); }
[data-r="media"].in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-r], [data-r="media"] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .btn::before, .menu-panel, .menu-links a { transition: none; }
}

/* ---------------------------------------------------------------------
   Footer (shared)
   --------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line-dark);
  padding-block: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  color: var(--gray-2);
}

.site-footer .brand { color: var(--white); font-size: 13px; }
.site-footer a.link-line { color: var(--gray-2); font-size: 11px; }

/* ---------------------------------------------------------------------
   Luxe menu — framed icon button + full-screen black menu
   --------------------------------------------------------------------- */

.menu-btn { gap: 14px; padding-right: 0; }

.menu-lines {
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background-color 0.45s var(--ease-io), color 0.45s var(--ease-io), transform 0.6s var(--ease-io);
}
.menu-lines span {
  left: 12px;
  width: 18px;
  height: 1px;
  transition: transform 0.5s var(--ease-io), top 0.5s var(--ease-io), width 0.5s var(--ease-io), left 0.5s var(--ease-io);
}
.menu-lines span:nth-child(1) { top: 17px; }
.menu-lines span:nth-child(2) { top: 23px; width: 11px; left: 19px; }

@media (hover: hover) {
  .menu-btn:hover .menu-lines { background: var(--ink); color: var(--white); }
  .menu-btn:hover .menu-lines span:nth-child(2) { width: 18px; left: 12px; }
  .menu-open .menu-btn:hover .menu-lines { background: var(--white); color: var(--ink); }
}
.menu-open .menu-lines { transform: rotate(90deg); }
.menu-open .menu-lines span:nth-child(1),
.menu-open .menu-lines span:nth-child(2) { top: 20px; left: 11px; width: 19px; }
.menu-open .menu-lines span:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-lines span:nth-child(2) { transform: rotate(-45deg); }

/* Header turns to the menu's black while open */
.menu-open .site-header { background: var(--ink) !important; color: var(--white); border-bottom-color: var(--line-dark) !important; }
.menu-open .site-header .btn { --bg: var(--white); --fg: var(--ink); --hover-bg: var(--paper-2); --hover-fg: var(--ink); border-color: var(--white); }
.menu-open .site-header .cart-btn { color: var(--white); border-color: var(--line-dark); }

.menu-panel {
  top: 0;
  inset: 0;
  width: 100% !important;
  max-height: none;
  height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--header-h) + clamp(28px, 5vh, 56px)) var(--gutter) clamp(24px, 4vh, 40px);
  background: var(--ink);
  color: var(--white);
  border: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-io), visibility 0s linear 0.8s;
}
.menu-open .menu-panel { transition: clip-path 0.8s var(--ease-io), visibility 0s; }
.menu-scrim { display: none; }

.menu-links { align-content: center; counter-reset: m; }
.menu-links li { overflow: hidden; }
.menu-links a {
  position: relative;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 24px);
  padding: clamp(4px, 1vh, 10px) 0;
  border-bottom: 0;
  font-size: clamp(34px, 6.4vh, 72px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.035em;
  opacity: 1;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease), color 0.4s ease, opacity 0.4s ease;
}
.menu-links a small { margin-top: 0.55em; font-size: 11px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.45); }
.menu-links a.is-current { color: var(--white); }
.menu-links a.is-current::after {
  content: "";
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
}
.menu-open .menu-links a { transform: none; }
@media (hover: hover) {
  .menu-links a:hover { padding-left: 0; }
  .menu-links:hover a { opacity: 0.32; }
  .menu-links:hover a:hover { opacity: 1; transform: translateX(14px); }
}

.menu-foot {
  margin-top: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.7s var(--ease);
}
.menu-open .menu-foot { transform: none; transition-delay: 0.45s; }
.menu-foot .btn-block { width: auto; }
.menu-foot .btn-ghost { --fg: var(--white); --hover-bg: var(--white); --hover-fg: var(--ink); border-color: rgba(255, 255, 255, 0.5); }
.menu-foot .socials a { border-color: var(--line-dark); }
@media (hover: hover) { .menu-foot .socials a:hover { background: var(--white); color: var(--ink); border-color: var(--white); } }

@media (max-width: 700px) {
  .menu-lines { width: 38px; height: 38px; }
  .menu-lines span { left: 10px; }
  .menu-lines span:nth-child(1) { top: 15px; }
  .menu-lines span:nth-child(2) { top: 21px; left: 17px; }
  .menu-open .menu-lines span:nth-child(1),
  .menu-open .menu-lines span:nth-child(2) { top: 18px; left: 9px; }
  .menu-links a { font-size: clamp(30px, 5.6vh, 44px); padding: 6px 0; }
  .menu-foot { flex-direction: column; align-items: stretch; }
  .menu-foot .btn-block { width: 100%; }
  .menu-foot .socials { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { .menu-links a { transform: none; } }
