/* PHORM — phorm.ro. Temă deschisă, „soft luxury”: os #f0ede4, espresso, lut. */
:root {
  --bg: #f0ede4;          /* os / ivory — baza cerută */
  --bg-soft: #f6f4ee;     /* cartonaș mai luminos */
  --stone: #e5e0d4;       /* piatră — secțiuni alternante */
  --ink: #2a2723;         /* espresso — text și butoane */
  --ink-2: #4d4842;
  --mute: #8a837a;
  --line: rgba(42, 39, 35, 0.12);
  --clay: #6e7360;        /* oliv — accent (variantă aleasă de Andrei; lut era #9c5b3f) */
  --espresso: #26231f;    /* cartonașul Phorm Lab */
  --f-sans: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --sec: clamp(80px, 10vw, 152px);
  --r-lg: 22px;
  --r-md: 16px;
  --ease: cubic-bezier(0.22, 0.7, 0.12, 1);
  --shadow: 0 1px 2px rgba(42, 39, 35, 0.04), 0 12px 32px -12px rgba(42, 39, 35, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 300 clamp(16px, 1.05vw, 17.5px)/1.65 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
::selection { background: var(--clay); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--clay); outline-offset: 4px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec) 0; position: relative; }

/* ---------- tipografie ---------- */
.hero-title, .title, .statement, h3 {
  font-family: var(--f-sans);
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.title { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.06; letter-spacing: -0.025em; max-width: 16ch; }
.title em { color: var(--clay); font-size: 1.08em; }
.statement { font-size: clamp(24px, 2.7vw, 40px); line-height: 1.25; letter-spacing: -0.02em; max-width: 30ch; font-weight: 300; }
.statement em { color: var(--clay); }
h3 { font-size: clamp(17px, 1.25vw, 19px); font-weight: 500; letter-spacing: -0.01em; }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute); margin: 0 0 24px;
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); }
.lead { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.5; max-width: 40ch; }

