/* =========================================================
   Mehendi By Mimi — portfolio site
   Theme tokens + layout + components
   ========================================================= */

:root {
  --bg: #f8f4ea;
  --bg-alt: #f2ebdd;
  --surface: #fffdf8;
  --dark: #1c3a2e;
  --dark-2: #12291f;
  --accent: #a9834b;
  --accent-soft: #d9c09a;
  --ink: #1b211d;
  --muted: #5c645c;
  --line: rgba(27, 33, 29, 0.15);
  --line-strong: rgba(27, 33, 29, 0.28);
  --on-dark: #f6f1e5;
  --on-dark-muted: rgba(246, 241, 229, 0.75);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --heading: var(--serif);
  --radius: 3px;
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --header-h: 78px;
  --shadow: 0 24px 60px -30px rgba(20, 35, 27, 0.45);
}

html[lang="bn"] {
  --heading: "Hind Siliguri", "Noto Sans Bengali", var(--sans);
  --serif: "Hind Siliguri", "Noto Sans Bengali", var(--sans);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.04;
  text-wrap: balance;
}

p {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  background: var(--dark);
  color: var(--on-dark);
  padding: 12px 18px;
  border-radius: 2px;
  font-size: 0.85rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 97%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: auto;
}

.brand-logo {
  height: 46px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--heading);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.005em;
}

.brand-tag {
  font-size: 0.6rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}

.primary-nav a {
  position: relative;
  font-size: 0.79rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 6px 0;
  transition: color 0.2s ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active {
  color: var(--accent);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.lang-switch a {
  padding: 2px 1px;
  transition: color 0.2s ease;
}

.lang-switch a:hover {
  color: var(--accent);
}

.lang-switch .is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  padding: 11px 9px;
  flex-direction: column;
  justify-content: space-between;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------- Buttons & links ---------- */

.btn {
  --btn-bg: var(--dark);
  --btn-fg: var(--on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 0.95rem 1.55rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.72rem 1.1rem;
  font-size: 0.68rem;
}

.btn-block {
  width: 100%;
}

.btn-dark {
  background: var(--dark);
  color: var(--on-dark);
}

.btn-dark:hover {
  background: var(--dark-2);
}

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

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

.btn-light {
  background: var(--bg);
  color: var(--dark);
}

.btn-light:hover {
  background: #fff;
}

.btn-outline-light {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(246, 241, 229, 0.38);
}

.btn-outline-light:hover {
  border-color: var(--on-dark);
  background: rgba(246, 241, 229, 0.08);
}

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-outline-dark:hover {
  border-color: var(--ink);
}

.btn-arrow {
  transition: transform 0.25s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--accent);
  transition: color 0.25s ease, gap 0.25s ease;
}

.link-arrow span {
  transition: transform 0.25s ease;
}

.link-arrow:hover {
  color: var(--accent);
}

.link-arrow:hover span {
  transform: translateX(3px);
}

.link-arrow.small {
  font-size: 0.74rem;
}

/* ---------- Shared type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

h1 {
  font-size: clamp(2.65rem, 5.1vw, 4.5rem);
  line-height: 1.02;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.95rem, 3.5vw, 2.95rem);
  line-height: 1.06;
}

.prose p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.82;
  margin-bottom: 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.section {
  padding: clamp(3.5rem, 7vw, 6.25rem) 0;
  position: relative;
}

.section-head {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.split-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.head-intro p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 48ch;
}

.head-intro .link-arrow {
  margin-top: 0.25rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5.5vw, 5rem);
  align-items: center;
}

.split-copy h2 {
  margin-bottom: 1.4rem;
  max-width: 22ch;
}

.split-copy .prose {
  max-width: 48ch;
  margin-bottom: 1.6rem;
}

.media-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.media-frame:hover img {
  transform: scale(1.025);
}

/* ---------- Decorative leaves ---------- */

.deco {
  position: absolute;
  width: clamp(90px, 11vw, 150px);
  height: auto;
  color: var(--accent);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

.deco-left {
  left: -30px;
  top: 40px;
}

.deco-right {
  right: -10px;
  bottom: 30px;
  transform: rotate(180deg);
  opacity: 0.22;
}

.hero .deco-left {
  top: 90px;
  left: max(-60px, calc(50vw - 660px));
}

.hero .deco-right {
  top: 70px;
  bottom: auto;
  right: max(-40px, calc(50vw - 640px));
  transform: rotate(160deg);
}

.business .deco-right,
.achievements .deco-left,
.contact-card .deco-right {
  position: absolute;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% 10%, color-mix(in srgb, var(--bg-alt) 75%, transparent), transparent 60%),
    var(--bg);
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 0 0 1.6rem;
  max-width: 20ch;
  animation: hero-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.02rem);
  line-height: 1.8;
  max-width: 47ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.1rem;
}

.hero-figure {
  position: relative;
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 470px;
}

.arch {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 6px 6px / 36% 36% 6px 6px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-figure figcaption {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--heading);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.arch-line {
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--accent);
  opacity: 0.45;
  border-radius: 50% 50% 6px 6px / 36% 36% 6px 6px;
  pointer-events: none;
  display: none;
}

/* ---------- About ---------- */

.about {
  background: var(--bg);
}

.split-media-left .media-frame {
  aspect-ratio: 4 / 3.4;
}

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

.business {
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}

.business .eyebrow {
  color: var(--accent-soft);
}

.business .prose p {
  color: var(--on-dark-muted);
}

.business .media-frame {
  aspect-ratio: 5 / 4;
  background: var(--dark-2);
  border: 1px solid rgba(246, 241, 229, 0.14);
}

.business .link-arrow {
  color: var(--on-dark);
  border-bottom-color: var(--accent-soft);
}

.business .link-arrow:hover {
  color: var(--accent-soft);
}

.business .deco {
  color: var(--accent-soft);
  opacity: 0.18;
  right: -30px;
  bottom: -40px;
}

/* ---------- Training ---------- */

.training {
  background: var(--bg);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -30px rgba(20, 35, 27, 0.45);
  border-color: var(--line-strong);
}

.card-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: clamp(1.1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.card-body h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.45rem);
  line-height: 1.15;
}

