/* =====================================================
   KONTINENT — Beauty Atelier · Brest
   Minimalist landing · 5 blocks
   ===================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg:        #efece6;   /* warm cream */
  --bg-soft:   #f6f4ee;   /* card / panel */
  --ink:       #15140f;   /* near-black, warm */
  --ink-soft:  #2a2722;
  --muted:     #8a857a;   /* secondary text */
  --line:      #d9d4cb;   /* thin borders */
  --line-soft: #e6e1d7;
  --accent:    #9c8666;   /* warm taupe — used sparingly */
  --accent-h:  #826d52;

  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;

  --t: 320ms cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--bg); }

/* ---------- Utilities ---------- */
.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.muted { color: var(--muted); }

.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color var(--t), border-color var(--t);
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: var(--ink-soft); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.btn--text {
  padding: 14px 0;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}
.btn--text:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Section helpers ---------- */
section { padding: clamp(80px, 11vw, 160px) var(--gutter); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.section-head__title {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 24px;
  color: var(--ink);
}

.section-head__lead {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}
.section-head--center .section-head__lead { margin: 0 auto; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.nav.is-scrolled { border-bottom-color: var(--line-soft); }

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: 0.02em;
}
.nav__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1;
  padding-bottom: 2px;
}
.nav__brand-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav__menu {
  justify-self: center;
  display: flex;
  gap: 36px;
}
.nav__link {
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  transition: color var(--t);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background var(--t), color var(--t);
}
.nav__cta:hover { background: var(--ink); color: var(--bg); }

.burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.burger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--ink);
  transition: transform var(--t), opacity var(--t);
}
.burger.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px var(--gutter) 28px;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.mobile-menu a {
  padding: 14px 0;
  font-size: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu__cta {
  margin-top: 16px;
  padding: 14px 22px !important;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  border: 0 !important;
  border-radius: 999px;
}
.mobile-menu.is-open { display: flex; }

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  padding-top: clamp(60px, 7vw, 100px);
  padding-bottom: clamp(60px, 7vw, 100px);
}

.hero__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.hero__title {
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero__title .serif-italic {
  display: block;
  margin-top: 6px;
}

.hero__lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 40px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 64px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 480px;
}
.hero__stats div { display: flex; flex-direction: column; gap: 4px; }
.hero__stats dt {
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__stats dd {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--muted);
}

.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.hero__media:hover img { transform: scale(1.02); }

/* ============================================================
   2. SERVICES
   ============================================================ */
.services { background: var(--bg); border-top: 1px solid var(--line-soft); }

.services__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.service {
  background: var(--bg);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  transition: background var(--t);
}
.service:hover { background: var(--bg-soft); }

.service__media {
  width: 64px; height: 64px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(0.85) opacity(0.85);
  transition: filter var(--t);
}
.service:hover .service__media img { filter: grayscale(0.6) contrast(1) opacity(1); }

.service__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--ink);
}

.service__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 28px;
  flex-grow: 1;
}

.service__price {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.services__foot {
  max-width: var(--container);
  margin: 40px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ============================================================
   3. ABOUT
   ============================================================ */
.about { background: var(--bg-soft); }

.about__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.about__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
}
.about__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about__title {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 32px;
  color: var(--ink);
}

.about__lead {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 52ch;
}

.about__list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.about__list li {
  display: flex;
  gap: 16px;
  font-size: 15px;
  color: var(--ink-soft);
}
.about__list li span {
  color: var(--accent);
  width: 14px;
  flex-shrink: 0;
}

/* ============================================================
   4. WORK / GALLERY
   ============================================================ */
.work { background: var(--bg); }

.work__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 12px;
}
.work__grid--trio {
  max-width: 1040px;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
.work__item {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.work__item--tall { grid-row: span 1; aspect-ratio: 3 / 4; }

.work__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.work__item:hover img { transform: scale(1.04); }

.work__item figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--t), transform var(--t);
}
.work__item:hover figcaption { opacity: 1; transform: translateY(0); }

.work__foot {
  max-width: var(--container);
  margin: 48px auto 0;
  display: flex;
  justify-content: center;
}

/* ============================================================
   5. CONTACTS / BOOKING
   ============================================================ */
.contacts {
  background: var(--ink);
  color: var(--bg);
  padding-bottom: clamp(40px, 6vw, 80px);
}

.contacts ::selection { background: var(--bg); color: var(--ink); }

.contacts__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.contacts .section-head__label { color: color-mix(in srgb, var(--bg) 50%, transparent); }

.contacts__title {
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 0 0 24px;
  color: var(--bg);
}
.contacts__title .serif-italic { color: var(--bg); }

.contacts__lead {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: color-mix(in srgb, var(--bg) 65%, transparent);
  max-width: 48ch;
  margin: 0 0 36px;
}

.contacts__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.contacts__cta .btn--primary {
  background: var(--bg);
  color: var(--ink);
}
.contacts__cta .btn--primary:hover { background: color-mix(in srgb, var(--bg) 88%, var(--ink)); }
.contacts__cta .btn--ghost {
  color: var(--bg);
  border-color: color-mix(in srgb, var(--bg) 40%, transparent);
}
.contacts__cta .btn--ghost:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
}
.contacts__row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  align-items: baseline;
}
.contacts__row dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 50%, transparent);
}
.contacts__row dd {
  font-size: 15px;
  line-height: 1.55;
  color: var(--bg);
}
.contacts__row dd .muted { color: color-mix(in srgb, var(--bg) 45%, transparent); }
.contacts__row dd a { transition: color var(--t); }
.contacts__row dd a:hover { color: var(--accent); }
.contacts__row dd .link-arrow {
  border-bottom-color: color-mix(in srgb, var(--bg) 30%, transparent);
  color: var(--bg);
}
.contacts__row dd .link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Footer */
.footer {
  max-width: var(--container);
  margin: clamp(60px, 8vw, 100px) auto 0;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.04em;
}
.footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid color-mix(in srgb, var(--bg) 50%, transparent);
  border-radius: 2px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1;
  padding-bottom: 2px;
}
.footer__brand .muted { color: color-mix(in srgb, var(--bg) 50%, transparent); }
.footer__legal { display: flex; gap: 18px; }
.footer__legal .muted { color: color-mix(in srgb, var(--bg) 50%, transparent); transition: color var(--t); }
.footer__legal a:hover { color: var(--bg); }

/* ============================================================
   Reveal animation
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .burger { display: flex; }
  .nav__inner { grid-template-columns: 1fr auto; }

  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { order: -1; aspect-ratio: 16 / 11; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { aspect-ratio: 16 / 11; max-width: 560px; }

  .work__grid,
  .work__grid--trio { grid-template-columns: repeat(2, 1fr); }

  .contacts__grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 600px) {
  .hero__title { font-size: clamp(40px, 11vw, 56px); }
  .hero__cta { gap: 16px; flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__cta .btn--text { width: auto; align-self: flex-start; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 20px; max-width: none; }
  .hero__stats div:last-child { grid-column: 1 / -1; }

  .services__grid { grid-template-columns: 1fr; }
  .services__foot { flex-direction: column; align-items: flex-start; }

  .work__grid,
  .work__grid--trio { grid-template-columns: 1fr; }

  .contacts__row { grid-template-columns: 1fr; gap: 6px; }
  .contacts__cta { flex-direction: column; align-items: stretch; }
  .contacts__cta .btn { width: 100%; }

  .footer { flex-direction: column; align-items: flex-start; }
}
