/* ============================================================
   MAJDI WEB SERVICES — PORTFOLIO  |  مجدي لخدمات الويب
   Design language: "Atelier Spotlight"
   An ink-green gallery at night, lit by warm brass spotlights.
   Bilingual: Arabic (default) / English — see rtl.css and js/i18n.js
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&family=El+Messiri:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root{
  /* Color */
  --bg:            #0c1310;
  --bg-soft:       #0f1a15;
  --surface:       #131f1a;
  --surface-2:     #1a2822;
  --gold:          #c9a667;
  --gold-soft:     #e3cb93;
  --gold-dim:      rgba(201,166,103,0.55);
  --sage:          #7c9186;
  --ivory:         #ede9de;
  --ivory-dim:     #a8afa8;
  --ivory-faint:   #6f776f;
  --line:          rgba(201,166,103,0.16);
  --line-strong:   rgba(201,166,103,0.32);
  --shadow-deep:   rgba(0,0,0,0.55);

  /* Type — swapped automatically for Arabic via [dir="rtl"] below */
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body:    'Manrope', -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'SF Mono', monospace;
  --font-display-ar: 'El Messiri', 'Fraunces', serif;
  --font-body-ar:    'IBM Plex Sans Arabic', 'Manrope', sans-serif;

  /* Scale */
  --fs-hero:  clamp(2.6rem, 6vw, 5.2rem);
  --fs-h2:    clamp(2rem, 3.6vw, 3.2rem);
  --fs-h3:    clamp(1.3rem, 2vw, 1.7rem);
  --fs-body:  1.05rem;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;

  --ease: cubic-bezier(.22,.68,.24,1);
}

/* Arabic is the default language of the site, so RTL typography is the
   default rule; English (LTR) overrides it below. Only the font choice
   changes with language — layout tokens above stay the same for both. */
