/* =========================================================
   Dremora Dining
   ========================================================= */

:root {
  --bg: #f2f2f2;
  --ink: #161616;
  --muted: #7d7d7d;
  --accent: #ef4810;
  --accent-dark: #d63c08;
  --white: #ffffff;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 8.5vw, 128px);
  --shadow-plate: 0 34px 46px -22px rgba(0, 0, 0, .28), 0 10px 22px rgba(0, 0, 0, .07);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;              /* clip (not just hidden) so focus/scrollIntoView can't shift the page sideways */
  /* crinkled paper: lit fractal noise, flat areas land on #f2f2f2 */
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.005' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='2.2' diffuseConstant='1'%3E%3CfeDistantLight azimuth='135' elevation='72'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  background-size: 900px 900px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  box-shadow: 0 14px 26px -12px rgba(239, 72, 16, .65);
  transition: background .3s, transform .3s, box-shadow .3s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(239, 72, 16, .75); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 82px;
  padding: 0 20px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--accent) !important;
  font-weight: 500;
  transition: background .3s, color .3s;
}
.btn-outline:hover { background: var(--accent); color: var(--white) !important; }

/* ---------- custom cursor: butter knife (tip = click point) ---------- */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 8.16px;                 /* 24:100 viewBox at 34px tall */
  height: 34px;
  margin: -.45px 0 0 -4.1px;     /* puts the blade tip exactly on the pointer */
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.knife {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 1%;      /* pivot around the tip */
  rotate: -32deg;                /* resting angle, like an arrow pointer */
  filter: drop-shadow(1.5px 2.5px 1.5px rgba(0, 0, 0, .18));
  transition: rotate .35s cubic-bezier(.34, 1.56, .64, 1), scale .25s;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover .knife { rotate: -8deg; scale: 1.12; }       /* tilts up over links & buttons */
.cursor.is-down .knife { rotate: -52deg; scale: .94; transition-duration: .12s; }  /* little "spread" on click */
.cursor.is-text { opacity: 0; } /* show the normal text caret inside the email field */

html.knife-cursor,
html.knife-cursor * { cursor: none !important; }
html.knife-cursor input { cursor: text !important; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- sections & scattered ingredients ---------- */
.section {
  position: relative;            /* no z-index/transform here: keeps mix-blend-mode working */
  overflow-x: clip;
  padding-inline: var(--gutter);
}

.ing {
  position: absolute;
  left: var(--x, 0);
  top: var(--y, 0);
  width: var(--w, 10%);
  height: auto;
  rotate: var(--r, 0deg);
  mix-blend-mode: multiply;      /* white photo backgrounds melt into the paper */
  filter: brightness(1.06) contrast(1.06) saturate(1.05);
  pointer-events: none;
  user-select: none;
}
.ing.no-blend { mix-blend-mode: normal; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .25)); }  /* transparent PNG sitting on a dark object */

/* ---------- header ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding-inline: var(--gutter);
  transition: height .4s, background .4s, box-shadow .4s, transform .5s;
}
.nav.is-scrolled {
  height: 68px;
  background: rgba(242, 242, 242, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}
.nav.is-hidden { transform: translateY(-100%); }

.logo { font: 400 26px/1 var(--serif); letter-spacing: -.01em; }
.logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); font-size: 13.5px; font-weight: 500; }
.nav-links a:not(.btn-outline) { position: relative; color: #333; }
.nav-links a:not(.btn-outline)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .35s;
}
.nav-links a:not(.btn-outline):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 84px;
}

.hero-text { position: relative; padding-top: 4vh; max-width: 470px; }
.hero h1 { font-size: clamp(2.4rem, 3.7vw, 3.7rem); line-height: 1.12; }
.hero h2 { margin-top: .55em; font-size: clamp(1.6rem, 2.5vw, 2.5rem); line-height: 1.15; }
.hero p { margin-top: 16px; max-width: 430px; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.hero .btn { margin-top: 34px; }

.hero-visual { position: static; }   /* plate & sauce are placed against the whole hero, like the design */

.hero-plate {
  --pw: min(64vw, 980px);
  position: absolute;           /* positioned with calc, not translate: a transform here would break the blend */
  left: calc(88% - var(--pw) / 2);   /* the bowl sits left of centre in the photo */
  top: calc(54% - var(--pw) / 2);
  width: var(--pw);
  aspect-ratio: 1;
  pointer-events: none;
}
.hero-plate > img {
  position: absolute;           /* landscape photo: the white sides spill out and vanish in the blend */
  top: 0;
  left: -25%;
  width: 150%;
  height: 100%;
  object-fit: cover;
  rotate: var(--spin, 0deg);
  mix-blend-mode: multiply;
  filter: brightness(1.12) contrast(1.06);
  -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 96%);
          mask-image: radial-gradient(closest-side, #000 74%, transparent 96%);
}

