/* ************************************************************************** */
/* abk.css  -  smarthome landing  -  "antique atelier plate"                   */
/* Matches the www landing design language. Hero + footer only.               */
/* ************************************************************************** */

:root {
  --paper:         #FAEBD7;
  --paper-warm:    #F2DAB6;
  --paper-edge:    rgba(120, 90, 50, 0.10);
  --ink:           #2E2A26;
  --ink-soft:      #5A4F44;
  --muted:         #8A7E6E;
  --charcoal:      #4F4F4F;
  --charcoal-deep: #2E2C2A;
  --gold:          #C9A24B;
  --gold-bright:   #DDB969;
  --gold-pale:     #E8CE91;
  --silver:        #BBB3A4;

  --serif-display: "Didot", "Bodoni 72", "Bodoni Moda", "Playfair Display", "Hoefler Text", "Garamond", "Times New Roman", serif;
  --serif-body:    "Hoefler Text", "Iowan Old Style", "Garamond", "Baskerville", "Georgia", "Times New Roman", serif;
  --sans-meta:     "Optima", "Avenir Next", "Gill Sans", "Trebuchet MS", "Helvetica Neue", sans-serif;

  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;

  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(201, 162, 75, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(75, 55, 30, 0.10), transparent 65%),
    radial-gradient(ellipse 60% 40% at   0% 100%, rgba(75, 55, 30, 0.06), transparent 65%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.14 0 0 0 0 0.08 0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-attachment: fixed, fixed, fixed, fixed;
  background-size: auto, auto, auto, 240px 240px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 220px var(--paper-edge);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 7vh, 5rem);
}

/* ---------- Language switcher ---------- */

.lang-switcher {
  position: absolute;
  top: clamp(1rem, 3vw, 1.75rem);
  right: clamp(1rem, 3vw, 2rem);
  z-index: 20;
  font-family: var(--serif-body);
  font-size: 0.88rem;
  opacity: 0;
  animation: rise 0.9s var(--ease-out) 0.1s forwards;
}

.lang-switcher details {
  position: relative;
}

.lang-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 250, 240, 0.65);
  border: 1px solid rgba(187, 179, 164, 0.65);
  border-radius: 3px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  box-shadow: 0 2px 8px rgba(40, 28, 8, 0.10);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher summary::marker { content: ""; }

.lang-switcher summary:hover,
.lang-switcher summary:focus-visible,
.lang-switcher details[open] > summary {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(40, 28, 8, 0.18);
  background: rgba(255, 250, 240, 0.88);
  outline: none;
}

.lang-flag {
  width: 1.4em;
  height: auto;
  display: inline-block;
  flex-shrink: 0;
  border: 1px solid rgba(187, 179, 164, 0.5);
  border-radius: 1px;
  vertical-align: middle;
}

.lang-name {
  line-height: 1;
}

.lang-chevron {
  width: 0.65em;
  height: 0.5em;
  color: var(--muted);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}

.lang-switcher details[open] .lang-chevron {
  transform: rotate(180deg);
}

.lang-switcher ul {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  min-width: 170px;
  background: rgba(255, 250, 240, 0.96);
  border: 1px solid rgba(187, 179, 164, 0.65);
  border-radius: 3px;
  box-shadow: 0 10px 28px rgba(40, 28, 8, 0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 21;
}

.lang-switcher ul li { margin: 0; }

.lang-switcher ul li + li {
  border-top: 1px solid rgba(187, 179, 164, 0.25);
}

.lang-switcher ul a {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5rem 0.9rem;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease;
}

.lang-switcher ul a:hover,
.lang-switcher ul a:focus-visible {
  background: rgba(221, 185, 105, 0.18);
  outline: none;
}

@media (max-width: 520px) {
  .lang-switcher {
    top: clamp(0.6rem, 2vw, 1rem);
    right: clamp(0.6rem, 2vw, 1rem);
    font-size: 0.82rem;
  }
  .lang-switcher ul { min-width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .lang-switcher,
  .lang-chevron { animation: none; transition: none; }
  .lang-switcher { opacity: 1; }
}

/* ---------- Masthead ---------- */

.masthead {
  text-align: center;
  margin-top: clamp(1rem, 3vh, 2rem);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.1s var(--ease-out) 0.15s forwards;
}

.title {
  margin: 0;
  font-family: var(--serif-body);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.1rem, 6.4vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
  text-rendering: geometricPrecision;
  white-space: nowrap;
}

/* ---------- Business card ---------- */

.business-card {
  max-width: 760px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1.2s var(--ease-out) 0.5s forwards;
}

.card-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  margin: 0 0 clamp(1.2rem, 3vw, 1.8rem);
  font-family: var(--serif-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--gold);
  letter-spacing: 0.02em;
}

.card-label em {
  font-style: italic;
}

.card-label-rule {
  flex: 0 1 90px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.card-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 3vw, 1.8rem);
  align-items: center;
}

