/* être grožio namai: the Design card's palette and fonts, nothing else */
:root {
  --bg: #f4ece2;
  --surface: #e9dccd;
  --text: #2b211c;
  --muted: #6d5a4c;
  --accent: #7d4a34;
  --on-accent: #f7efe6;
  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --line: rgba(247, 239, 230, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 30; padding: 8px 12px; background: var(--text); color: var(--bg); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.label { font: 600 12px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label--light { color: rgba(247, 239, 230, .78); }

/* Buttons: thin pills like the Reference, pressed state on click */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px;
  border-radius: 999px; font: 600 14px/1 var(--body); letter-spacing: .04em; text-decoration: none;
  transition: background-color .25s ease, color .25s ease, transform .15s ease, border-color .25s ease; }
.btn:active { transform: scale(.97); }
.btn--light { background: var(--on-accent); color: var(--text); }
.btn--light:hover { background: #fff; }
.btn--ghost { border: 1px solid var(--line); color: var(--on-accent); }
.btn--ghost:hover { background: rgba(247, 239, 230, .14); border-color: var(--on-accent); }
.btn--line { border: 1px solid var(--accent); color: var(--accent); }
.btn--line:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- Hero: their salon, the name spread across the full width ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; color: var(--on-accent);
  padding: 18px var(--gutter) calc(110px + 6vw); overflow: hidden; background: #3a2b22; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform-origin: 50% 40%; }
.hero__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43, 28, 20, .72) 0%, rgba(43, 28, 20, .42) 38%, rgba(43, 28, 20, .5) 70%, rgba(43, 28, 20, .78) 100%); }
.rail, .hero__name, .hero__foot { position: relative; z-index: 1; }
.rail { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; font: 600 12px/1 var(--body);
  letter-spacing: .14em; text-transform: uppercase; }
