﻿/*
Theme Name: Dweck Consultants
Theme URI: https://dweck.consulting
Author: Studio Rimon
Author URI: https://studiorimon.com
Description: Bilingual (EN/HE) strategic advisory website for Dweck Consultants.
Version: 3.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dweck
*/

/* ======================================================================
   Design Tokens
   ====================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f6;
  --surface: #ffffff;
  --paper: #faf6ef;
  --paper-deep: #f2eadf;
  --paper-warm: #f6efe4;
  --sand: #e8dccb;

  --navy: #0c1523;
  --charcoal: #111111;
  --bronze: #b08d57;
  --copper: #a06a43;

  --ink: var(--charcoal);
  --ink-soft: #2a2a2a;
  --ink-muted: #5c5c5c;

  --divider: #e8e8e8;
  --shadow: none;

  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-he-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-he-display: 'Secular One', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1200px;
  --content: 760px;
  --radius: 6px;
}

/* ======================================================================
   Reset & Base
   ====================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[lang="he"] body {
  --font-body: var(--font-he-body);
  --font-display: var(--font-he-display);
  font-family: var(--font-body);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul, ol { list-style: none; }

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

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

/* ======================================================================
   Typography
   ====================================================================== */

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.3;
  font-weight: 600;
}

.text-small { font-size: 0.875rem; line-height: 1.6; }
.text-secondary { color: var(--ink-muted); }
.text-overline {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

[lang="he"] h1,
[lang="he"] .h1,
[lang="he"] h2,
[lang="he"] .h2,
[lang="he"] h3,
[lang="he"] .h3,
[lang="he"] .text-overline {
  letter-spacing: 0;
}

[lang="he"] .text-overline {
  text-transform: none;
}

/* ======================================================================
   Layout
   ====================================================================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section {
  padding-top: 120px;
  padding-bottom: 120px;
}

@media (max-width: 900px) {
  .section { padding-top: 80px; padding-bottom: 80px; }
}

@media (max-width: 600px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ======================================================================
   Header
   ====================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--divider);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-logo img { height: 36px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1;
}

.main-nav a:hover { color: var(--navy); }
.main-nav a.is-active { color: var(--navy); }

.nav-item {
  position: relative;
}

.nav-item.has-submenu > a::after {
  content: "";
  display: inline-block;
  margin-inline-start: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.nav-item.has-submenu.is-active > a {
  color: var(--navy);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.8rem);
  inset-inline-start: 0;
  min-width: 270px;
  padding: 0.7rem;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 40px rgba(12, 21, 35, 0.08);
  display: grid;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-submenu a {
  display: block;
  padding: 0.8rem 0.9rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.9rem;
}

.nav-submenu a:hover,
.nav-submenu a.is-active {
  background: rgba(12, 21, 35, 0.05);
  color: var(--navy);
}

.nav-item.has-submenu:hover .nav-submenu,
.nav-item.has-submenu:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .nav-cta {
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}

.main-nav .nav-cta:hover { background: #08101c; }

.lang-toggle {
  font-size: 0.82rem;
  color: var(--ink-muted);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 0.45rem 0.9rem;
  font-weight: 700;
}

/* Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ink);
}

.menu-toggle svg { display: block; }

.mobile-nav {
  display: none;
  background-color: #ffffff;
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--divider);
}

.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.mobile-nav-group {
  display: grid;
  gap: 0.65rem;
}

.mobile-subnav {
  display: grid;
  gap: 0.65rem;
  padding-inline-start: 1rem;
  border-inline-start: 1px solid var(--divider);
}

.mobile-subnav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.mobile-nav .nav-cta {
  align-self: flex-start;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.6rem 1.2rem;
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
}

/* ======================================================================
   Buttons
   ====================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  padding: 1.125rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  line-height: 1.2;
}

.btn-primary:hover { background: #08101c; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--navy);
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-bottom: 2px solid transparent;
}

.btn-secondary:hover { border-bottom-color: var(--navy); }

/* ======================================================================
   Hero
   ====================================================================== */

.hero {
  padding-top: 120px;
  padding-bottom: 120px;
  border-bottom: 1px solid var(--divider);
}

.home-hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 14% 18%, rgba(160, 106, 67, 0.12), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(176, 141, 87, 0.16), transparent 18%),
    linear-gradient(180deg, var(--paper) 0%, #fff 72%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 340px;
  height: 340px;
  background: url('assets/img/draft-orbit.svg') no-repeat center / contain;
  opacity: 0.72;
  transform: translate(-10%, 4%);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 3% 10% auto;
  width: 400px;
  height: 240px;
  background: url('assets/img/sketch-character-sheet.svg') no-repeat center / contain;
  opacity: 0.34;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

[dir="rtl"] .hero .container {
  grid-template-columns: 0.9fr 1.1fr;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  margin-bottom: 1rem;
  max-width: 9ch;
}

.hero-subhead {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--ink-soft);
  max-width: 520px;
}