/* ---------- butoane soft luxury ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--bg); --i-bg: var(--bg); --i-fg: var(--ink);
  display: inline-flex; align-items: center; gap: 18px;
  height: 56px; padding: 0 8px 0 28px; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); border: 1px solid transparent;
  font: 400 15px/1 var(--f-sans); letter-spacing: -0.005em; white-space: nowrap;
  cursor: pointer;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.btn .ic {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--i-bg); color: var(--i-fg); flex: none;
  transition: transform 0.5s var(--ease), background 0.45s var(--ease), color 0.45s var(--ease);
}
.btn .ic svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.btn:hover { box-shadow: 0 14px 30px -14px rgba(42, 39, 35, 0.45); transform: translateY(-1px); }
.btn:hover .ic { background: var(--clay); color: var(--bg); }
.btn:hover .ic svg { transform: translateX(2px) rotate(-45deg); }
.btn:active { transform: translateY(0); }
.btn-dark { --b-bg: var(--ink); --b-fg: var(--bg); --i-bg: var(--bg); --i-fg: var(--ink); }
.btn-light { --b-bg: var(--bg); --b-fg: var(--ink); --i-bg: var(--ink); --i-fg: var(--bg); }
.btn-glass {
  --b-bg: rgba(240, 237, 228, 0.12); --b-fg: #fff; --i-bg: rgba(240, 237, 228, 0.9); --i-fg: var(--ink);
  border-color: rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn-glass:hover { --b-bg: rgba(240, 237, 228, 0.22); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink); --i-bg: var(--ink); --i-fg: var(--bg); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(42, 39, 35, 0.3); box-shadow: none; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 14px var(--gutter); transition: padding 0.5s var(--ease); }
.header-bar {
  max-width: calc(var(--wrap) - 2 * var(--gutter) + 40px); margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  height: 60px; padding: 0 12px 0 24px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.brand { position: relative; display: block; height: 16px; }
.brand img { height: 16px; width: auto; transition: opacity 0.4s var(--ease); }
.brand .logo-dark { position: absolute; inset: 0; opacity: 0; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font: 400 14px/1 var(--f-sans); color: #fff; padding: 11px 14px; border-radius: 999px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.nav a:hover { background: rgba(255, 255, 255, 0.14); }
.nav .nav-cta { background: var(--bg); color: var(--ink); padding: 11px 18px; margin-left: 6px; }
.nav .nav-cta:hover { background: #fff; }
.lang { display: flex; gap: 2px; font: 500 12px/1 var(--f-sans); letter-spacing: 0.06em; }
.lang a { padding: 8px 9px; border-radius: 999px; color: rgba(255, 255, 255, 0.6); transition: color 0.3s, background 0.3s; }
.lang a[aria-current] { color: #fff; background: rgba(255, 255, 255, 0.14); }
.menu-btn { display: none; }

.site-header.solid .header-bar {
  background: rgba(246, 244, 238, 0.82); border-color: var(--line); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
}
.site-header.solid .logo-light { opacity: 0; }
.site-header.solid .logo-dark { opacity: 1; }
.site-header.solid .nav a { color: var(--ink); }
.site-header.solid .nav a:hover { background: rgba(42, 39, 35, 0.06); }
.site-header.solid .nav .nav-cta { background: var(--ink); color: var(--bg); }
.site-header.solid .lang a { color: var(--mute); }
.site-header.solid .lang a[aria-current] { color: var(--ink); background: rgba(42, 39, 35, 0.07); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; background: #3a3631; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(30, 27, 24, 0.42) 0%, rgba(30, 27, 24, 0) 24%),
  linear-gradient(0deg, rgba(30, 27, 24, 0.72) 0%, rgba(30, 27, 24, 0.22) 45%, rgba(30, 27, 24, 0) 70%); }
.hero-inner { position: relative; padding-bottom: clamp(56px, 10vh, 112px); color: #fff; }
.eyebrow { font: 500 12px/1 var(--f-sans); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); margin: 0 0 22px; }
.hero-title { color: #fff; font-size: clamp(36px, 5.2vw, 78px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 400; max-width: 13ch; }
.hero-title em { font-size: 1.06em; color: #f0ede4; }
.hero-sub { margin: 22px 0 0; max-width: 42ch; font-size: clamp(16px, 1.2vw, 19px); color: rgba(255, 255, 255, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- about ---------- */
.about .statement { margin-bottom: clamp(56px, 7vw, 104px); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 104px); align-items: end; }
.about-image { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-copy > p { margin: 0 0 36px; max-width: 44ch; }
.caps, .lab-steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.caps li, .lab-steps li { display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: clamp(16px, 1.15vw, 18px); font-weight: 400; }
.cap-n { font: 500 12px/1 var(--f-sans); letter-spacing: 0.08em; color: var(--clay); min-width: 22px; }

/* ---------- why ---------- */
.why { background: var(--stone); }
.section-head { margin-bottom: clamp(44px, 5vw, 72px); }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.head-note { margin: 0; max-width: 34ch; color: var(--ink-2); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.5vw, 20px); }
.why-card { background: var(--bg-soft); border-radius: var(--r-lg); padding: clamp(26px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 14px; min-height: 280px; border: 1px solid rgba(255, 255, 255, 0.6); }
.why-n { font-family: var(--f-serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--clay); padding-bottom: 48px; }
.why-card p { margin: 0; font-size: 16px; }
.why-image { margin-top: clamp(12px, 1.5vw, 20px); border-radius: var(--r-lg); overflow: hidden; height: clamp(260px, 42vw, 560px); }
.why-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

/* ---------- projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 24px); }
.project { display: block; }
.project-media { overflow: hidden; border-radius: var(--r-lg); background: var(--stone); aspect-ratio: 4 / 3; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.project:hover .project-media img { transform: scale(1.035); }
.project-meta { padding: 18px 4px 0; }
.project-meta .loc { margin: 0 0 6px; font: 500 12px/1.3 var(--f-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.project-meta h3 { margin-bottom: 6px; font-size: clamp(18px, 1.45vw, 22px); }
.project-meta p:last-child { margin: 0; font-size: 15px; max-width: 46ch; }
.p-a { grid-column: span 4; }
.p-a .project-media { aspect-ratio: 16 / 10; }
.p-b { grid-column: span 2; }
.p-b .project-media { aspect-ratio: auto; height: calc(100% - 128px); min-height: 300px; }
.p-c, .p-d { grid-column: span 3; }
.p-e, .p-f, .p-g { grid-column: span 2; }
.p-e .project-media, .p-f .project-media, .p-g .project-media { aspect-ratio: 4 / 5; }

/* ---------- collection ---------- */
.collection { background: var(--stone); }
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.product { display: block; background: var(--bg-soft); border-radius: var(--r-lg); padding: 8px 8px 0; transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease); }
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: var(--stone); }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); }
.p-alt { opacity: 0; }
.product:hover .p-alt, .product:focus-visible .p-alt { opacity: 1; }
.product-meta { padding: 16px 10px 18px; }
.product-meta h3 { letter-spacing: 0.04em; }
.product-meta h3 span { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--clay); letter-spacing: 0; font-size: 1.1em; }
.product-meta p { margin: 4px 0 0; font-size: 14px; color: var(--mute); }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 112px); align-items: start; }
.process .section-head { position: sticky; top: 120px; }
.process .title { margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.step-n { font-family: var(--f-serif); font-style: italic; font-size: clamp(36px, 3.2vw, 48px); line-height: 1; color: var(--clay); }
.steps h3 { margin-bottom: 8px; font-size: clamp(19px, 1.5vw, 23px); }
.steps p { margin: 0; max-width: 44ch; }

/* ---------- lab ---------- */
.lab { padding-top: 0; }
.lab-card {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  background: var(--espresso); color: #d9d4ca; border-radius: 28px; padding: clamp(28px, 5vw, 72px);
  position: relative; overflow: hidden;
}
.lab-card::before { content: ""; position: absolute; right: -20%; top: -40%; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(110, 115, 96, 0.28), transparent); pointer-events: none; }
.lab .label { color: #a69e92; }
.lab-logo { width: min(320px, 80%); height: auto; margin: 0 0 24px; }
.lab .lead { color: #e9e5dc; }
.lab-steps { margin: 30px 0 40px; border-color: rgba(240, 237, 228, 0.14); }
.lab-steps li { color: #f0ede4; border-color: rgba(240, 237, 228, 0.14); }
.lab-image { position: relative; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); border: 1px solid rgba(240, 237, 228, 0.1); }
.lab-image img { width: 100%; height: auto; }

/* ---------- faq ---------- */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 112px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: clamp(17px, 1.35vw, 20px); color: var(--ink); font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 18px; font-weight: 300; color: var(--ink);
  transition: transform 0.45s var(--ease), background 0.35s, color 0.35s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--bg); }