/* chopsticks drawn in CSS: two light bamboo sticks */
.chopsticks {
  position: absolute;
  left: 2%;
  top: 22%;
  width: 104%;
  height: 26px;
  rotate: 28deg;
  pointer-events: none;
}
.chopsticks::before,
.chopsticks::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  border-radius: 6px 3px 3px 6px;
  background: linear-gradient(180deg, #f6e7c4 0%, #e9d3a1 45%, #caa96c 100%);
  box-shadow: 0 7px 9px -3px rgba(0, 0, 0, .28);
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 82%);
}
.chopsticks::before { top: 0; }
.chopsticks::after { top: 16px; left: 3%; rotate: -2.2deg; }

.sauce {
  --sw: min(17vw, 250px);
  position: absolute;
  left: calc(52% - var(--sw) / 2);
  top: calc(77% - var(--sw) / 2);
  width: var(--sw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0 62%, #ececec 72%, #fff 76%);
  box-shadow: var(--shadow-plate);
}
.sauce-fill {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 34% 28%, rgba(255, 255, 255, .55) 0 7%, transparent 18%),
    radial-gradient(circle at 50% 55%, #e0201a 0%, #c4150f 55%, #8e0d08 100%);
  box-shadow: inset 0 6px 12px rgba(0, 0, 0, .35);
}
.basil {
  position: absolute;
  left: -16%;
  top: 34%;
  width: 84%;
  rotate: -14deg;
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .3));
  pointer-events: none;
}

/* little dip bowls (top-left of the menu) */
.dip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(44px, 5vw, 76px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff 0 60%, #e9e9e9 70%, #fff 76%);
  box-shadow: 0 12px 16px -8px rgba(0, 0, 0, .3);
}
.dip::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .35);
}
.dip-red::after {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 210, 160, .5) 0 6%, transparent 14%),
    repeating-radial-gradient(circle at 40% 60%, #c9461c 0 2px, #b6350f 2px 4px);
}
.dip-soy::after {
  background:
    radial-gradient(ellipse at 34% 28%, rgba(255, 255, 255, .5) 0 8%, transparent 20%),
    radial-gradient(circle, #2a1a12 0%, #120a06 100%);
}

/* ---------- section headings ---------- */
.sec-head { text-align: center; }
.sec-head h2,
.review-text h2,
.sub-inner h2 { font-size: clamp(1.9rem, 2.6vw, 2.6rem); line-height: 1.15; }
.sec-head p,
.review-text .sub,
.sub-inner p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }

/* ---------- what's on our plate ---------- */
.plate-sec { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(90px, 16vh, 170px); min-height: 100vh; }

.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin-top: 40px; }
.tab {
  position: relative;
  padding: 6px 2px 10px;
  border: 0;
  background: none;
  color: #555;
  font: 500 13.5px/1 var(--sans);
  cursor: pointer;
  transition: color .3s;
}
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .4s cubic-bezier(.7, 0, .2, 1);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.dishes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 80px);
  max-width: 1080px;
  margin: clamp(60px, 11vh, 110px) auto 0;
}

.dish { text-align: center; }
.dish-plate { position: relative; width: 82%; margin: 0 auto; }

.plate {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 7%;
  background: radial-gradient(circle at 50% 50%, #fff 0 64%, #f1f1f1 70%, #fff 74%, #f7f7f7 100%);
  box-shadow: var(--shadow-plate);
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.dish-plate .chopsticks { left: -6%; top: 50%; width: 110%; height: 20px; rotate: -28deg; }
.dish-plate .chopsticks::before,
.dish-plate .chopsticks::after { height: 8px; }
.dish-plate .chopsticks::after { top: 12px; }

/* fork: metal head + wooden handle */
.fork-small,
.fork-big,
.dish-plate .fork {
  position: absolute;
  width: 74%;
  height: 34px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40'%3E%3Cdefs%3E%3ClinearGradient id='m' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f4f4f4'/%3E%3Cstop offset='.5' stop-color='%23b9bcc0'/%3E%3Cstop offset='1' stop-color='%23767a80'/%3E%3C/linearGradient%3E%3ClinearGradient id='w' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23a8653a'/%3E%3Cstop offset='.5' stop-color='%237a3f1d'/%3E%3Cstop offset='1' stop-color='%23502611'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23m)'%3E%3Crect x='0' y='6' width='62' height='3.4' rx='1.7'/%3E%3Crect x='0' y='13' width='62' height='3.4' rx='1.7'/%3E%3Crect x='0' y='20' width='62' height='3.4' rx='1.7'/%3E%3Crect x='0' y='27' width='62' height='3.4' rx='1.7'/%3E%3Cpath d='M58 5 Q78 5 92 13 L120 16 L120 24 L92 27 Q78 35 58 35 Z'/%3E%3C/g%3E%3Crect x='118' y='13' width='182' height='14' rx='7' fill='url(%23w)'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .25));
}
.dish-plate .fork { left: 30%; top: 22%; rotate: 32deg; }

.dish h3 { margin-top: 44px; font-size: clamp(1.15rem, 1.45vw, 1.45rem); }
.dish p { max-width: 250px; margin: 10px auto 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }

/* ---------- testimonials ---------- */
.reviews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4vw;
  min-height: 100vh;
  padding-block: 12vh;
}
.review-visual { position: relative; width: min(40vw, 600px); aspect-ratio: 1; justify-self: center; }
.review-plate { position: absolute; inset: 0; }
.review-plate > img {
  position: absolute;           /* landscape photo: the white sides spill out and vanish in the blend */
  top: 0;
  left: -8%;                    /* the plate sits left of centre in the photo */
  width: 150%;
  height: 100%;
  object-fit: cover;
  rotate: var(--spin, 0deg);
  mix-blend-mode: multiply;
  filter: brightness(1.12) contrast(1.06);
  -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 96%);
          mask-image: radial-gradient(closest-side, #000 74%, transparent 96%);
}
.chopsticks-review { left: 12%; top: 6%; width: 84%; height: 24px; rotate: 9deg; }
.fork-small { left: 36%; top: 1%; width: 46%; rotate: -14deg; }
.review-visual .ing-in { position: absolute; left: var(--x); top: var(--y); width: var(--w); rotate: var(--r); mix-blend-mode: multiply; }

.review-text { max-width: 440px; }
.quote { position: relative; margin: 36px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.85; min-height: 8.5em; }
.q-mark { color: var(--ink); font: 700 22px/0 var(--serif); vertical-align: -6px; margin-right: 6px; }
.q-end { margin: 0 0 0 4px; }
.q-name { display: block; margin-top: 14px; color: var(--ink); font: 600 13px var(--sans); font-style: normal; }

.avatars { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.avatar {
  width: 46px;
  height: 46px;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: width .35s, height .35s, box-shadow .35s;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; filter: grayscale(1); transition: filter .35s; }
.avatar[aria-selected="true"] { width: 58px; height: 58px; box-shadow: 0 0 0 3px #bfe3ee, 0 10px 20px rgba(0, 0, 0, .15); }
.avatar[aria-selected="true"] img,
.avatar:hover img { filter: none; }

.fork-big { width: 13%; height: 46px; rotate: -38deg; left: var(--x); top: var(--y); }

/* ---------- newsletter ---------- */
.subscribe { display: grid; place-items: center; min-height: 82vh; padding-block: 16vh 12vh; }
.sub-inner { position: relative; text-align: center; }
.sub-inner p { line-height: 1.7; }

.sub-form {
  position: relative;
  display: flex;
  align-items: center;
  width: min(560px, 92vw);
  height: 62px;
  margin: 38px auto 0;
  padding: 6px 6px 6px 28px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .22);
}
.sub-form input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 400 14px var(--sans);
}
.sub-form input::placeholder { color: #b3b3b3; }
.sub-form .btn { height: 100%; padding: 0 34px; box-shadow: none; }
.sub-form .btn:hover { transform: none; }
.form-pepper { position: absolute; z-index: -1; left: -44px; top: -14px; width: 74px; rotate: -10deg; mix-blend-mode: multiply; pointer-events: none; }  /* tucked behind the input */
.sub-inner .sub-msg { min-height: 1.5em; margin-top: 14px; color: var(--accent); font-size: 13px; }

/* ---------- footer ---------- */
.footer { padding-block: 13vh 6vh; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 210px)); gap: 6vw; }
.foot-cols h4 { margin: 0 0 22px; font: 600 15px var(--sans); }
.foot-cols a { display: block; width: fit-content; margin-bottom: 9px; color: var(--muted); font-size: 13px; transition: color .3s, translate .3s; }
.foot-cols a:hover { color: var(--accent); translate: 4px 0; }
.copy { margin-top: 10vh; color: #a3a3a3; font-size: 12px; }

/* ---------- reveal starting state (only when JS + motion are on) ---------- */
.js .reveal { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .nav-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    place-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: rgba(242, 242, 242, .97);
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; }

  .hero { grid-template-columns: 1fr; gap: 20px; padding-bottom: 60px; text-align: left; }
  .hero-text { padding-top: 40px; }
  .hero-visual { position: relative; min-height: 92vw; }
  .hero-plate { --pw: 124vw; left: calc(66% - var(--pw) / 2); top: calc(50% - var(--pw) / 2); }
  .sauce { --sw: 32vw; left: 0; top: auto; bottom: 0; }

  .dishes { grid-template-columns: 1fr; max-width: 360px; gap: 64px; }
  .dish-plate { width: 80%; }

  .reviews { grid-template-columns: 1fr; gap: 50px; }
  .review-visual { width: 84vw; }
  .review-text { max-width: none; }

  .foot-cols { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .ing { width: calc(var(--w) * 1.35); }
  .hide-sm { display: none; }
  .dip { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .logo { font-size: 22px; }
  .tabs { gap: 4px 18px; }
  .sub-form { height: 56px; padding-left: 18px; }
  .sub-form .btn { padding: 0 20px; }
  .form-pepper { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
}