.card-body p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  flex: 1;
}

.card-body .link-arrow {
  align-self: flex-start;
  margin-top: 0.3rem;
}

/* ---------- Achievements ---------- */

.achievements {
  background: var(--bg-alt);
  overflow: hidden;
}

.achievements-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.55fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.achievements-intro h2 {
  max-width: 18ch;
}

.achievements-intro .lead {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.75;
  max-width: 40ch;
}

.achievement-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.achievement {
  position: relative;
  padding: 0 1.4rem;
  text-align: center;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.achievement:first-child {
  border-left: 0;
}

.achievement-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  margin-bottom: 1.1rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}

.achievement-icon svg {
  width: 26px;
  height: 26px;
}

.achievement h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.achievement p {
  font-size: 0.81rem;
  line-height: 1.65;
  color: var(--muted);
}

.achievement-link {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.achievement-link:hover {
  transform: translateX(3px);
}

/* ---------- Portfolio ---------- */

.portfolio {
  background: var(--bg);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.7rem, 1.4vw, 1.15rem);
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
  text-align: left;
}

.gallery-media,
.gallery-media img {
  width: 100%;
  height: 100%;
}

.gallery-media img {
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.5s ease;
}

.gallery-item:hover .gallery-media img {
  transform: scale(1.045);
  filter: brightness(0.92);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 2.5rem 1.2rem 1.2rem;
  background: linear-gradient(to top, rgba(12, 24, 18, 0.82), rgba(12, 24, 18, 0.35) 55%, transparent);
  color: #f8f4ea;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  opacity: 1;
  transform: none;
}