.hero-meta {
  margin-top: 2rem;
  font-weight: 700;
  color: var(--navy);
  max-width: 34rem;
}

.hero-bullets {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.hero-bullets li {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  padding-inline-start: 1.5rem;
  position: relative;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--bronze);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-image {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(12, 21, 35, 0.1);
  border-radius: 18px;
  overflow: hidden;
  max-width: 390px;
  justify-self: end;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.82)),
    var(--paper-deep);
  box-shadow:
    0 18px 50px rgba(12, 21, 35, 0.1),
    0 0 0 10px rgba(255, 255, 255, 0.56);
}

.hero-image img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .home-hero::before {
    width: 240px;
    height: 240px;
    transform: translate(-18%, -4%);
  }
  .home-hero::after {
    width: 260px;
    height: 140px;
    inset: auto -4% 20% auto;
  }
}

/* ======================================================================
   Section Base
   ====================================================================== */

.section-title {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-title p { margin-top: 0.75rem; color: var(--ink-soft); }

.section-dark {
  background: var(--navy);
  color: #fff;
}

.section-dark .text-overline,
.section-dark p,
.section-dark li { color: rgba(255, 255, 255, 0.92); }

.section-dark h2,
.section-dark h3 { color: #fff; }

.section-dark .card {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.section-dark .card p,
.section-dark .card li { color: #fff; }

/* ======================================================================
   Cards & Lists
   ====================================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.card {
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 2rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(12, 21, 35, 0.04);
}

.card h3 { margin-bottom: 0.75rem; }

.list-strong {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.list-strong li {
  font-weight: 600;
  color: var(--ink);
}

.section-dark .card {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ======================================================================
   Clients
   ====================================================================== */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #fff;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.client-card__inner {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.85rem;
  width: 100%;
  text-align: center;
  margin-inline: auto;
}

.client-card__inner img {
  margin-inline: auto;
}

.client-card__inner > img,
.client-card__inner > .client-logo-placeholder {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-card img {
  display: block;
  max-width: 100%;
  max-height: 58px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform 0.2s ease;
}

.client-name {
  display: block;
  width: 100%;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}

.client-card:hover {
  border-color: #d9d9d9;
  box-shadow: 0 14px 28px rgba(12, 21, 35, 0.06);
  transform: translateY(-2px);
}

.client-card:hover img {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .clients-grid { grid-template-columns: 1fr; }
}

/* ======================================================================
   Contact
   ====================================================================== */

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: none;
}

.contact-meta p { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }

.contact-meta strong { color: var(--ink); font-weight: 700; }

.contact-meta a { color: var(--navy); font-weight: 600; }

.contact-hero {
  background:
    linear-gradient(180deg, rgba(12, 21, 35, 0.04), transparent 55%),
    linear-gradient(180deg, var(--paper), #fff 82%);
}

.contact-page {
  background:
    linear-gradient(180deg, #fff 0%, var(--paper-warm) 100%);
}

.contact-page__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: start;
}

.contact-panel {
  position: sticky;
  top: 6rem;
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 1.75rem;
  background: linear-gradient(180deg, #fff, rgba(246, 239, 228, 0.65));
  box-shadow: 0 10px 28px rgba(12, 21, 35, 0.05);
}

/* ======================================================================
   Contact Form
   ====================================================================== */

.contact-form {
  margin-top: 3rem;
  max-width: var(--content);
}

.contact-form--panel {
  margin-top: 0;
  max-width: none;
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 32px rgba(12, 21, 35, 0.05);
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--surface);
  transition: border-color 0.2s ease;
  line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  outline: none;
}

.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select { appearance: auto; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-status { margin-top: 1rem; font-weight: 600; font-size: 0.95rem; }
.form-status--success { color: var(--navy); }
.form-status--error { color: #b4232b; }

.form-group--checkbox {
  margin-top: -0.15rem;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  font-size: 0.98rem;
  line-height: 1.6;
}

.checkbox-field input {
  margin-top: 0.28rem;
}

.form-help {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.form-help a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

/* ======================================================================
   Footer
   ====================================================================== */

.site-footer {
  padding: 2.75rem 0;
  border-top: 1px solid rgba(12, 21, 35, 0.09);
  background:
    linear-gradient(180deg, rgba(246, 239, 228, 0.76), #fff 48%);
}

.site-footer__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer__copy {
  max-width: 760px;
}

.site-footer p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.site-footer p + p { margin-top: 0.2rem; }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: flex-end;
}

.site-footer__legal a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.site-footer__legal a:hover {
  color: var(--copper);
}

/* ======================================================================
   Utility
   ====================================================================== */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

/* WordPress overrides */
.wp-site-blocks { padding: 0; }

.section-links {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.home-band {
  position: relative;
  overflow: clip;
}

.home-band--who {
  background:
    linear-gradient(180deg, rgba(246, 239, 228, 0.62), rgba(255,255,255,0) 34%),
    #fff;
}

.home-band--who::after {
  content: "";
  position: absolute;
  inset: 3rem 0 auto auto;
  width: 280px;
  height: 180px;
  background: url('assets/img/draft-pencil.svg') no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
}

.home-band--system {
  background:
    linear-gradient(180deg, var(--paper) 0%, #fff 100%);
}

.home-band--system .card:nth-child(2),
.home-band--system .card:nth-child(5) {
  background: linear-gradient(180deg, #fff, var(--paper));
}

.home-band--links {
  background:
    linear-gradient(180deg, #fff 0%, var(--paper-warm) 100%);
}

.home-band--clients {
  background:
    radial-gradient(circle at 88% 18%, rgba(176, 141, 87, 0.1), transparent 16%),
    linear-gradient(180deg, var(--paper) 0%, #fff 100%);
}

.home-band--contact {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10, 17, 29, 0.97), rgba(12, 21, 35, 0.97)),
    var(--navy);
}

.home-band--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url('assets/img/pattern-grid.svg') repeat,
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px, 120px 120px;
  opacity: 0.32;
  pointer-events: none;
}

.home-editorial {
  position: relative;
  background:
    linear-gradient(180deg, rgba(246, 239, 228, 0.7), rgba(255,255,255,0) 40%),
    #fff;
}

.home-editorial::before {
  content: "";
  position: absolute;
  inset: auto auto 1.5rem 3%;
  width: 280px;
  height: 160px;
  background: url('assets/img/draft-pencil.svg') no-repeat center / contain;
  opacity: 0.14;
  pointer-events: none;
}

.home-editorial__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.home-editorial__image {
  position: relative;
  border: 1px solid rgba(12, 21, 35, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 18px 48px rgba(12, 21, 35, 0.08),
    0 0 0 10px rgba(255,255,255,0.48);
  background: #fff;
}

.home-editorial__image img {
  display: block;
  width: 100%;
  height: auto;
}

.home-editorial__content {
  max-width: 520px;
}

.home-editorial__content h2 {
  margin-top: 0.85rem;
}

.home-editorial__content p:last-child {
  margin-top: 1rem;
  color: var(--ink-soft);
}

.page-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.page-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
}

.page-link-card:hover {
  border-color: var(--navy);
}

.structured-page__content {
  max-width: 760px;
}

.structured-page__subhead {
  margin-top: 1rem;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.structured-page__body {
  display: grid;
  gap: 1rem;
}

.structured-page__body p {
  color: var(--ink-soft);
}

.structured-page__link a {
  color: var(--navy);
  font-weight: 700;
  border-bottom: 1px solid var(--navy);
}

@media (max-width: 700px) {
  .page-links-grid {
    grid-template-columns: 1fr;
  }
}

.detail-hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--divider);
  background: var(--bg);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 1.5rem auto auto 2%;
  width: 240px;
  height: 240px;
  background: url('assets/img/draft-orbit.svg') no-repeat center / contain;
  opacity: 0.16;
  pointer-events: none;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: auto 2% 10% auto;
  width: 240px;
  height: 130px;
  background: url('assets/img/draft-pencil.svg') no-repeat center / contain;
  opacity: 0.1;
  pointer-events: none;
}

.detail-hero--services {
  background:
    radial-gradient(circle at 82% 20%, rgba(176, 141, 87, 0.12), transparent 16%),
    linear-gradient(180deg, var(--paper) 0%, #fff 80%);
}

.detail-hero--services::before {
  width: 320px;
  height: 210px;
  inset: 2rem auto auto 3%;
  background:
    linear-gradient(90deg, rgba(12, 21, 35, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(12, 21, 35, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, transparent 28%, rgba(160, 106, 67, 0.22) 28%, rgba(160, 106, 67, 0.22) 30%, transparent 30%),
    linear-gradient(180deg, transparent 58%, rgba(12, 21, 35, 0.14) 58%, rgba(12, 21, 35, 0.14) 60%, transparent 60%);
  background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%;
  opacity: 0.26;
}

.detail-hero--services::after {
  width: 280px;
  height: 150px;
  inset: auto 3% 12% auto;
  background:
    linear-gradient(180deg, transparent 22%, rgba(12, 21, 35, 0.18) 22%, rgba(12, 21, 35, 0.18) 24%, transparent 24%),
    linear-gradient(180deg, transparent 48%, rgba(160, 106, 67, 0.35) 48%, rgba(160, 106, 67, 0.35) 50%, transparent 50%),
    linear-gradient(180deg, transparent 74%, rgba(12, 21, 35, 0.12) 74%, rgba(12, 21, 35, 0.12) 76%, transparent 76%);
  opacity: 0.72;
}

.detail-hero--licensing {
  background:
    linear-gradient(180deg, rgba(176, 141, 87, 0.16), transparent 60%),
    linear-gradient(180deg, var(--paper-warm), #fff 84%);
}

.detail-hero--licensing::before {
  width: 340px;
  height: 340px;
  inset: auto 2% 2.5rem auto;
  background:
    url('assets/img/draft-orbit.svg') no-repeat center / contain,
    radial-gradient(circle at 50% 50%, rgba(160, 106, 67, 0.08), transparent 62%);
  opacity: 0.2;
}

.detail-hero--licensing::after {
  width: 340px;
  height: 220px;
  inset: 1.25rem auto auto 3%;
  background:
    url('assets/img/sketch-character-sheet.svg') no-repeat center / contain;
  opacity: 0.34;
}

.detail-hero--licensing .detail-hero__content {
  position: relative;
}

.detail-hero--licensing .detail-hero__content::after {
  content: "";
  position: absolute;
  inset: auto auto -2rem 0;
  width: 220px;
  height: 40px;
  background:
    linear-gradient(90deg, rgba(160, 106, 67, 0.45), rgba(160, 106, 67, 0.12)),
    linear-gradient(180deg, transparent 58%, rgba(12, 21, 35, 0.1) 58%, rgba(12, 21, 35, 0.1) 62%, transparent 62%);
  background-size: 100% 2px, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: left center, left top;
  opacity: 0.8;
}

.detail-hero--ai {
  background:
    linear-gradient(180deg, rgba(12, 21, 35, 0.06), transparent 70%),
    repeating-linear-gradient(90deg, rgba(12, 21, 35, 0.025) 0, rgba(12, 21, 35, 0.025) 1px, transparent 1px, transparent 36px),
    linear-gradient(180deg, var(--paper), #fff 82%);
}

.detail-hero--ai::before {
  width: 320px;
  height: 220px;
  inset: 2rem auto auto 3%;
  background:
    linear-gradient(90deg, rgba(12, 21, 35, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(12, 21, 35, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 18% 34%, rgba(160, 106, 67, 0.2), transparent 14%),
    radial-gradient(circle at 52% 52%, rgba(12, 21, 35, 0.16), transparent 16%),
    radial-gradient(circle at 82% 26%, rgba(160, 106, 67, 0.16), transparent 12%);
  background-size: 24px 24px, 24px 24px, auto, auto, auto;
  opacity: 0.28;
}

.detail-hero--ai::after {
  width: 300px;
  height: 160px;
  inset: auto 3% 10% auto;
  background:
    radial-gradient(circle, rgba(12, 21, 35, 0.24) 0 3px, transparent 3px),
    linear-gradient(90deg, rgba(12, 21, 35, 0.16) 0 100%),
    linear-gradient(180deg, rgba(12, 21, 35, 0.18) 0 100%);
  background-size: 34px 34px, 100% 2px, 2px 100%;
  background-repeat: repeat, no-repeat, no-repeat;
  background-position: 0 0, center 48%, 56% center;
  opacity: 0.42;
}

.detail-hero--rimon {
  background:
    linear-gradient(135deg, rgba(176, 141, 87, 0.1), rgba(12, 21, 35, 0.04) 60%, transparent 60%),
    linear-gradient(180deg, var(--paper), #fff 84%);
}

.detail-hero--rimon::before {
  width: 360px;
  height: 220px;
  inset: 0.25rem auto auto 4%;
  background: url('assets/img/sketch-web-game.svg') no-repeat center / contain;
  opacity: 0.38;
}

.detail-hero--rimon::after {
  width: 260px;
  height: 150px;
  inset: 1.75rem 3% auto auto;
  background:
    linear-gradient(90deg, rgba(12, 21, 35, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(12, 21, 35, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, transparent 56%, rgba(160, 106, 67, 0.28) 56%, rgba(160, 106, 67, 0.28) 58%, transparent 58%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  opacity: 0.3;
}

.detail-hero--process {
  background:
    linear-gradient(180deg, rgba(12, 21, 35, 0.04), transparent 55%),
    linear-gradient(180deg, var(--paper), #fff 84%);
}

.detail-hero--process::before {
  width: 280px;
  height: 90px;
  inset: 2.75rem auto auto 3%;
  background:
    radial-gradient(circle, rgba(160, 106, 67, 0.45) 0 6px, transparent 6px),
    linear-gradient(90deg, rgba(12, 21, 35, 0.18) 0 100%);
  background-size: 72px 18px, 100% 2px;
  background-repeat: repeat-x, no-repeat;
  background-position: 0 8px, center 18px;
  opacity: 0.32;
}

.detail-hero--process::after {
  width: 180px;
  height: 120px;
  inset: auto 5% 16% auto;
  background:
    linear-gradient(180deg, transparent 18%, rgba(12, 21, 35, 0.16) 18%, rgba(12, 21, 35, 0.16) 20%, transparent 20%),
    radial-gradient(circle, rgba(160, 106, 67, 0.34) 0 4px, transparent 4px);
  background-size: 100% 100%, 48px 24px;
  background-repeat: no-repeat, repeat;
  opacity: 0.35;
}

.detail-hero__content {
  max-width: 820px;
}

.detail-hero__subhead {
  margin-top: 1rem;
  max-width: 720px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--ink-soft);
}

.detail-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 3rem;
  align-items: start;
}

.detail-page__layout--process {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
}

.detail-page {
  background:
    linear-gradient(180deg, #fff 0%, var(--paper-warm) 100%);
}

.detail-page__main,
.detail-page__main--wide {
  max-width: 760px;
  display: grid;
  gap: 1.25rem;
}

.detail-page__main p,
.detail-page__main--wide p {
  color: var(--ink-soft);
}

.detail-page__main--process {
  gap: 1.5rem;
  padding-top: 0.35rem;
}

.detail-panel {
  position: sticky;
  top: 6rem;
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 1.75rem;
  background: linear-gradient(180deg, #fff, rgba(246, 239, 228, 0.65));
  box-shadow: 0 10px 28px rgba(12, 21, 35, 0.05);
}

.page-template-page-licensing .detail-panel {
  position: relative;
  overflow: hidden;
}

.page-template-page-licensing .detail-panel::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 140px;
  height: 140px;
  background: url('assets/img/draft-orbit.svg') no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
}

.detail-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.detail-list li {
  position: relative;
  padding-inline-start: 1.25rem;
  font-weight: 600;
}

.detail-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.75rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--bronze);
}

.detail-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.question-card {
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 1.5rem;
  background: linear-gradient(180deg, #fff, var(--paper));
  min-height: 120px;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 10px 24px rgba(12, 21, 35, 0.04);
}

.question-card p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 600;
}

.process-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  list-style: none;
}

.process-panel {
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,239,228,0.78));
  box-shadow: 0 14px 32px rgba(12, 21, 35, 0.05);
}

.process-list li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.process-list__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.detail-external .container {
  max-width: 760px;
}

.legal-updated {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.legal-page {
  background:
    linear-gradient(180deg, #fff 0%, var(--paper-warm) 100%);
}

.legal-page__layout {
  max-width: 860px;
}

.legal-page__main {
  display: grid;
  gap: 2rem;
}

.legal-page__intro {
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.legal-section {
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(12, 21, 35, 0.04);
}

.legal-section h2 {
  margin-bottom: 0.75rem;
}

.legal-section p {
  color: var(--ink-soft);
}

.about-hero {
  padding-bottom: 88px;
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 8% 18%, rgba(160, 106, 67, 0.11), transparent 20%),
    linear-gradient(180deg, var(--paper) 0%, #fff 76%);
}

.about-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 4rem;
  align-items: end;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 2rem auto auto 3%;
  width: 320px;
  height: 320px;
  background: url('assets/img/draft-orbit.svg') no-repeat center / contain;
  opacity: 0.58;
  pointer-events: none;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: auto 4% 8% auto;
  width: 300px;
  height: 160px;
  background: url('assets/img/draft-pencil.svg') no-repeat center / contain;
  opacity: 0.18;
  pointer-events: none;
}

.about-hero__content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.about-section {
  padding-top: 88px;
  position: relative;
  background:
    linear-gradient(180deg, #fff 0%, var(--paper-warm) 100%);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 4rem;
  align-items: start;
}

.about-body {
  display: grid;
  gap: 2.5rem;
  max-width: 760px;
}

.about-body__copy {
  display: grid;
  gap: 1.5rem;
}

.about-body__copy p {
  color: var(--ink-soft);
}

.about-side {
  position: relative;
}

.about-panel {
  top: 6rem;
  background:
    linear-gradient(180deg, #fff, rgba(246, 239, 228, 0.6));
}

.about-photo--hero {
  justify-self: end;
  width: min(100%, 290px);
  border: 1px solid rgba(12, 21, 35, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 18px 48px rgba(12, 21, 35, 0.1),
    0 0 0 10px rgba(255,255,255,0.5);
}

.about-photo--hero img {
  width: 100%;
  height: auto;
}

.about-principle {
  border-top: 1px solid rgba(12, 21, 35, 0.1);
  padding-top: 2rem;
  position: relative;
}

.about-principle-label {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

[lang="he"] .about-principle-label {
  letter-spacing: 0;
  text-transform: none;
}

.about-principle-text {
  max-width: 640px;
}

.about-principle::after {
  content: "";
  position: absolute;
  inset: auto auto -1rem 0;
  width: 180px;
  border-bottom: 2px solid rgba(160, 106, 67, 0.4);
  transform: rotate(-1.8deg);
}

.rimon-deck {
  padding-top: 0;
}

.rimon-deck__frame {
  border: 1px solid var(--divider);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(12, 21, 35, 0.05);
}

.rimon-deck__frame iframe {
  display: block;
  width: 100%;
  min-height: 680px;
  border: 0;
}

.service-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-detail {
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 2rem;
  background: #fff;
}

.service-detail h2 {
  margin-bottom: 1rem;
}

.service-includes {
  display: grid;
  gap: 0.7rem;
}

.service-includes li {
  position: relative;
  padding-inline-start: 1.1rem;
  color: var(--ink-soft);
}

.service-includes li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--bronze);
}

.service-outcome span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .about-hero__layout,
  .about-layout,
  .home-editorial__layout,
  .detail-page__layout,
  .question-grid,
  .service-overview-grid {
    grid-template-columns: 1fr;
  }

  .about-photo--hero {
    justify-self: start;
    width: min(100%, 250px);
  }

  .about-hero::before,
  .about-hero::after,
  .home-band--who::after,
  .home-editorial::before,
  .detail-hero::before,
  .detail-hero::after {
    opacity: 0.1;
  }

  .detail-page__layout--process {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }

  .contact-page__layout {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    position: static;
  }

  .detail-cta .container {
    display: block;
  }

  .detail-cta .hero-actions {
    margin-top: 1.5rem;
  }

  .site-footer__main {
    flex-direction: column;
  }

  .site-footer__legal {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .rimon-deck__frame iframe {
    min-height: 420px;
  }
}