.faq details p { margin: 0 0 26px; max-width: 58ch; }

/* ---------- contact ---------- */
.contact { padding-top: 0; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); background: var(--stone); border-radius: 28px; padding: clamp(28px, 5vw, 72px); }
.contact-copy .title { margin-bottom: 20px; }
.contact-copy > p { margin: 0; max-width: 40ch; }
.contact-list { margin: 44px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.contact-list dt { font: 500 11px/1 var(--f-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.contact-list dd { margin: 0; color: var(--ink); font-size: clamp(16px, 1.2vw, 18px); font-weight: 400; }
.contact-list a { background: linear-gradient(var(--clay), var(--clay)) 0 100% / 0 1px no-repeat; transition: background-size 0.45s var(--ease); }
.contact-list a:hover { background-size: 100% 1px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; background: var(--bg-soft); border-radius: var(--r-lg); padding: clamp(18px, 2vw, 28px); }
.contact-form label { display: grid; gap: 6px; background: #fff; border-radius: 14px; padding: 12px 16px 8px; border: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.contact-form label:focus-within { border-color: rgba(110, 115, 96, 0.5); box-shadow: 0 0 0 4px rgba(110, 115, 96, 0.1); }
.contact-form label span { font: 500 11px/1 var(--f-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: 400 16px/1.4 var(--f-sans); color: var(--ink);
  background: transparent; border: 0; padding: 2px 0 6px; border-radius: 0; outline: none;
}
.contact-form select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='%238a837a'/%3E%3C/svg%3E") no-repeat right 2px center; }
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form ::placeholder { color: #b3ada4; }
.contact-form button { justify-content: space-between; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.site-footer { padding: 24px 0 40px; font-size: 14px; color: var(--mute); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; }
.footer-logo { height: 15px; width: auto; }
.footer-grid p { margin: 0; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-grid nav a { color: var(--ink); padding: 8px 12px; border-radius: 999px; transition: background 0.3s; }
.footer-grid nav a:hover { background: var(--stone); }
.footer-grid .fine { grid-column: 1 / -1; font-size: 13px; padding-top: 22px; border-top: 1px solid var(--line); }


/* ---------- apariție la scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .nav a { padding: 10px 10px; }
}
@media (max-width: 900px) {
  .header-bar { gap: 12px; padding: 0 6px 0 20px; }
  .menu-btn { display: grid; gap: 6px; width: 46px; height: 46px; place-content: center; background: rgba(255, 255, 255, 0.14); border: 0; border-radius: 50%; cursor: pointer; position: relative; z-index: 2; }
  .menu-btn span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform 0.45s var(--ease), background 0.3s; }
  .solid .menu-btn, .menu-open .menu-btn { background: var(--ink); }
  .solid .menu-btn span, .menu-open .menu-btn span { background: var(--bg); }
  .menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .lang { margin-left: auto; position: relative; z-index: 2; }
  .brand { z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; margin: 0;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px;
    padding: 110px var(--gutter) 48px; background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s;
  }
  .nav a, .site-header.solid .nav a { color: var(--ink); font-size: 32px; letter-spacing: -0.02em; padding: 8px 0; }
  .nav a:hover { background: none; }
  .nav .nav-cta, .site-header.solid .nav .nav-cta { font-size: 16px; letter-spacing: 0; background: var(--ink); color: var(--bg); padding: 16px 24px; margin: 20px 0 0; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .logo-light { opacity: 0; }
  .menu-open .logo-dark { opacity: 1; }
  .menu-open .lang a { color: var(--mute); }
  .menu-open .lang a[aria-current] { color: var(--ink); background: rgba(42, 39, 35, 0.07); }

  .about-grid, .process-grid, .faq-grid, .lab-card, .contact-card { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { min-height: 0; }
  .why-n { padding-bottom: 16px; }
  .process .section-head { position: static; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .p-a, .p-c, .p-d { grid-column: 1 / -1; }
  .p-b, .p-e, .p-f, .p-g { grid-column: span 1; }
  .p-b .project-media { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
}
@media (max-width: 640px) {
  .site-header { padding: 10px 10px; }
  .products { grid-template-columns: 1fr 1fr; }
  .products .product:last-child { grid-column: 1 / -1; }
  .products .product:last-child .product-media { aspect-ratio: 4 / 3; }
  .project-grid { grid-template-columns: 1fr; }
  .p-b, .p-e, .p-f, .p-g { grid-column: 1 / -1; }
  .p-e .project-media, .p-f .project-media, .p-g .project-media, .p-b .project-media { aspect-ratio: 4 / 3; }
  .steps li { grid-template-columns: 56px 1fr; }
  .contact-form, .contact-list { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; }
  .lab-card, .contact-card { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ================= pagini interioare (collection, produs) ================= */
.sub main { padding-top: 96px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--mute); margin-bottom: 28px; }
.crumbs a { color: var(--ink-2); transition: color 0.3s; }
.crumbs a:hover { color: var(--clay); }
.crumbs [aria-current] { color: var(--ink); }
.page-head { padding: clamp(48px, 7vw, 96px) 0 0; }
.page-title { font-size: clamp(34px, 4.2vw, 62px); max-width: 16ch; margin-bottom: 22px; }
.page-head .lead { max-width: 52ch; }
.collection-list { padding-top: clamp(48px, 6vw, 80px); }
.products-lg { grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.products-lg .product-media { aspect-ratio: 4 / 5; }
.products-lg .product-meta { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 16px; padding: 18px 12px 20px; }
.products-lg .product-meta h3 { font-size: 20px; }
.products-lg .product-meta p { grid-column: 1; }
.products-lg .product-meta .dims { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; font-size: 13px; color: var(--ink-2); background: var(--stone); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.products-4 { grid-template-columns: repeat(4, 1fr); }
.product, .project, .view { min-width: 0; }
.head-side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* make it yours */
.make { padding-top: 0; }
.make-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; background: var(--stone); border-radius: 28px; padding: clamp(28px, 5vw, 64px); }
.make-copy p { margin: 0 0 28px; max-width: 46ch; }
.sub .collection-list + .make .make-card, .product-views + .make .make-card { background: var(--stone); }

/* produs */
.product-hero { padding: clamp(32px, 4vw, 56px) 0 0; }
.product-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.product-info { position: sticky; top: 110px; padding-top: 8px; }
.product-title { font-family: var(--f-sans); font-weight: 400; color: var(--ink); font-size: clamp(48px, 6.4vw, 96px); line-height: 0.95; letter-spacing: 0.01em; margin: 0; }
.product-title span { font-family: var(--f-serif); font-style: italic; color: var(--clay); letter-spacing: 0; }
.product-tagline { margin: 14px 0 26px; font-size: clamp(22px, 2vw, 30px); color: var(--ink); line-height: 1.2; }
.product-desc { margin: 0 0 32px; max-width: 46ch; font-size: clamp(16px, 1.15vw, 18px); }
.specs { margin: 0 0 36px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 500 11px/1.9 var(--f-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.specs dd { margin: 0; color: var(--ink); font-weight: 400; }
.product-hero-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1293 / 1600; background: var(--stone); }
.product-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.views { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.view { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; background: #111; }
.view img { width: 100%; height: 100%; object-fit: cover; }
.view-drawing { background: #0b0b0b; display: grid; place-items: center; }
.view-drawing img { object-fit: contain; padding: 8%; }
.view figcaption { position: absolute; left: 14px; bottom: 14px; font: 500 11px/1 var(--f-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: rgba(246, 244, 238, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 9px 13px; border-radius: 999px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: clamp(28px, 3vw, 44px); padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pager a { color: var(--ink); font-size: 18px; letter-spacing: 0.04em; transition: color 0.3s; }
.pager a span { display: block; font: 500 11px/1 var(--f-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.pager a:hover { color: var(--clay); }
.pager-next { text-align: right; }
.pager-all { font-size: 14px !important; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); }
.pager-all:hover { border-color: rgba(42, 39, 35, 0.3); }
.pager a > span ~ span { display: inline; font: inherit; letter-spacing: 0; text-transform: none; color: var(--clay); font-family: var(--f-serif); font-style: italic; margin: 0; }
.others { padding-top: 0; }

@media (max-width: 1100px) {
  .products-lg { grid-template-columns: repeat(2, 1fr); }
  .products-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sub main { padding-top: 84px; }
  .product-hero-grid, .make-card { grid-template-columns: 1fr; }
  .product-info { position: static; }
  .product-hero-media { order: -1; aspect-ratio: 4 / 5; }
  .views { grid-template-columns: 1fr 1fr; }
  .view-drawing { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .products-lg { grid-template-columns: 1fr; }
  .products-lg .product:last-child, .products-4 .product:last-child { grid-column: auto; }
  .products-lg .product:last-child .product-media, .products-4 .product:last-child .product-media { aspect-ratio: 4 / 5; }
  .specs div { grid-template-columns: 110px 1fr; }
  .views { grid-template-columns: 1fr; }
  .view-drawing { aspect-ratio: 1 / 1; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager-all { display: none; }
  .btn-row .btn { width: 100%; justify-content: space-between; }
}


/* ================= proiecte ================= */
.nav a[aria-current="page"] { background: rgba(42, 39, 35, 0.07); }
.projects-list { padding-top: clamp(48px, 6vw, 80px); }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3.4vw, 48px) clamp(12px, 1.4vw, 20px); }
.projects-grid .project-media { aspect-ratio: 4 / 5; }
.projects-grid .project-meta h3 { font-size: clamp(17px, 1.3vw, 19px); }
.projects-grid .project-meta p:last-child { font-size: 14px; }

.project-head .page-title { margin-bottom: 36px; }
.loc-big { margin: 0 0 14px; font: 500 12px/1.3 var(--f-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 20px 4px 0; }
.facts dt { font: 500 11px/1 var(--f-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.facts dd { margin: 0; color: var(--ink); font-weight: 400; }
.project-cover { padding-top: clamp(32px, 4vw, 56px); }
.cover-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--stone); }
.cover-media img { width: 100%; height: 100%; object-fit: cover; }
.story-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 6vw, 112px); }
.story-copy p { margin: 0 0 1em; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.5; color: var(--ink); font-weight: 300; max-width: 52ch; }
.project-story { padding-bottom: clamp(40px, 5vw, 72px); }
.gallery { columns: 2; column-gap: clamp(12px, 1.6vw, 24px); }
.g-item { break-inside: avoid; margin: 0 0 clamp(12px, 1.6vw, 24px); border-radius: var(--r-lg); overflow: hidden; background: var(--stone); }
.g-item img { width: 100%; height: auto; }
.next-link { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(20px, 4vw, 64px); align-items: center; padding: clamp(20px, 2.4vw, 32px); border-radius: 28px; background: var(--bg-soft); transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease); }
.next-link:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.next-text { display: flex; flex-direction: column; gap: 6px; padding-left: clamp(4px, 1vw, 16px); }
.next-title { font-size: clamp(28px, 3.2vw, 48px); line-height: 1.05; letter-spacing: -0.025em; color: var(--ink); }
.next-title em { display: block; font-size: 0.62em; color: var(--clay); margin-top: 6px; }
.next-media { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; }
.next-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.next-link:hover .next-media img { transform: scale(1.04); }
.next-project { padding-bottom: clamp(56px, 7vw, 96px); }

@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .story-grid, .next-link { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .cover-media { aspect-ratio: 4 / 3; }
}

/* ================= Phorm Lab: simbolul brațului robotic din logo ================= */
.lab-mark {
  display: inline-block; flex: none; width: 30px; height: 26px; margin-left: -6px;
  background-color: currentColor;
  -webkit-mask: url("/media/img/lab-mark.png") center / contain no-repeat;
  mask: url("/media/img/lab-mark.png") center / contain no-repeat;
  transition: transform 0.6s var(--ease);
}
.btn-lab { padding-left: 20px; gap: 14px; }
.btn-lab:hover .lab-mark { transform: translateY(-2px) rotate(-4deg); }

/* ================= catalog PDF ================= */
.btn-dl small { font-size: 12px; color: var(--mute); margin-left: -8px; }
.btn-dl:hover .ic svg { transform: translateY(2px); }
.page-actions { margin-top: 32px; }
.dl-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: color 0.3s, border-color 0.3s; }
.dl-link svg { width: 16px; height: 16px; }
.dl-link:hover { color: var(--clay); border-color: var(--clay); }
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .btn-dl small { display: none; }
}

/* ================= formular: consimțământ GDPR ================= */
.contact-form label.consent { display: flex; gap: 12px; align-items: flex-start; background: transparent; padding: 6px 4px 2px; border: 0; box-shadow: none; }
.contact-form label.consent:focus-within { box-shadow: none; }
.contact-form label.consent input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--ink); }
.contact-form label.consent span { font: 400 13px/1.5 var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.contact-form label.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ================= noutăți ================= */
.wrap.narrow { max-width: 900px; }
.news-list { padding-top: clamp(48px, 6vw, 80px); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3.4vw, 48px) clamp(12px, 1.4vw, 20px); }
.news-card { display: flex; flex-direction: column; gap: 10px; }
.news-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); margin-bottom: 8px; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.035); }
.news-meta { margin: 0; font: 500 12px/1.4 var(--f-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.news-card h3 { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.25; }
.news-card > p:not(.news-meta) { margin: 0; font-size: 15px; }
.news-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--ink); font-size: 14px; }
.news-more .ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); transition: background 0.4s var(--ease), color 0.4s var(--ease); }
.news-more .ic svg { width: 14px; height: 14px; }
.news-card:hover .news-more .ic { background: var(--ink); color: var(--bg); }
.news-empty { color: var(--mute); }
.draft-badge { position: absolute; left: 12px; top: 12px; margin: 0; font: 500 11px/1 var(--f-sans); letter-spacing: 0.1em; text-transform: uppercase; background: #f6e7b8; color: #5a4a14; padding: 8px 12px; border-radius: 999px; }
.article-head .draft-badge { position: static; display: inline-block; margin-bottom: 18px; }
.article-head .page-title { max-width: 22ch; }
.article-cover { padding-top: clamp(28px, 3vw, 44px); }
.article-cover .cover-media { aspect-ratio: 16 / 9; position: relative; }
.img-note { position: absolute; right: 14px; bottom: 12px; font-size: 12px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.article-body .story-copy p { max-width: 62ch; }
.source-box { margin: 36px 0 40px; padding: 22px 24px; border-radius: var(--r-md); background: var(--bg-soft); border: 1px solid var(--line); }
.source-box p { margin: 0 0 6px; }
.source-box .label { margin-bottom: 12px; }
.source-box a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.source-box .note { font-size: 14px; color: var(--mute); margin: 8px 0 0; }

/* ================= pagină legală ================= */
.updated { margin: 18px 0 0; font-size: 14px; color: var(--mute); }
.legal { padding-top: clamp(40px, 5vw, 72px); }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.legal-toc { position: sticky; top: 110px; }
.legal-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.legal-toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.legal-toc a { display: flex; gap: 12px; padding: 11px 0; font-size: 14px; color: var(--ink-2); transition: color 0.3s; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--clay); font-size: 12px; min-width: 20px; padding-top: 1px; }
.legal-toc a:hover { color: var(--ink); }
.legal-body { max-width: 72ch; }
.legal-body h2 { font: 400 clamp(21px, 1.7vw, 26px)/1.25 var(--f-sans); color: var(--ink); letter-spacing: -0.015em; margin: 44px 0 14px; scroll-margin-top: 110px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 16px; }
.legal-body ul { padding-left: 1.1em; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--ink); font-weight: 500; }
mark.todo { background: #f6e7b8; color: #5a4a14; padding: 1px 6px; border-radius: 6px; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ================= noutăți fără imagini + footer legal + legal mai compact ================= */
.news-card { position: relative; background: var(--bg-soft); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--r-lg); padding: clamp(22px, 2.2vw, 30px); gap: 12px; transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease); }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card .draft-badge { position: static; align-self: flex-start; }
.news-card h3 { font-size: clamp(19px, 1.5vw, 23px); }
.news-src { margin: auto 0 0 !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px !important; color: var(--mute); }
.news-src span { color: var(--ink); }
.article-head .news-meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-transform: none; letter-spacing: 0; }
.src-url { font-size: 13px; word-break: break-all; }
.src-url a { color: var(--ink-2) !important; }
.footer-grid .fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.legal-id { font-size: 12px; color: var(--mute); }

.legal-page .page-title { font-size: clamp(28px, 3vw, 42px); }
.legal-page .lead { font-size: clamp(16px, 1.1vw, 18px); max-width: 60ch; }
.legal-body p, .legal-body li { font-size: 15px; line-height: 1.65; }
.legal-body h2 { font-size: clamp(17px, 1.3vw, 20px); margin: 36px 0 10px; }
.legal-toc a { font-size: 13px; padding: 9px 0; }
.article .article-body { padding-top: clamp(20px, 2.4vw, 36px); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ================= pagini de soluții ================= */
.sol-head .page-title { max-width: 18ch; }
.sol-body .wrap { display: grid; gap: clamp(36px, 4vw, 56px); }
.sol-sec { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(20px, 5vw, 96px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.sol-sec h2 { font: 400 clamp(22px, 2vw, 30px)/1.15 var(--f-sans); letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.sol-sec .story-copy p { font-size: clamp(16px, 1.2vw, 19px); }
.sol-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sol-list li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink); font-size: clamp(15px, 1.1vw, 17px); }
.sol-list li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }
.sol-second { aspect-ratio: 21 / 9; }
.sol-related { padding-top: 0; }
.sol-faq { padding-top: 0; }
.footer-sol { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-sol span { color: var(--mute); margin-right: 6px; }
.footer-sol a { color: var(--ink-2); }
.footer-sol a:hover { color: var(--clay); }
@media (max-width: 900px) { .sol-sec { grid-template-columns: 1fr; } }

/* Meniu mobil: backdrop-filter pe bara „solid” creează un containing block pentru elementele position:fixed,
   iar panoul meniului rămânea închis în bara de 60 px după scroll. Cât meniul e deschis, scoatem filtrul. */
@media (max-width: 900px) {
  .menu-open .site-header .header-bar {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: transparent; border-color: transparent; box-shadow: none;
  }
  .menu-open .nav { overflow-y: auto; }
}
