/* Tokens: Onest 300 (display) + 400 (body) / bone, espresso, copper / one ease / radius 999 / 8px scale */
:root {
  --bone: #f2ebe2;
  --esp: #2b1e18;
  --cop: #b4663a;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(20px, 3.4vw, 56px);
  --font: "Onest", system-ui, sans-serif;
  --line: rgba(43, 30, 24, .16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bone); color: var(--esp); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
h1, h2 { font-weight: 300; hyphens: none; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 5.4vw, 5rem); line-height: .95; letter-spacing: -.04em; }
p { line-height: 1.6; text-wrap: pretty; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; opacity: .55; }

/* Hero: scheme B, two lines on a diagonal, photo in the gap overlapping letters */
.hero { position: relative; height: 100svh; min-height: 680px; padding: var(--pad); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 3; }
.logo { font-size: 26px; letter-spacing: -.04em; }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { padding: 12px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--cop); transform: scaleX(0); transform-origin: right; transition: transform 520ms var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hero__title { position: relative; display: flex; flex-direction: column; justify-content: center; gap: .12em; font-size: clamp(4rem, 15vw, 17rem); line-height: .82; letter-spacing: -.06em; }
.l1 { align-self: flex-start; position: relative; z-index: 1; }
.l2 { align-self: flex-end; position: relative; z-index: 3; color: var(--cop); }
.hero__photo { position: absolute; z-index: 2; left: 58%; top: 50%; width: clamp(220px, 20vw, 330px); aspect-ratio: 3 / 4; transform: translate(0, -68%); overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__foot { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero__lead { max-width: 40ch; font-size: 16px; opacity: .75; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* Buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px; border-radius: 999px; font-size: 15px; isolation: isolate; }
.btn__fill { position: absolute; inset: 0; background: var(--cop); border-radius: inherit; transform: scale(0); transition: transform 500ms var(--ease); z-index: -1; }
.btn__label { transition: color 320ms var(--ease); }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 520ms var(--ease); }
.btn:hover .btn__fill { transform: scale(1.05); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--solid { background: var(--esp); color: var(--bone); }
.btn--line { box-shadow: inset 0 0 0 1px var(--bone); color: var(--bone); }
.assure { font-size: 13px; opacity: .6; }

/* Why */
.why { display: grid; grid-template-columns: 42fr 58fr; min-height: 100svh; }
.why__img { overflow: hidden; }
.why__img img { width: 100%; height: 100%; object-fit: cover; }
.why__body { padding: 120px var(--pad); display: flex; flex-direction: column; justify-content: flex-end; gap: 56px; }
.why__list { list-style: none; display: grid; gap: 0; max-width: 620px; }
.why__list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.why__list span { font-size: 13px; color: var(--cop); padding-top: 4px; }
.why__list p { font-size: 18px; max-width: 42ch; }

/* Signature: visit calculator */
.calc { background: var(--esp); color: var(--bone); padding: 140px var(--pad) 120px; }
.calc__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: 64px; }
.calc__head p { max-width: 36ch; opacity: .65; }
.calc__grid { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }
.calc__list { list-style: none; }
.opt { width: 100%; min-height: 64px; display: grid; grid-template-columns: 28px 1fr auto 100px; gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid rgba(242, 235, 226, .14); font-size: 17px; }
.opt::before { content: ""; width: 18px; height: 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(242, 235, 226, .5); transition: background 320ms var(--ease), box-shadow 320ms var(--ease), transform 520ms var(--ease); }
.opt[aria-pressed="true"]::before { background: var(--cop); box-shadow: inset 0 0 0 1px var(--cop); transform: scale(1.15); }
.opt__n { transition: transform 620ms var(--ease); }
.opt:hover .opt__n { transform: translateX(8px); }
.opt__t { font-size: 13px; opacity: .5; }
.opt__p { text-align: right; font-size: 20px; letter-spacing: -.02em; }
.opt[aria-pressed="true"] .opt__p { color: var(--cop); }
.sum { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 16px; padding: 36px 32px; background: rgba(242, 235, 226, .06); }
.sum__label { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; opacity: .55; }
.sum__price { font-weight: 300; font-size: clamp(3.6rem, 6vw, 5.6rem); line-height: .9; letter-spacing: -.05em; }
.sum__time { font-size: 15px; opacity: .7; min-height: 24px; }
.sum .btn { margin-top: 12px; }
.sum .btn:hover .btn__label { color: var(--bone); }
.sum__note { font-size: 13px; opacity: .5; line-height: 1.5; }

/* Nerija */
.nerija { display: grid; grid-template-columns: 58fr 42fr; }
.nerija__img { overflow: hidden; min-height: 100svh; }
.nerija__img img { width: 100%; height: 100%; object-fit: cover; }
.nerija__body { padding: 120px var(--pad); display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; }
.nerija h2 { font-size: clamp(4rem, 9vw, 9rem); line-height: .85; letter-spacing: -.06em; }
.nerija__lead { font-size: 18px; max-width: 34ch; opacity: .8; }
.school { list-style: none; margin-top: 24px; }
.school li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.school b { font-weight: 400; font-size: 17px; }
.school span { font-size: 14px; opacity: .6; text-align: right; }

/* Reviews */
.words { padding: 160px var(--pad); display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; align-items: end; }
blockquote { font-weight: 300; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; max-width: 26ch; }
.words__big { font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.05; letter-spacing: -.04em; max-width: 18ch; text-wrap: balance; }
cite { display: block; margin-top: 16px; font-style: normal; font-size: 13px; letter-spacing: 0; opacity: .55; }

/* Contact */
.contact { padding: 120px var(--pad) 100px; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(3rem, 10vw, 10rem); line-height: .85; letter-spacing: -.06em; margin-bottom: 72px; }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 56px; }
.contact__grid div { border-top: 1px solid var(--line); padding-top: 20px; }
.contact dt { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; opacity: .55; margin-bottom: 12px; }
.contact dd { font-size: 20px; line-height: 1.5; }
.contact__cta { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.contact .btn--solid:hover .btn__label { color: var(--bone); }
.link { position: relative; padding: 12px 0; font-size: 15px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform-origin: left; transition: transform 520ms var(--ease); }
.link:hover::after { transform: scaleX(.3); }
.foot { display: flex; justify-content: space-between; padding: 28px var(--pad); font-size: 13px; opacity: .6; }

/* Motion */
.rise, .reveal { opacity: 0; transform: translateY(28px); filter: blur(14px); }
.hero__photo.rise { transform: translate(0, -64%); }
.is-in .rise, .reveal.is-seen { opacity: 1; transform: none; filter: blur(0); transition: opacity 900ms var(--ease) var(--d, 0ms), transform 900ms var(--ease) var(--d, 0ms), filter 900ms var(--ease) var(--d, 0ms); }
.is-in .hero__photo.rise { transform: translate(0, -68%); }
.d300 { --d: 300ms; } .d420 { --d: 420ms; } .d900 { --d: 900ms; } .d1040 { --d: 1040ms; } .d1200 { --d: 1200ms; }
@media (prefers-reduced-motion: reduce) {
  * { --d: 0ms !important; transition-delay: 0ms !important; }
}

@media (max-width: 860px) {
  .nav { gap: 16px; font-size: 13px; }
  .nav a:nth-child(3) { display: none; }
  .hero { min-height: 0; }
  .hero__title { font-size: 21vw; gap: 30vw; }
  .hero__photo { left: 50%; width: 46vw; transform: translate(-50%, -52%); }
  .is-in .hero__photo.rise { transform: translate(-50%, -52%); }
  .hero__photo.rise { transform: translate(-50%, -48%); }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .why, .nerija { grid-template-columns: 1fr; min-height: 0; }
  .why__img { height: 70vw; }
  .why__body, .nerija__body { padding: 72px var(--pad); gap: 32px; }
  .nerija__img { min-height: 0; height: 80vw; }
  .calc { padding: 96px var(--pad) 72px; }
  .calc__grid { grid-template-columns: 1fr; gap: 32px; }
  .opt { grid-template-columns: 24px 1fr auto; gap: 4px 14px; }
  .opt::before { grid-row: 1 / span 2; }
  .opt__n { grid-column: 2; }
  .opt__t { grid-column: 2; grid-row: 2; }
  .opt__p { grid-column: 3; grid-row: 1 / span 2; font-size: 18px; }
  .sum { position: sticky; bottom: 0; top: auto; padding: 16px 20px; background: #3a2a22; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px; }
  .sum__label, .sum__note { display: none; }
  .sum__price { font-size: 2.6rem; grid-row: 1; }
  .sum__time { grid-row: 1; font-size: 13px; }
  .sum .btn { grid-column: 1 / -1; margin-top: 8px; min-height: 46px; }
  .words { grid-template-columns: 1fr; padding: 96px var(--pad); gap: 36px; }
  .contact { padding: 96px var(--pad) 72px; }
  .contact h2 { margin-bottom: 48px; }
  .contact__grid { grid-template-columns: 1fr; gap: 24px; }
}