.gallery-tag {
  font-size: 0.6rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.gallery-title {
  font-family: var(--heading);
  font-size: 1.35rem;
  line-height: 1.15;
}

/* ---------- Media ---------- */

.media {
  background: var(--bg-alt);
}

.media-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.4rem);
}

.media-item {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.media-item:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 44px -30px rgba(20, 35, 27, 0.4);
}

.media-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.media-item:hover .media-thumb img {
  transform: scale(1.04);
}

.media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35rem 0.65rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
}

.media-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.2rem 1.25rem 1.4rem;
  flex: 1;
}

.media-meta {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.media-title {
  font-family: var(--heading);
  font-size: 1.35rem;
  line-height: 1.15;
}

.media-text {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
  flex: 1;
}

.media-link {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  gap: 0.4em;
  align-items: center;
}

.media-link span {
  transition: transform 0.25s ease;
}

.media-item:hover .media-link span {
  transform: translateX(3px);
}

.media-cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--bg);
}

.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.contact-card .eyebrow {
  color: var(--accent-soft);
}

.contact-card h2 {
  max-width: 19ch;
  margin-bottom: 1.2rem;
}

.contact-lead {
  color: var(--on-dark-muted);
  font-size: 0.93rem;
  line-height: 1.75;
  max-width: 42ch;
}

.contact-details {
  list-style: none;
  margin: 1.8rem 0;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(246, 241, 229, 0.16);
  border-bottom: 1px solid rgba(246, 241, 229, 0.16);
  display: grid;
  gap: 0.85rem;
}

.contact-details li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.9rem;
}