html[dir="rtl"]{
  --font-display: var(--font-display-ar);
  --font-body: var(--font-body-ar);
}
html[dir="ltr"]{
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4,p{ margin:0; }
::selection{ background: var(--gold); color:#0c1310; }

/* Focus visibility (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Grain overlay (tactile texture, whole page) ---------- */
.grain{
  position: fixed; inset:0;
  pointer-events:none;
  z-index: 999;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Bilingual content toggle ----------
   Every translatable element is written twice in the markup,
   tagged data-lang="ar" / data-lang="en" (spans only — <option>
   elements are handled separately by js/i18n.js, since native
   select dropdowns don't reliably respect CSS display).
   Only the block matching <html lang="..."> is shown. This avoids
   any flash of the wrong language, since the tiny blocking script
   in <head> sets the lang/dir attributes before the body paints. */
span[data-lang]{ display:none; }
html[lang="ar"] span[data-lang="ar"]{ display:inline; }
html[lang="en"] span[data-lang="en"]{ display:inline; }

/* ---------- Utility ---------- */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow{
  display:inline-flex; align-items:center; gap:.6em;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before{
  content:'';
  width: 22px; height:1px;
  background: var(--gold);
}
.section-head{
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  letter-spacing: -0.01em;
  margin-top: .9rem;
  color: var(--ivory);
}
.section-head p{
  color: var(--ivory-dim);
  margin-top: 1rem;
  font-size: 1.05rem;
  max-width: 52ch;
}
section{ position:relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.hairline{
  height:1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  border:0;
  margin:0;
}

.btn{
  display:inline-flex; align-items:center; gap:.6em;
  padding: .95em 1.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing:.01em;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ivory);
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease), color .35s var(--ease);
}
.btn:hover{ border-color: var(--gold); transform: translateY(-2px); }
.btn-gold{
  background: var(--gold);
  border-color: var(--gold);
  color: #16140c;
}
.btn-gold:hover{
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}
.btn svg{ width:16px; height:16px; transition: transform .35s var(--ease); }
.btn:hover svg{ transform: translate(3px,-3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: fixed; top:0; left:0; right:0;
  z-index: 500;
  padding: 1.35rem 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled{
  background: rgba(12,19,16,0.86);
  backdrop-filter: blur(14px);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.nav .container{ display:flex; align-items:center; justify-content:space-between; }
.logo{
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .02em;
  color: var(--ivory);
  display:flex; align-items:center; gap:.6rem;
}
.logo .mark{
  width: 34px; height:34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display:grid; place-items:center;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--gold);
  overflow: hidden;
  flex-shrink: 0;
}
.logo .mark img{ width:100%; height:100%; object-fit:cover; }

/* ---------- Language toggle ---------- */
.lang-toggle{
  display:flex; align-items:center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  font-family: var(--font-mono);
  background: transparent;
}
.lang-toggle button{
  border:none; background:none;
  padding: .38rem .9rem;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--ivory-dim);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lang-toggle button.is-active{
  background: var(--gold);
  color: #16140c;
}
.nav .container{ gap: 1rem; }
.nav-links{ display:flex; align-items:center; gap: 2.4rem; }
.nav-links a{
  font-size:.9rem; font-weight:600; color: var(--ivory-dim);
  position:relative; padding: .3rem 0;
  transition: color .3s var(--ease);
}
.nav-links a::after{
  content:''; position:absolute; left:0; right:100%; bottom:-2px; height:1px;
  background: var(--gold); transition: right .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ color: var(--ivory); }
.nav-links a:hover::after, .nav-links a.active::after{ right:0; }

.nav-toggle{
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; padding:6px;
}
.nav-toggle span{ width:22px; height:1.5px; background: var(--ivory); transition: transform .3s var(--ease), opacity .3s var(--ease); }

/* ============================================================
   HERO — the spotlight thesis
   ============================================================ */
.hero{
  position: relative;
  min-height: 100svh;
  display:flex; align-items:center;
  padding-top: 6rem;
  overflow:hidden;
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(201,166,103,0.08), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
/* the cursor-follow spotlight, positioned via JS custom props */
.hero::before{
  content:'';
  position:absolute; inset:0;
  pointer-events:none;
  background: radial-gradient(420px 420px at var(--spot-x,70%) var(--spot-y,40%),
      rgba(201,166,103,0.16), rgba(201,166,103,0.04) 45%, transparent 70%);
  transition: background .1s linear;
  z-index:1;
}
.hero-grid{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items:center;
  width:100%;
}
.hero-copy .eyebrow{ margin-bottom: 1.4rem; }
.hero h1{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.hero h1 em{
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 400;
}
.hero-copy p{
  margin-top: 1.6rem;
  max-width: 44ch;
  font-size: 1.12rem;
  color: var(--ivory-dim);
}
.hero-actions{
  display:flex; align-items:center; gap: 1.1rem;
  margin-top: 2.6rem;
  flex-wrap: wrap;
}
.hero-tags{
  display:flex; gap: 1.6rem; margin-top: 3.2rem; flex-wrap:wrap;
}
.hero-tags .tag{
  font-family: var(--font-mono); font-size:.76rem; letter-spacing:.06em;
  color: var(--ivory-faint); text-transform: uppercase;
  display:flex; align-items:center; gap:.5rem;
}
.hero-tags .dot{ width:6px; height:6px; border-radius:50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* Hero visual: the monogram plate under museum light */
.hero-visual{
  position:relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), #0b120e 70%);
  overflow:hidden;
  box-shadow: 0 40px 80px -30px var(--shadow-deep);
}
.hero-visual::after{
  content:'';
  position:absolute; inset:0;
  background: radial-gradient(360px 360px at var(--spot-x,60%) var(--spot-y,35%),
      rgba(201,166,103,0.35), transparent 60%);
  mix-blend-mode: screen;
}
.hero-visual .plate-monogram{
  position:absolute; inset:0;
  display:grid; place-items:center;
}
.hero-visual .plate-monogram svg{ width:62%; height:auto; opacity:.92; }
.hero-visual .plaque{
  position:absolute; left:50%; bottom: 8%;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size:.7rem; letter-spacing:.14em;
  text-transform:uppercase; color: var(--ivory-faint);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .55rem 1.2rem;
  background: rgba(12,19,16,0.55);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.hero-scroll{
  position:absolute; left:50%; bottom: 2.2rem; transform:translateX(-50%);
  z-index:3;
  display:flex; flex-direction:column; align-items:center; gap:.6rem;
  color: var(--ivory-faint);
  font-family: var(--font-mono); font-size:.7rem; letter-spacing:.14em; text-transform:uppercase;
}
.hero-scroll .line{ width:1px; height:34px; background: linear-gradient(var(--gold), transparent); }

/* ============================================================
   ABOUT
   ============================================================ */
.about{ background: var(--bg-soft); }
.about-grid{
  display:grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem,6vw,5rem);
  align-items:start;
}
.about-frame{
  position:relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-m);
  overflow:hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.about-frame img{ width:100%; height:100%; object-fit:cover; }
.about-frame::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 60%, rgba(12,19,16,0.7));
}
.about-copy p{ color: var(--ivory-dim); font-size: 1.05rem; margin-bottom: 1.2rem; max-width: 58ch; }
.about-copy p:first-of-type{ color: var(--ivory); font-size: 1.2rem; font-family: var(--font-display); font-weight:400; line-height:1.5; }
.about-facts{
  margin-top: 2.4rem;
  display:grid; grid-template-columns: repeat(2,1fr);
  gap: 1.4rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.about-facts dt{ font-family: var(--font-mono); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color: var(--gold); }
.about-facts dd{ margin: .35rem 0 0; color: var(--ivory-dim); font-size:.94rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid{
  display:grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow:hidden;
}
.service-card{
  background: var(--surface);
  padding: 2.4rem 2rem;
  position:relative;
  transition: background .4s var(--ease);
  min-height: 280px;
  display:flex; flex-direction:column;
}
.service-card:hover{ background: var(--surface-2); }
.service-num{ font-family: var(--font-mono); font-size:.75rem; color: var(--gold-dim); }
.service-icon{
  width:44px; height:44px; margin-top:1.4rem;
  display:grid; place-items:center;
  border:1px solid var(--line-strong); border-radius:50%;
  color: var(--gold);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.service-card:hover .service-icon{ transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 0 6px rgba(201,166,103,0.08); }
.service-icon svg{ width:20px; height:20px; }
.service-card h3{
  font-family: var(--font-display); font-weight:500; font-size:1.25rem;
  margin-top: 1.6rem; color: var(--ivory);
}
.service-card p{
  color: var(--ivory-dim); font-size:.92rem; margin-top:.8rem;
  max-height:0; opacity:0; overflow:hidden;
  transition: max-height .5s var(--ease), opacity .4s var(--ease), margin .4s var(--ease);
}
.service-card:hover p{ max-height: 140px; opacity:1; margin-top:.8rem; }
.service-tags{ margin-top:auto; padding-top:1.2rem; display:flex; flex-wrap:wrap; gap:.4rem; }
.service-tags span{
  font-family: var(--font-mono); font-size:.68rem; letter-spacing:.04em;
  color: var(--ivory-faint); border:1px solid var(--line); border-radius:999px; padding:.3rem .7rem;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-list{ display:flex; flex-direction:column; gap: clamp(3rem,7vw,5.5rem); }
.project{
  display:grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem,5vw,4rem);
  align-items:center;
}
/* Zigzag layout via `order`, independent of text direction so it stays
   correct whether the page is Arabic (RTL) or English (LTR). */
.project-media{ order: 1; }
.project-body{ order: 2; }
.project:nth-child(even) .project-media{ order: 2; }
.project:nth-child(even) .project-body{ order: 1; }
.project-media{
  position:relative; border-radius: var(--radius-m); overflow:hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/11;
  background: var(--surface);
}
.project-media img{ width:100%; height:100%; object-fit:cover; transition: transform .8s var(--ease); }
.project-media:hover img{ transform: scale(1.045); }
.project-media::before{
  content:'';
  position:absolute; inset:0; z-index:2; pointer-events:none;
  background: radial-gradient(280px 280px at var(--spot-x,50%) var(--spot-y,50%), rgba(201,166,103,0.22), transparent 60%);
  opacity:0; transition: opacity .4s var(--ease);
}
.project-media:hover::before{ opacity:1; }
.project-index{ font-family: var(--font-mono); font-size:.78rem; color: var(--gold); letter-spacing:.1em; }
.project-body h3{
  font-family: var(--font-display); font-weight:500; font-size: clamp(1.5rem,2.6vw,2.1rem);
  margin-top: .8rem; color: var(--ivory);
}
.project-body .role{ color: var(--sage); font-size:.85rem; margin-top:.5rem; letter-spacing:.03em; }
.project-body p{ color: var(--ivory-dim); margin-top:1.1rem; max-width: 46ch; }
.project-tags{ display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.4rem; }
.project-tags span{
  font-family: var(--font-mono); font-size:.7rem; color: var(--ivory-faint);
  border:1px solid var(--line); border-radius:999px; padding:.32rem .8rem;
}
.project-actions{ display:flex; gap:1rem; margin-top: 1.8rem; }

/* ============================================================
   SKILLS — dimmer / lighting-control metaphor
   ============================================================ */
.skills-wrap{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem,6vw,5rem); align-items:center; }
.skills-note p{ color: var(--ivory-dim); max-width: 40ch; margin-top:1rem; }
.skill{ margin-bottom: 1.9rem; }
.skill:last-child{ margin-bottom:0; }
.skill-top{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:.6rem; }
.skill-top .name{ font-weight:600; color: var(--ivory); font-size:.98rem; }
.skill-top .value{ font-family: var(--font-mono); font-size:.8rem; color: var(--gold); }
.skill-track{
  height: 6px; border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow:hidden; position:relative;
}
.skill-fill{
  height:100%; width:0%; border-radius:999px;
  background: linear-gradient(90deg, var(--sage), var(--gold));
  position:relative;
  transition: width 1.4s var(--ease);
}
.skill-fill::after{
  content:'';
  position:absolute; right:-1px; top:50%; translate: 0 -50%;
  width:12px; height:12px; border-radius:50%;
  background: var(--gold-soft);
  box-shadow: 0 0 10px 3px rgba(201,166,103,0.55);
}

/* ============================================================
   STATISTICS — engraved plaques
   ============================================================ */
.stats{ background: var(--bg-soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stats-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: clamp(1.5rem,4vw,2px); }
.stat{
  text-align:center; padding: 1.5rem 1rem;
  border-right: 1px solid var(--line);
}
.stat:last-child{ border-right:none; }
.stat .num{
  font-family: var(--font-display); font-weight:500;
  font-size: clamp(2.4rem,5vw,3.4rem);
  color: var(--gold-soft);
  display:flex; align-items:baseline; justify-content:center; gap:.15em;
}
.stat .num .suffix{ font-size:.5em; color: var(--gold); }
.stat .label{
  margin-top:.6rem; font-family: var(--font-mono); font-size:.72rem;
  letter-spacing:.08em; text-transform:uppercase; color: var(--ivory-faint);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials{ position:relative; }
.testi-track{ position:relative; min-height: 260px; }
.testi{
  position:absolute; inset:0;
  opacity:0; visibility:hidden; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
}
.testi.is-active{ opacity:1; visibility:visible; transform:none; position:relative; }
.testi blockquote{
  font-family: var(--font-display); font-weight:400; font-style:italic;
  font-size: clamp(1.3rem,2.6vw,1.9rem); line-height:1.5; color: var(--ivory);
  max-width: 46ch;
}
.testi blockquote::before{ content:'“'; color: var(--gold); }
.testi blockquote::after{ content:'”'; color: var(--gold); }
.testi-person{ display:flex; align-items:center; gap:1rem; margin-top: 2rem; }
.testi-person img{ width:46px; height:46px; border-radius:50%; object-fit:cover; border:1px solid var(--line-strong); }
.testi-person .name{ font-weight:700; font-size:.94rem; }
.testi-person .role{ color: var(--ivory-faint); font-size:.8rem; margin-top:.15rem; }
.testi-controls{ display:flex; align-items:center; gap:1.4rem; margin-top: 2.6rem; }
.testi-arrow{
  width:42px; height:42px; border-radius:50%; border:1px solid var(--line-strong);
  background:none; color: var(--ivory); display:grid; place-items:center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.testi-arrow:hover{ background: var(--gold); border-color: var(--gold); color:#16140c; }
.testi-arrow svg{ width:16px; height:16px; }
.testi-dots{ display:flex; gap:.5rem; }
.testi-dots button{
  width:7px; height:7px; border-radius:50%; background: var(--line-strong); border:none; padding:0;
  transition: background .3s var(--ease), width .3s var(--ease);
}
.testi-dots button.is-active{ background: var(--gold); width:20px; border-radius:4px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact{ background: var(--bg-soft); }
.contact-grid{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem,6vw,5rem); }
.contact-info p{ color: var(--ivory-dim); margin-top:1rem; max-width: 38ch; }
.contact-list{ margin-top: 2.4rem; display:flex; flex-direction:column; gap:1.1rem; }
.contact-list a, .contact-list span{
  display:flex; align-items:center; gap:.9rem;
  font-size:.98rem; color: var(--ivory);
  padding-bottom: .9rem; border-bottom: 1px solid var(--line);
}
.contact-list .ico{
  width:36px; height:36px; border-radius:50%; border:1px solid var(--line-strong);
  display:grid; place-items:center; color: var(--gold); flex-shrink:0;
}
.contact-list .ico svg{ width:16px; height:16px; }
.social-row{ display:flex; gap: .8rem; margin-top: 2.4rem; }
.social-row a{
  width:42px; height:42px; border-radius:50%; border:1px solid var(--line-strong);
  display:grid; place-items:center; color: var(--ivory-dim);
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.social-row a:hover{ color:#16140c; background: var(--gold); border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 10px 22px -8px rgba(201,166,103,0.55); }
.social-row a svg{ width:17px; height:17px; }

.form{
  background: var(--surface);
  border:1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(1.8rem,4vw,2.6rem);
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field{ margin-bottom: 1.4rem; position:relative; }
.field label{
  display:block; font-family: var(--font-mono); font-size:.72rem; letter-spacing:.08em;
  text-transform:uppercase; color: var(--ivory-faint); margin-bottom:.55rem;
}
.field input, .field select, .field textarea{
  width:100%; background: var(--bg); border:1px solid var(--line); border-radius: var(--radius-s);
  padding: .85em 1em; color: var(--ivory); font-family: var(--font-body); font-size: .96rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea{ resize: vertical; min-height:120px; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,166,103,0.14);
}
.form-foot{ display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-top: .6rem; }
.form-status{ font-family: var(--font-mono); font-size:.8rem; color: var(--sage); min-height: 1.2em; }
.form-status.error{ color:#c98867; }
.form-status.success{ color: var(--gold-soft); }
.form button[type="submit"]{ border:none; }
.form button[type="submit"]:disabled{ opacity:.6; cursor: progress; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ padding: 4rem 0 2.2rem; }
.footer-top{
  display:flex; justify-content:space-between; align-items:flex-start;
  flex-wrap:wrap; gap: 2.5rem; padding-bottom: 3rem;
}
.footer-brand .logo{ margin-bottom: 1rem; }
.footer-brand p{ color: var(--ivory-faint); max-width: 32ch; font-size:.9rem; }
.footer-cols{ display:flex; gap: clamp(2.5rem,6vw,5rem); }
.footer-col h4{
  font-family: var(--font-mono); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.footer-col a{ display:block; color: var(--ivory-dim); font-size:.9rem; margin-bottom:.7rem; transition: color .3s var(--ease); }
.footer-col a:hover{ color: var(--ivory); }
.footer-bottom{
  padding-top: 2rem; display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:1rem;
  font-family: var(--font-mono); font-size:.75rem; color: var(--ivory-faint);
}
.to-top{
  width:46px; height:46px; border-radius:50%; border:1px solid var(--line-strong);
  display:grid; place-items:center; color: var(--gold);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.to-top:hover{ transform: translateY(-5px); box-shadow: 0 12px 24px -10px rgba(201,166,103,0.5); }
.to-top svg{ width:16px; height:16px; }