.card-qr {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  transition: transform 0.35s var(--ease-out);
}

.card-qr:hover,
.card-qr:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.card-qr img {
  width: clamp(130px, 22vw, 200px);
  height: auto;
  display: block;
}

.card-portrait {
  margin: 0;
  flex-shrink: 0;
}

.card-portrait img {
  width: clamp(130px, 22vw, 200px);
  height: auto;
  display: block;
}

.card-details {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(0.9rem, 2vw, 1.4rem);
  row-gap: clamp(0.4rem, 1vw, 0.6rem);
  margin: 0;
  font-family: var(--serif-body);
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  line-height: 1.35;
  font-variant-numeric: lining-nums;
}

.card-details dt {
  margin: 0;
  font-style: italic;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  align-self: baseline;
}

.card-details dd {
  margin: 0;
  color: var(--ink);
  align-self: baseline;
}

.card-details a {
  color: inherit;
  text-decoration: none;
  font: inherit;
  transition: color 0.35s ease;
}

.card-details a:hover,
.card-details a:focus-visible {
  color: var(--gold-bright);
  outline: none;
}

@media (max-width: 640px) {
  .card-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.4rem;
  }
  .card-details {
    width: 100%;
    max-width: 380px;
    column-gap: 1rem;
  }
  .card-portrait {
    order: -1;
  }
}

/* ---------- Colophon (footer) ---------- */

.colophon {
  text-align: center;
  margin-top: auto;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 1.1s var(--ease-out) 0.7s forwards;
}

.colophon-rule {
  height: 1px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto clamp(0.9rem, 2vw, 1.25rem);
  background: linear-gradient(to right, transparent, var(--silver) 25%, var(--silver) 75%, transparent);
  opacity: 0.7;
}

.colophon-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.55rem, 1.5vw, 0.85rem);
  margin: 0 0 clamp(0.55rem, 1.4vw, 0.8rem);
  font-family: var(--sans-meta);
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  letter-spacing: 0.01em;
  color: var(--muted);
}

.colophon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: inherit;
  text-decoration: none;
  padding: 0.15rem 0.1rem;
  transition: color 0.4s ease;
}

.colophon-link:hover,
.colophon-link:focus-visible {
  color: var(--ink);
  outline: none;
}

.colophon-link:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.colophon-divider {
  display: inline-block;
  width: 1px;
  height: 1.5em;
  margin: 0 clamp(0.35rem, 1.2vw, 0.7rem);
  background: linear-gradient(to bottom, transparent, var(--silver) 25%, var(--silver) 75%, transparent);
  align-self: center;
  opacity: 0.65;
}

.colophon-email-text {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .colophon-email-text { display: none; }
  .colophon-divider { display: none; }
}

.colophon-icon {
  width: 1.4em;
  height: 1.4em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(40, 50, 60, 0.22));
  transition: transform 0.35s var(--ease-out), filter 0.35s ease;
}

.colophon-link:hover .colophon-icon,
.colophon-link:focus-visible .colophon-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 2px 4px rgba(40, 50, 60, 0.32));
}

.colophon-link:active .colophon-icon {
  transform: scale(0.96);
  transition-duration: 0.1s;
}

.colophon-meta {
  margin: 0;
  font-family: var(--sans-meta);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.72rem, 1.4vw, 0.84rem);
  letter-spacing: 0.01em;
  color: var(--muted);
}

.colophon-sep {
  color: var(--gold);
  margin: 0 0.55em;
}

.colophon-date {
  margin: 0.35rem 0 0;
  font-family: var(--sans-meta);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.72rem, 1.4vw, 0.84rem);
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* ---------- Motion ---------- */

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .page {
    gap: clamp(1.8rem, 5vh, 3rem);
    padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
  }
  .masthead {
    margin-top: clamp(2rem, 8vh, 4rem);
  }
  .colophon-meta {
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .masthead,
  .colophon {
    opacity: 1;
    transform: none;
  }
}