.contact-details .label {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.contact-details a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-details a:hover {
  border-bottom-color: var(--accent-soft);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-actions .btn svg {
  flex-shrink: 0;
}

.socials {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: inherit;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.social svg {
  width: 17px;
  height: 17px;
}

.social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.contact-socials {
  margin-top: 1.6rem;
}

.contact-card .social {
  border-color: rgba(246, 241, 229, 0.28);
  color: var(--on-dark);
}

.contact-card .social:hover {
  background: var(--accent-soft);
  color: var(--dark);
  border-color: var(--accent-soft);
}

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(246, 241, 229, 0.16);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  align-self: start;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field > span {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(246, 241, 229, 0.22);
  border-radius: 2px;
  color: var(--on-dark);
  font-size: 0.88rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-soft) 50%),
    linear-gradient(135deg, var(--accent-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field select option {
  color: var(--ink);
  background: #fff;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(246, 241, 229, 0.4);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.08);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #d98b7a;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn {
  margin-top: 0.3rem;
}

.form-note {
  color: rgba(246, 241, 229, 0.55);
  font-size: 0.71rem;
  line-height: 1.6;
}

.form-status {
  display: none;
  font-size: 0.8rem;
  line-height: 1.6;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.07);
  border-left: 2px solid var(--accent-soft);
  border-radius: 2px;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  border-left-color: #d98b7a;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 2.5rem;
}

.footer-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
  max-width: 36ch;
}

.footer-heading {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav a {
  font-size: 0.84rem;
  color: var(--muted);
  transition: color 0.2s ease;
  width: fit-content;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-connect {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-email {
  font-family: var(--heading);
  font-size: 1.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
  width: fit-content;
}

.footer-email:hover {
  color: var(--accent);
}

.footer-loc {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.footer-admin {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-admin:hover {
  color: var(--accent);
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(94vw, 960px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(8, 16, 11, 0.78);
  backdrop-filter: blur(4px);
}

.lightbox-inner {
  position: relative;
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: var(--dark-2);
}

.lightbox figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.4rem;
  border-top: 1px solid var(--line);
}

.lightbox-tag {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.lightbox figcaption strong {
  font-family: var(--heading);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
}

.lightbox figcaption span:last-child {
  color: var(--muted);
  font-size: 0.85rem;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(12, 24, 18, 0.65);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: var(--dark);
}

.lightbox-nav {
  display: flex;
  justify-content: space-between;
  padding: 0 1rem 1rem;
}

.lightbox-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.4rem;
}

.lightbox-nav button:hover {
  color: var(--ink);
}

/* ---------- Profile / print page ---------- */

.is-profile {
  background: #e8e3d7;
}

.profile-wrap {
  max-width: 960px;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.profile-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.profile-sheet {
  background: #fffdf8;
  padding: clamp(1.6rem, 4vw, 3.25rem);
  box-shadow: 0 30px 80px -50px rgba(20, 35, 27, 0.6);
}

.profile-head {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--dark);
  margin-bottom: 2rem;
}

.profile-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.3rem;
}

.profile-tag {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.profile-contact {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.profile-portrait {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 60px 60px 3px 3px;
  flex-shrink: 0;
}

.profile-sheet section {
  margin-bottom: 1.8rem;
}

.profile-sheet h2 {
  font-size: 1.15rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.profile-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.profile-grid figure {
  margin: 0;
}

.profile-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.profile-grid figcaption {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.profile-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.notfound {
  text-align: center;
  padding-block: 6rem;
}

.notfound h1 {
  margin-bottom: 1rem;
}

.notfound p {
  color: var(--muted);
  margin-bottom: 1.8rem;
}

/* ---------- Themes ---------- */

[data-theme="modern"] {
  --bg: #ffffff;
  --bg-alt: #f2f4f0;
  --surface: #ffffff;
  --dark: #0e3b2a;
  --dark-2: #082a1d;
  --accent: #b98a3e;
  --accent-soft: #d8b878;
  --ink: #101512;
  --muted: #5a655e;
  --line: rgba(16, 21, 18, 0.12);
  --line-strong: rgba(16, 21, 18, 0.26);
  --heading: var(--sans);
  --radius: 0px;
  --shadow: 0 30px 70px -40px rgba(10, 30, 20, 0.35);
}

[data-theme="modern"] h1,
[data-theme="modern"] h2 {
  letter-spacing: -0.03em;
  font-weight: 500;
}

[data-theme="modern"] .hero {
  background: var(--bg);
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

[data-theme="modern"] .hero-copy h1 {
  max-width: 12ch;
}

[data-theme="modern"] .deco,
[data-theme="modern"] .arch-line {
  display: none;
}

[data-theme="modern"] .arch {
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

[data-theme="modern"] .hero-figure figcaption {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

[data-theme="modern"] .eyebrow::before {
  display: none;
}

[data-theme="modern"] .eyebrow {
  letter-spacing: 0.24em;
}

[data-theme="modern"] .card,
[data-theme="modern"] .media-item,
[data-theme="modern"] .contact-form,
[data-theme="modern"] .contact-card,
[data-theme="modern"] .btn,
[data-theme="modern"] .gallery-item {
  border-radius: 0;
}

[data-theme="modern"] .achievement-icon {
  border-radius: 0;
  background: transparent;
}

[data-theme="modern"] .site-footer {
  background: var(--bg-alt);
}

[data-theme="modern"] .split-copy h2 {
  max-width: 16ch;
}

[data-theme="artistic"] {
  --bg: #fbf1de;
  --bg-alt: #f3e3c9;
  --surface: #fdf7ec;
  --dark: #59291f;
  --dark-2: #431c15;
  --accent: #b06a37;
  --accent-soft: #ddb98c;
  --ink: #3b2722;
  --muted: #74594c;
  --line: rgba(90, 43, 34, 0.18);
  --line-strong: rgba(90, 43, 34, 0.34);
  --on-dark: #fbefdc;
  --on-dark-muted: rgba(251, 239, 220, 0.76);
  --radius: 2px;
}

[data-theme="artistic"] body {
  background-image: radial-gradient(rgba(176, 106, 55, 0.11) 1px, transparent 1.4px);
  background-size: 26px 26px;
}

[data-theme="artistic"] .hero {
  background:
    radial-gradient(100% 80% at 85% 15%, rgba(221, 185, 140, 0.4), transparent 65%),
    var(--bg);
}

[data-theme="artistic"] .eyebrow {
  letter-spacing: 0.26em;
}

[data-theme="artistic"] .eyebrow::before {
  width: 34px;
  background: var(--accent);
}

[data-theme="artistic"] h1 {
  font-style: italic;
  font-weight: 500;
}

[data-theme="artistic"] .arch {
  border: 1px solid var(--accent);
  border-radius: 50% 50% 4px 4px / 38% 38% 4px 4px;
}

[data-theme="artistic"] .arch-line {
  display: block;
  inset: 10px -10px -10px 10px;
  border-color: var(--accent);
  opacity: 0.6;
}

[data-theme="artistic"] .card,
[data-theme="artistic"] .media-item {
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 5px var(--line);
}

[data-theme="artistic"] .contact-card {
  border: 1px solid var(--accent);
  box-shadow: inset 0 0 0 8px var(--bg), inset 0 0 0 9px var(--line);
}

[data-theme="artistic"] .achievement-icon {
  border-color: var(--accent);
}

[data-theme="artistic"] .business {
  background-image: radial-gradient(rgba(251, 239, 220, 0.09) 1px, transparent 1.4px);
  background-size: 22px 22px;
}

/* ---------- Reveal motion ---------- */

@keyframes reveal-in {
  from {
    transform: translateY(28px);
  }
  to {
    transform: none;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 2% entry 45%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

@media (max-width: 1080px) {
  .header-inner {
    gap: 20px;
  }

  .brand-tag {
    letter-spacing: 0.13em;
  }

  .primary-nav {
    gap: 15px;
  }

  .header-tools {
    gap: 12px;
  }

  .achievement-list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }

  .achievement:nth-child(3) {
    border-left: 0;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .achievements-intro h2 {
    max-width: 20ch;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 90;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem var(--gutter) 1.4rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(20, 35, 27, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  body.nav-open .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }

  .primary-nav a::after {
    display: none;
  }

  .header-tools {
    margin-left: 0;
  }

  .header-cta {
    display: none;
  }

  .brand {
    margin-right: auto;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-copy h1 {
    max-width: 16ch;
  }

  .hero-figure {
    justify-self: center;
    max-width: 400px;
    width: 100%;
  }

  .hero .deco {
    display: none;
  }

  .split,
  .contact-card,
  .split-head {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 2.2rem;
  }

  .split-media-right .media-frame {
    order: -1;
  }

  .split-copy h2 {
    max-width: 22ch;
  }

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

  .card-grid > :last-child:nth-child(odd) {
    grid-column: span 2;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(2.15rem, 10vw, 2.9rem);
  }

  h2 {
    font-size: clamp(1.75rem, 7.4vw, 2.3rem);
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .brand-tag {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
  }

  .brand-logo {
    height: 38px;
  }

  .header-tools {
    gap: 8px;
  }

  .lang-switch {
    font-size: 0.62rem;
    gap: 4px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    padding: 0.85rem 1.1rem;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .hero-figure {
    max-width: 330px;
  }

  .hero-sub {
    font-size: 0.92rem;
  }

  .split-head {
    gap: 1.1rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .card-grid,
  .media-list {
    grid-template-columns: 1fr;
  }

  .card-grid > :last-child:nth-child(odd) {
    grid-column: auto;
  }

  .gallery {
    gap: 0.55rem;
  }

  .gallery-item {
    aspect-ratio: 3 / 4;
  }

  .gallery-caption {
    opacity: 1;
    transform: none;
    padding: 1.8rem 0.8rem 0.8rem;
  }

  .gallery-title {
    font-size: 1.1rem;
  }

  .achievement-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem 0;
  }

  .achievement {
    padding: 0 0.8rem;
  }

  .achievement h3 {
    font-size: 1rem;
  }

  .achievement p {
    font-size: 0.76rem;
  }

  .achievement-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.8rem;
  }

  .achievement-icon svg {
    width: 22px;
    height: 22px;
  }

  .contact-card {
    padding: 1.5rem 1.2rem;
    gap: 2rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .contact-details li {
    grid-template-columns: 70px 1fr;
    gap: 0.6rem;
  }

  .contact-actions .btn {
    flex: 1 1 100%;
  }

  .media-cta {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .profile-head {
    flex-direction: column-reverse;
  }

  .profile-portrait {
    width: 90px;
    height: 112px;
  }

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

  .lightbox img {
    max-height: 60vh;
  }

  .lightbox figcaption strong {
    font-size: 1.2rem;
  }
}

/* ---------- Print ---------- */

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  .site-header,
  .site-footer,
  .profile-toolbar,
  .skip-link,
  .lightbox {
    display: none !important;
  }

  .reveal {
    animation: none !important;
    transform: none !important;
  }

  body.is-profile {
    background: #fff;
  }

  .profile-wrap {
    max-width: none;
    padding: 0;
  }

  .profile-sheet {
    box-shadow: none;
    padding: 0;
  }

  .profile-sheet section {
    break-inside: avoid;
  }

  .profile-grid img {
    aspect-ratio: 1 / 1;
  }

  .profile-sheet h2 {
    color: #000;
  }
}

/* ---------- Modern theme: all-white surfaces ---------- */

[data-theme="modern"] .business {
  background: var(--bg);
  color: var(--ink);
}

[data-theme="modern"] .business .eyebrow {
  color: var(--accent);
}

[data-theme="modern"] .business .prose p {
  color: var(--muted);
}

[data-theme="modern"] .business .link-arrow {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

[data-theme="modern"] .business .link-arrow:hover {
  color: var(--accent);
}

[data-theme="modern"] .business .media-frame {
  background: var(--bg-alt);
  border-color: var(--line);
}

[data-theme="modern"] .business .deco {
  color: var(--accent);
  opacity: 0.12;
}

[data-theme="modern"] .contact-card {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--line);
}

[data-theme="modern"] .contact-card .eyebrow,
[data-theme="modern"] .contact-details .label,
[data-theme="modern"] .contact-form .field > span {
  color: var(--accent);
}

[data-theme="modern"] .contact-lead {
  color: var(--muted);
}

[data-theme="modern"] .contact-details {
  border-color: var(--line);
}

[data-theme="modern"] .contact-details a:hover {
  border-bottom-color: var(--accent);
}

[data-theme="modern"] .contact-card .social {
  border-color: var(--line-strong);
  color: var(--ink);
}

[data-theme="modern"] .contact-card .social:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

[data-theme="modern"] .contact-card .btn-light {
  background: var(--dark);
  color: var(--on-dark);
}

[data-theme="modern"] .contact-card .btn-outline-light {
  color: var(--ink);
  border-color: var(--line-strong);
}

[data-theme="modern"] .contact-card .btn-outline-light:hover {
  color: var(--accent);
  border-color: var(--accent);
}

[data-theme="modern"] .contact-form {
  background: #ffffff;
  border-color: var(--line);
}

[data-theme="modern"] .contact-form .field input,
[data-theme="modern"] .contact-form .field select,
[data-theme="modern"] .contact-form .field textarea {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--ink);
}

[data-theme="modern"] .contact-form .field input::placeholder,
[data-theme="modern"] .contact-form .field textarea::placeholder {
  color: var(--muted);
}

[data-theme="modern"] .contact-form .field input:focus,
[data-theme="modern"] .contact-form .field select:focus,
[data-theme="modern"] .contact-form .field textarea:focus {
  background: #ffffff;
  border-color: var(--accent);
}

[data-theme="modern"] .contact-form .form-note {
  color: var(--muted);
}

[data-theme="modern"] .contact-form .form-status {
  background: var(--bg-alt);
  border-left-color: var(--accent);
}

[data-theme="modern"] .is-profile {
  background: var(--bg-alt);
}

[data-theme="modern"] .profile-sheet {
  background: #ffffff;
}