.rail__line { height: 1px; background: var(--line); }
.rail__links { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.rail__links a { text-decoration: none; padding: 10px 0; display: inline-block; }
.rail__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero__name { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 2vw;
  font: 100 clamp(96px, 19vw, 330px)/1 var(--display); text-shadow: 0 2px 30px rgba(30, 18, 12, .35); }
.hero__foot { display: grid; grid-template-columns: 90px auto 1fr; align-items: center; gap: 24px; align-self: end;
  border-top: 1px solid var(--line); padding-top: 22px; }
.hero__mark { height: 14px; background: repeating-linear-gradient(115deg, var(--line) 0 1px, transparent 1px 6px); }
.hero__tag { font: 300 clamp(20px, 2vw, 26px)/1.2 var(--display); padding-left: 24px; border-left: 1px solid var(--line);
  text-shadow: 0 1px 12px rgba(30, 18, 12, .6); }
.hero__cta { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- The arch rising over the hero (Reference's big rounded panel) ---------- */
.arch { position: relative; z-index: 2; margin-top: calc(-110px - 6vw); background: var(--accent); color: var(--on-accent);
  border-radius: 50vw 50vw 0 0 / 22vw 22vw 0 0; padding: clamp(80px, 11vw, 170px) var(--gutter) clamp(64px, 8vw, 120px); }
.arch__inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.arch__title { max-width: 960px; margin: 0 auto; font: 100 clamp(32px, 4.6vw, 64px)/1.08 var(--display);
  text-transform: uppercase; letter-spacing: .01em; }
.arch__lead { max-width: 780px; margin: 28px auto 0; font: 300 clamp(21px, 2.3vw, 32px)/1.35 var(--display); color: #ead7c6; }
.arch__meta { margin-top: 26px; font: 600 13px/1.5 var(--body); letter-spacing: .06em; color: rgba(247, 239, 230, .85); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(56px, 7vw, 96px); text-align: left; }
.pill { position: relative; overflow: hidden; border-radius: 220px 220px 28px 28px; background: #2b211c; min-height: 560px;
  display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.pill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s ease; }
.pill::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 13, 9, 0) 30%, rgba(20, 13, 9, .55) 58%, rgba(20, 13, 9, .9) 100%); }
.pill:hover img { transform: scale(1.04); }
.pill__text { padding: 0 clamp(22px, 3vw, 40px) clamp(26px, 3vw, 40px); }
.pill h3 { font: 300 clamp(30px, 3.4vw, 46px)/1.05 var(--display); text-transform: uppercase; }
.pill p { margin-top: 12px; color: #f2e6da; max-width: 46ch; }
.pill .pill__small { font-size: 13px; letter-spacing: .04em; color: #e3d2c2; }

/* ---------- Menu: the price calculator, under a giant faded word ---------- */
.menu { background: var(--surface); padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(72px, 9vw, 130px); overflow: hidden; }
.menu__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(43, 33, 28, .18); padding-bottom: 18px; }
.giant { font: 100 clamp(84px, 17vw, 260px)/.9 var(--display); text-transform: uppercase; text-align: center;
  color: rgba(125, 74, 52, .16); margin: clamp(24px, 4vw, 48px) 0 0; letter-spacing: .02em; overflow-wrap: anywhere; }
.menu__title { text-align: center; margin-top: -0.6em; font: 300 clamp(24px, 2.6vw, 34px)/1.2 var(--display); }
.menu__calc { max-width: 760px; margin: clamp(32px, 4vw, 48px) auto 0;
  --pc-accent: var(--accent); --pc-bg: var(--bg); --pc-fg: var(--text); --pc-line: rgba(43, 33, 28, .14);
  --pc-font: var(--body); --pc-total-font: var(--display); --pc-radius: 28px; --pc-space: 18px; }

/* ---------- "Jauki, moderni": arch-cropped photo ---------- */
.calm { padding: clamp(80px, 10vw, 150px) var(--gutter); text-align: center; overflow: hidden; }
.calm__title { position: relative; z-index: 2; font: 100 clamp(56px, 11vw, 170px)/.95 var(--display); text-transform: uppercase; color: var(--accent); }
.calm__title span { display: inline-block; }
.calm__frame { position: relative; z-index: 1; width: min(80vw, 980px); margin: -0.35em auto 0; aspect-ratio: 10 / 9; overflow: hidden;
  border-radius: 50vw 50vw 0 0 / 30vw 30vw 0 0; font-size: clamp(56px, 11vw, 170px); }
.calm__frame img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.calm__text { max-width: 640px; margin: 36px auto 0; font: 300 clamp(20px, 2vw, 26px)/1.45 var(--display); color: var(--muted); }

/* ---------- Works: dark band, tilted tiles over a light curve ---------- */
.works { position: relative; background: var(--text); color: var(--on-accent); padding: clamp(72px, 8vw, 120px) var(--gutter) clamp(80px, 9vw, 140px);
  overflow: hidden; text-align: center; }
.works::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 46%; background: var(--surface);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.works__label { color: rgba(247, 239, 230, .78); }
.giant--dark { color: rgba(247, 239, 230, .14); margin-top: 18px; }
.works__stage { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px);
  max-width: 1240px; margin: clamp(-90px, -6vw, -40px) auto 0; }
.tile { margin: 0; background: var(--accent); padding: 10px 10px 0; border-radius: 26px; box-shadow: 0 18px 40px rgba(20, 13, 9, .3);
  transition: transform .5s ease; }
.tile img { border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.tile figcaption { font: 300 22px/1 var(--display); padding: 14px 0 16px; }
.tile--a { transform: rotate(-4deg) translateY(30px); }
.tile--b { transform: rotate(2deg); }
.tile--c { transform: rotate(-2deg) translateY(44px); }
.tile--d { transform: rotate(4deg) translateY(8px); }
.tile:hover { transform: rotate(0) translateY(-6px); }

/* ---------- Team ---------- */
.team { background: var(--surface); padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(72px, 8vw, 120px); text-align: center; }
.team__title { font: 100 clamp(52px, 8vw, 116px)/1 var(--display); text-transform: uppercase; margin-top: 10px; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); max-width: 1180px; margin: 44px auto 0; text-align: left; }
.card { background: var(--accent); color: var(--on-accent); border-radius: 28px; padding: clamp(24px, 3vw, 36px); }
.card h3 { font: 300 clamp(34px, 3.4vw, 46px)/1 var(--display); }
.card__role { margin: 8px 0 18px; font: 600 12px/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #ecd9c8; }
.card p:last-child { color: #f2e6da; }
.team__more { margin-top: 30px; color: var(--muted); }

/* ---------- Reviews + Instagram line ---------- */
.reviews { padding: clamp(72px, 9vw, 130px) var(--gutter); }
.reviews__title { text-align: center; font: 300 clamp(36px, 4.4vw, 60px)/1.05 var(--display); }
.reviews__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px); max-width: 1120px; margin: 48px auto 0; }
.quote { margin: 0; border-top: 1px solid rgba(43, 33, 28, .2); padding-top: 22px; }
.quote p { font: 300 clamp(19px, 1.7vw, 23px)/1.45 var(--display); }
.quote footer { margin-top: 14px; font: 600 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.insta { display: flex; align-items: center; justify-content: center; gap: 16px; margin: clamp(64px, 8vw, 110px) auto 0; max-width: max-content;
  text-decoration: none; color: var(--accent); font: 100 clamp(30px, 5.4vw, 76px)/1 var(--display); text-transform: uppercase;
  border: 1px solid rgba(125, 74, 52, .35); border-radius: 999px; padding: 18px clamp(22px, 3vw, 44px); transition: background-color .3s ease; }
.insta span { overflow-wrap: anywhere; }
.insta:hover { background: rgba(125, 74, 52, .08); }
.insta svg { width: .7em; height: .7em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; }

/* ---------- Footer ---------- */
.foot { background: #241b16; color: var(--on-accent); padding: clamp(64px, 8vw, 110px) var(--gutter) 24px; overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; max-width: 1240px; margin: 0 auto; }
.foot__grid p { margin-top: 12px; font-size: 17px; }
.foot__grid a { text-underline-offset: 4px; }
.foot__grid a:hover { color: #fff; }
.foot .foot__small { font-size: 14px; color: rgba(247, 239, 230, .78); max-width: 38ch; }
.foot__cta { display: flex; gap: 12px; flex-wrap: wrap; max-width: 1240px; margin: 40px auto 0; }
.foot__name { display: flex; justify-content: space-between; margin-top: clamp(40px, 6vw, 80px);
  font: 100 clamp(84px, 19vw, 330px)/.8 var(--display); color: rgba(247, 239, 230, .16); }

.demo-badge { position: fixed; right: 12px; bottom: 12px; z-index: 20; padding: 7px 12px; border-radius: 999px;
  background: var(--text); color: var(--bg); font: 600 12px/1.2 var(--body); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }

/* Reveal: a light rise as blocks enter (main.js) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .tile.reveal.is-in.tile--a { transform: rotate(-4deg) translateY(30px); }
.js .tile.reveal.is-in.tile--b { transform: rotate(2deg); }
.js .tile.reveal.is-in.tile--c { transform: rotate(-2deg) translateY(44px); }
.js .tile.reveal.is-in.tile--d { transform: rotate(4deg) translateY(8px); }
.js .tile.reveal.is-in:hover { transform: rotate(0) translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scale-on-scroll { transform: none !important; }
  .pill img, .tile { transition: none; }
}

@media (max-width: 900px) {
  .rail { grid-template-columns: 1fr auto; }
  .rail__line { display: none; }
  .rail__label { display: none; }
  .rail__links { gap: 18px; }
  .hero__foot { grid-template-columns: 1fr; gap: 16px; }
  .hero__mark { display: none; }
  .hero__tag { border-left: 0; padding-left: 0; }
  .hero__cta { justify-content: flex-start; }
  .pair { grid-template-columns: 1fr; }
  .pill { min-height: 520px; border-radius: 180px 180px 24px 24px; }
  .works__stage { grid-template-columns: repeat(2, 1fr); }
  .tile--c, .tile--a { transform: rotate(-3deg); }
  .js .tile.reveal.is-in.tile--a, .js .tile.reveal.is-in.tile--c { transform: rotate(-3deg); }
  .team__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding-bottom: 150px; }
  .hero__name { margin-top: 28vh; }
  .arch { margin-top: -110px; border-radius: 50vw 50vw 0 0 / 34vw 34vw 0 0; padding-top: 92px; }
  .btn { padding: 10px 18px; }
  .calm__frame { width: 100%; border-radius: 50vw 50vw 0 0 / 46vw 46vw 0 0; }
  .demo-badge { font-size: 11px; right: 8px; bottom: 8px; }
  .insta { font-size: 21px; gap: 10px; padding: 14px 20px; }
}
