/*
 * Main stylesheet for the AR Electric website.
 *
 * This file defines the black and gold colour palette and sets up
 * responsive layouts for sections including navigation, hero, about,
 * services and contact. Use of CSS variables makes it easy to tweak
 * colours centrally.
 */

/* Colour and typography variables */
:root {
  --primary-color: #cda44a; /* muted gold tone */
  --secondary-color: #0a0a0a; /* deep black background */
  --text-color: #f5f5f5; /* off white for body text */
  --accent-color: #f0c75e; /* bright gold accent for hover */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Raleway', sans-serif;
}

/* Reset baseline styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--secondary-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .logo span {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
}

/* Ensure the logo container aligns image and text horizontally */
.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo img {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
}

.navbar .nav-links {
  display: flex;
  list-style: none;
}

.navbar .nav-links li {
  margin-left: 1.5rem;
}

.navbar .nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  transition: color 0.3s ease;
  color: var(--text-color);
}

.navbar .nav-links a:hover {
  color: var(--primary-color);
}

/* Hamburger menu icon (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: var(--primary-color);
  margin-bottom: 4px;
  border-radius: 10px;
  transition: 0.3s;
}

/* Hero section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-color);
  padding-top: 60px; /* compensate for fixed navbar */
  /* Set a local background image that depicts an electrician working in a residential setting.
     The linear-gradient overlay darkens the image so that the hero text remains legible. */
  /* Slightly lighten the overlay on the hero background to let the luxurious lighting shine through */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('images/background.webp');
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3rem;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--accent-color);
}

/* Section common styles */
.about,
.services,
.contact {
  padding: 5rem 0;
  background-color: var(--secondary-color);
}

.about h2,
.services h2,
.contact h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.about p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: center;
}

/* Services grid */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Icons inside service cards are represented by emojis, which we style here */
.service-card .icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  /* tint emoji icons to match our gold palette */
  filter: grayscale(100%) sepia(100%) hue-rotate(10deg) brightness(1.2) saturate(5);
}

.service-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Contact form */
.contact p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
}

form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  background: transparent;
  color: var(--text-color);
  font-size: 1rem;
  font-family: var(--font-body);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

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

#formMsg {
  margin-top: 1rem;
  text-align: center;
  color: var(--primary-color);
  font-size: 1rem;
}

.hidden {
  display: none;
}

/* Footer */
.footer {
  padding: 1.5rem 0;
  background-color: var(--secondary-color);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer p {
  font-size: 0.9rem;
  color: #888;
}

/* Responsive behaviour */
@media (max-width: 768px) {
  /* Hide navigation links off-screen until toggled */
  .navbar .nav-links {
    position: fixed;
    right: 0;
    top: 60px;
    height: calc(100% - 60px);
    background: var(--secondary-color);
    flex-direction: column;
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
  }
  .navbar .nav-links.open {
    width: 200px;
  }
  .navbar .nav-links li {
    margin: 1rem 0;
    text-align: center;
  }
  .hamburger {
    display: flex;
  }
}

/* Cinematic black-and-gold electric intro: no video or external dependencies. */
body.no-scroll { overflow: hidden; }
#preloader {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center; overflow: hidden;
  isolation: isolate; background: #050505;
  opacity: 1; visibility: visible;
  transition: opacity .6s ease, visibility .6s ease;
  pointer-events: auto;
}
#preloader.dismissed { opacity: 0; visibility: hidden; pointer-events: none; }
#preloader .intro-atmosphere {
  position: absolute; inset: -20%; opacity: 0;
  background: radial-gradient(ellipse at center, rgba(193,123,26,.22) 0%, rgba(88,50,8,.1) 28%, transparent 62%);
  transform: scale(.85);
}
#preloader.is-playing .intro-atmosphere {
  animation: introAtmosphere 2.1s .15s ease-out both;
}
/* Original gold lightning image now plays as the crack/impact effect. */
#preloader .lightning-video {
  position: absolute; inset: 0; opacity: 0;
  background: url('images/lightning.webp') center center / cover no-repeat;
  filter: saturate(1.35) brightness(1.2);
  transform: scale(1.08);
  mix-blend-mode: screen;
}
#preloader.is-playing .lightning-video { animation: introFracture 1.2s .48s both; }
#preloader .intro-strike {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
}
#preloader .intro-strike path {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; opacity: 0;
}
#preloader .strike-halo {
  stroke: #eaa72f; stroke-width: 13;
  filter: url(#boltGlow);
}
#preloader .strike-core {
  stroke: #fff7cb; stroke-width: 3.5;
  filter: drop-shadow(0 0 7px #f4b439);
}
#preloader .strike-branch {
  stroke: #f2b84f; stroke-width: 2.4;
  filter: drop-shadow(0 0 6px #ffa722);
}
#preloader.is-playing .strike-halo,
#preloader.is-playing .strike-core { animation: introDrawStrike .81s .23s ease-out both; }
#preloader.is-playing .strike-branch { animation: introDrawBranch .64s .56s ease-out both; }
#preloader .intro-impact {
  position: absolute; top: 61%; left: 51%; width: min(78vw,850px);
  height: min(78vw,850px); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,244,193,.95) 0%, rgba(255,186,53,.55) 4%, rgba(195,103,16,.16) 24%, transparent 58%);
  transform: translate(-50%,-50%) scale(.1); opacity: 0;
  mix-blend-mode: screen;
}
#preloader.is-playing .intro-impact { animation: introImpact .69s .65s ease-out both; }
#preloader .intro-flash {
  position: absolute; inset: 0; background: #ffd998; opacity: 0;
  mix-blend-mode: screen;
}
#preloader.is-playing .intro-flash { animation: introFlash .45s .70s ease-out both; }
#preloader .intro-ring {
  position: absolute; left: 50%; top: 54%;
  width: 170px; aspect-ratio: 1; border: 1px solid #e7b04d;
  border-radius: 50%; box-shadow: 0 0 24px #b77a22, inset 0 0 24px #b77a22;
  opacity: 0; transform: translate(-50%, -50%) scale(.25);
}
#preloader.is-playing .intro-ring { animation: introShockwave .75s .73s ease-out both; }
#preloader .intro-sparks { position: absolute; left: 50%; top: 54%; width: 0; height: 0; }
#preloader .intro-sparks i {
  position: absolute; display: block; height: 2px; width: 38px;
  left: 0; top: 0; border-radius: 50px;
  background: linear-gradient(90deg, #fffbd1, #f5b83e, transparent);
  box-shadow: 0 0 11px rgba(251,180,48,.9);
  transform-origin: 0 50%; opacity: 0;
}
#preloader .intro-sparks i:nth-child(1) { --angle: 0deg; --travel: 110px; }
#preloader .intro-sparks i:nth-child(2) { --angle: 42deg; --travel: 150px; }
#preloader .intro-sparks i:nth-child(3) { --angle: 95deg; --travel: 120px; }
#preloader .intro-sparks i:nth-child(4) { --angle: 132deg; --travel: 145px; }
#preloader .intro-sparks i:nth-child(5) { --angle: 182deg; --travel: 128px; }
#preloader .intro-sparks i:nth-child(6) { --angle: 227deg; --travel: 155px; }
#preloader .intro-sparks i:nth-child(7) { --angle: 278deg; --travel: 105px; }
#preloader .intro-sparks i:nth-child(8) { --angle: 322deg; --travel: 137px; }
#preloader.is-playing .intro-sparks i { animation: introSpark .62s .76s ease-out both; }
#preloader .logo-transition {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: 0; width: min(90vw,760px);
  color: #d7ae58; opacity: 0;
  transform: translateY(22px) scale(.94);
  text-align: center;
}
#preloader.is-playing .logo-transition { animation: introLogoIn .83s 1.19s cubic-bezier(.16,.8,.2,1) both; }
#preloader .intro-mark {
  position: relative; width: 86px; height: 104px;
  display: grid; place-items: center;
  filter: drop-shadow(0 0 20px rgba(240,178,67,.62));
  margin-bottom: .45rem;
}
#preloader .intro-mark::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse, rgba(221,159,55,.22), transparent 65%);
}
#preloader .intro-mark .brand-icon { height: 86px; width: 58px; }
#preloader .intro-brand {
  font-family: var(--font-heading); font-weight: 700; line-height: 1.1;
  font-size: clamp(2.4rem, 7vw, 5.7rem);
  letter-spacing: -.035em; text-transform: uppercase; white-space: nowrap;
  color: #d1a34f; text-shadow: 0 0 28px rgba(202,151,52,.15);
}
#preloader .intro-brand strong { color: #fff1c8; }
#preloader .intro-rule {
  margin-top: 1.15rem; display: block; width: min(56vw,340px);
  height: 1px; background: linear-gradient(90deg,transparent,#e7b85f,transparent);
  transform: scaleX(0); transform-origin: center;
}
#preloader.is-playing .intro-rule { animation: introLine .8s 1.65s ease-out both; }
#preloader .intro-tagline {
  margin-top: .9rem; color: #d7c6a6;
  font-family: var(--font-heading); font-size: clamp(.56rem, 1.5vw, .8rem);
  font-weight: 600; letter-spacing: .34em; line-height: 1.8; opacity: 0;
}
#preloader.is-playing .intro-tagline { animation: introCaption .65s 1.78s ease-out both; }
@keyframes introAtmosphere {
  0% { opacity: 0; transform: scale(.86); }
  36% { opacity: 1; }
  100% { opacity: .42; transform: scale(1.24); }
}
@keyframes introDrawStrike {
  0% { opacity: 0; stroke-dashoffset: 1400; }
  12% { opacity: 1; }
  65% { opacity: 1; stroke-dashoffset: 0; }
  83% { opacity: .86; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes introDrawBranch {
  0% { opacity: 0; stroke-dashoffset: 1400; }
  24% { opacity: .85; }
  56% { opacity: 1; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes introFracture {
  0%, 8% { opacity: 0; transform: scale(1.12); }
  26% { opacity: .9; }
  50% { opacity: .5; transform: scale(1.035); }
  70% { opacity: .9; }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes introImpact {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.1); }
  22% { opacity: .8; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.9); }
}
@keyframes introFlash {
  0% { opacity: 0; }
  22% { opacity: .38; }
  100% { opacity: 0; }
}
@keyframes introShockwave {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.25); }
  20% { opacity: .9; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(5.4); }
}
@keyframes introSpark {
  0% { opacity: 0; transform: rotate(var(--angle)) translateX(0) scaleX(.2); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--angle)) translateX(var(--travel)) scaleX(.12); }
}
@keyframes introLogoIn {
  0% { opacity: 0; transform: translateY(20px) scale(.94); filter: blur(12px); }
  45% { opacity: .96; }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes introLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes introCaption { from { opacity: 0; letter-spacing: .5em; } to { opacity: 1; letter-spacing: .34em; } }
@media (max-width: 600px) {
  #preloader .intro-strike { width: 165%; height: 100%; left: -32.5%; }
  #preloader .intro-mark { height: 92px; width: 76px; }
  #preloader .intro-mark .brand-icon { height: 75px; width: 51px; }
  #preloader .intro-tagline { letter-spacing: .24em; }
}
@media (prefers-reduced-motion: reduce) {
  #preloader { display: none !important; }
}

/* About page specific styles */
.about-hero {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-color);
  padding-top: 60px; /* offset for fixed navbar */
  /* Use the same local background image for the about page hero so the look remains consistent across pages. */
  /* Use the same lighter overlay on the about page hero */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('images/background.webp');
  background-size: cover;
  background-position: center;
}

.about-page-content {
  padding: 5rem 0;
  background-color: var(--secondary-color);
}

.about-page-content h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.about-page-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-align: center;
}
/* Site-ready adjustments: responsive navigation, accessible forms and accurate branding. */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--primary-color); }
.brand-type { font-family: var(--font-heading); font-weight: 700; letter-spacing: -.04em; font-size: clamp(1.25rem, 3vw, 1.8rem); text-transform: uppercase; white-space: nowrap; }
.brand-type strong, .intro-brand strong { color: #f6e7bb; font-weight: 700; }
.brand-icon { display: inline-block; width: 23px; height: 34px; flex-shrink: 0; background: linear-gradient(145deg, #ffdb81, #cda44a); clip-path: polygon(58% 0, 7% 56%, 49% 56%, 29% 100%, 95% 36%, 57% 36%); filter: drop-shadow(0 0 5px rgba(205,164,74,.5)); }
.navbar { gap: 1rem; min-height: 70px; }
.navbar .nav-links { gap: .6rem; }
.navbar .nav-links li { margin-left: .9rem; }
.navbar .logo { flex: 0 0 auto; }
.hamburger { appearance: none; background: transparent; border: 0; padding: .65rem; align-items: center; justify-content: center; }
.hamburger:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #ffe39a; outline-offset: 3px; }
.btn-primary { cursor: pointer; border: 0; }
.hero-content { width: min(90%,760px); }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.17; text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.hero-content p { text-shadow: 0 2px 15px #000; }
.service-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.service-card { text-align: left; border: 1px solid rgba(205,164,74,.20); background: linear-gradient(145deg, #1b1915, #101010); }
.service-card .icon { font-size: 2.2rem; font-family: var(--font-heading); color: var(--primary-color); filter: none; }
.service-card p { color: #dad6cc; }
.contact { background: linear-gradient(180deg,#0a0a0a,#16130e); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: .85rem 1rem; background: #131313; border: 1px solid #837049; border-radius: 6px; color: #f5f5f5; font-size: 1rem; font-family: var(--font-body); }
.form-group select { color-scheme: dark; }
.contact form > button { width: 100%; border-radius: 6px; min-height: 52px; }
.contact .form-note { margin: 1.25rem 0 0; font-size: .92rem; color: #d6d1c7; }
.form-note a, .footer-sub a { color: #e6bd66; text-decoration: underline; text-underline-offset: .2em; }
.form-note a:hover,.footer-sub a:hover { color: #fff; }
.honeypot { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.footer-sub { margin-top: .3rem; }
.about-callout { max-width: 680px; text-align: center; margin: 2.5rem auto 0; padding: 2.2rem; border: 1px solid rgba(205,164,74,.4); border-radius: 8px; background: #17140f; }
.about-callout h3 { color: var(--primary-color); font-size: 1.45rem; margin-bottom: .35rem; }
.about-callout p { margin-bottom: 1.25rem; }
.thanks-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: radial-gradient(circle at 50% 25%,#2a2115,#090909 60%); }
.thanks-card { max-width: 600px; text-align: center; padding: clamp(2rem,6vw,4rem); border: 1px solid rgba(205,164,74,.35); border-radius: 14px; background: #13110f; }
.thanks-mark { display: inline-grid; place-items: center; margin-bottom: 1.5rem; color: #101010; background: #cda44a; width: 72px; height: 72px; border-radius: 50%; font-size: 2.4rem; }
.thanks-card h1 { color: #cda44a; font-family: var(--font-heading); font-size: clamp(2rem,5vw,2.8rem); line-height: 1.2; margin: .7rem 0 1rem; }
.thanks-card p:not(.eyebrow) { margin: 0 0 1.6rem; }
.eyebrow { font-size: .8rem; color: #cda44a; font-weight: 700; letter-spacing: .2em; }
@media(max-width:768px) {
  .navbar { padding: .75rem 1rem; }
  .navbar .nav-links { top: 70px; height: auto; max-height: calc(100dvh - 70px); padding: 0; right: 0; box-shadow: -6px 12px 22px rgba(0,0,0,.4); }
  .navbar .nav-links.open { width: min(75vw,280px); padding: 1rem 0; border-left: 1px solid rgba(205,164,74,.2); }
  .hamburger { display: flex; }
  .hero { min-height: 700px; min-height: 100svh; height: auto; padding: 7rem 0 5rem; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .about, .services, .contact, .about-page-content { padding: 4rem 0; }
  .about-hero { min-height: 380px; height: 52vh; }
}
@media(max-width:380px) { .brand-type { font-size: 1.2rem; } .brand-icon { width: 19px; height: 28px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }


/* Premium AR Electric portfolio gallery — real photographs only. */
.navbar .nav-links a[aria-current="page"] { color: #e8bf6c; }
.work-teaser { background: linear-gradient(120deg,#16130e 0%,#242016 46%,#0d0d0c 100%); border-top: 1px solid rgba(205,164,74,.19); border-bottom: 1px solid rgba(205,164,74,.19); padding: 5rem 0; }
.work-teaser-inner { display:flex; align-items:center; justify-content:space-between; gap:3rem; }
.work-teaser-copy { max-width:730px; }
.work-teaser h2, .portfolio-content h2, .portfolio-contact h2 { font-family:var(--font-heading); letter-spacing:-.035em; line-height:1.2; }
.work-teaser h2 { color:#f3e8ce; margin:.5rem 0 1.2rem; font-size:clamp(2rem,3.6vw,3rem); }
.work-teaser p:not(.portfolio-kicker) { max-width:640px; color:#d4cfc6; font-size:1.06rem; }
.work-teaser .btn-primary { flex:0 0 auto; border-radius:6px; }
.portfolio-kicker { color:#d4a74e; font-family:var(--font-heading); font-size:.78rem; font-weight:700; letter-spacing:.2em; }
.portfolio-hero { position:relative; display:flex; align-items:center; min-height:clamp(490px,60vh,680px); padding:9rem 0 6.5rem; overflow:hidden; isolation:isolate; background:#0d0d0c; }
.portfolio-hero::before { content:""; position:absolute; inset:0; z-index:-2; background: url('images/background.webp') center 42%/cover no-repeat; opacity:.3; }
.portfolio-hero::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(90deg,rgba(7,7,7,.95) 0%,rgba(9,8,7,.87) 46%,rgba(8,8,8,.28) 100%), linear-gradient(0deg,#0a0a0a,transparent 30%); }
.portfolio-hero-content { position:relative; }
.portfolio-hero h1 { color:#f4ebd7; max-width:880px; margin:1.25rem 0 1.25rem; line-height:1.06; font-family:var(--font-heading); font-size:clamp(2.75rem,6.2vw,5.85rem); letter-spacing:-.065em; }
.portfolio-hero h1 em { font-style:normal; color:#cda44a; }
.portfolio-hero-desc { max-width:570px; color:#d6d1c6; font-size:clamp(1rem,1.7vw,1.19rem); }
.portfolio-hero-link { display:inline-flex; align-items:center; gap:.75rem; margin-top:2.2rem; border-bottom:1px solid #cda44a; padding-bottom:.45rem; color:#ecd299; font-family:var(--font-heading); font-size:.88rem; font-weight:600; }
.portfolio-hero-link span { font-size:1.45rem; line-height:1; }
.portfolio-hero-index { position:absolute; bottom:2.3rem; right:5%; color:#a9a193; font-family:var(--font-heading); font-size:.7rem; letter-spacing:.2em; }
.portfolio-content { background:linear-gradient(#0a0a0a,#11100e); padding:6rem 0 7.5rem; }
.portfolio-section-heading { display:flex; justify-content:space-between; align-items:end; gap:4rem; padding-bottom:2.3rem; border-bottom:1px solid rgba(205,164,74,.27); }
.portfolio-section-heading h2 { margin:.55rem 0 0; color:#f6eddd; font-size:clamp(2.1rem,4vw,3.15rem); }
.portfolio-section-heading > p { max-width:390px; color:#c7c2b8; font-size:.98rem; }
.gallery-coming-soon { margin-top:2rem; }
.gallery-coming-soon-top { display:inline-flex; gap:.6rem; align-items:center; padding:.35rem .7rem; background:rgba(205,164,74,.085); border:1px solid rgba(205,164,74,.27); border-radius:30px; font-family:var(--font-heading); color:#d8b777; font-size:.67rem; letter-spacing:.1em; font-weight:700; }
.gallery-status-dot { width:7px; height:7px; border-radius:50%; background:#d7b565; box-shadow:0 0 10px rgba(215,181,101,.4); }
.gallery-coming-soon > h3 { font-family:var(--font-heading); font-size:clamp(1.45rem,2.5vw,2rem); font-weight:600; margin:1.15rem 0 .5rem; color:#f3e6c8; }
.gallery-coming-soon > p { max-width:700px; color:#bfb8ab; }
.portfolio-categories { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.15rem; margin-top:2.7rem; }
.portfolio-category { min-height:268px; padding:1.5rem; border:1px solid #49402e; border-radius:10px; position:relative; background: radial-gradient(circle at 50% 30%,rgba(206,158,65,.075),transparent 48%),linear-gradient(145deg,#1b1915,#10100f); overflow:hidden; transition:transform .2s ease,border-color .2s ease; }
.portfolio-category:hover { transform:translateY(-4px); border-color:#917447; }
.category-number { color:#776b55; font-family:var(--font-heading); font-weight:700; font-size:.72rem; letter-spacing:.16em; }
.portfolio-category h4 { font-family:var(--font-heading); color:#e8c47d; font-size:1.06rem; margin-top:.6rem; }
.portfolio-category p { color:#b9b3a7; font-size:.86rem; margin-top:.3rem; }
.category-visual { width:86px; height:86px; margin:1.3rem auto 1.2rem; display:grid; place-items:center; color:#d5af63; position:relative; }
.category-visual::before { content:""; position:absolute; inset:0; border-radius:50%; border:1px solid rgba(205,164,74,.28); box-shadow:0 0 44px rgba(205,164,74,.06); }
.category-visual > span { display:block; width:42px; height:55px; border:2px solid currentColor; border-radius:5px; position:relative; }
.visual-panels > span::before { content:""; position:absolute; left:8px; top:7px; width:20px; height:3px; box-shadow:0 9px 0 currentColor,0 18px 0 currentColor,0 27px 0 currentColor,0 36px 0 currentColor; background:currentColor; opacity:.7; }
.visual-ev > span { width:38px; height:48px; border-radius:9px; }
.visual-ev > span::before { content:"⚡"; position:absolute; font-size:25px; line-height:1; left:5px; top:9px; }
.visual-ev > span::after { content:""; position:absolute; left:36px; top:26px; width:12px; height:22px; border:2px solid currentColor; border-left:0; border-radius:0 7px 7px 0; }
.visual-solar > span { width:57px; height:38px; transform:skew(-13deg); border-radius:3px; background:repeating-linear-gradient(90deg,transparent 0 14px,rgba(205,164,74,.5) 15px 16px),repeating-linear-gradient(0deg,transparent 0 15px,rgba(205,164,74,.5) 16px 17px); }
.visual-light > span { width:34px; height:36px; border-radius:50% 50% 40% 40%; }
.visual-light > span::after { content:""; position:absolute; width:18px; height:12px; left:6px; top:34px; border:2px solid currentColor; border-radius:0 0 5px 5px; }
.portfolio-contact { padding:5.5rem 0; background:linear-gradient(110deg,#251d12,#121110 70%); border-top:1px solid rgba(205,164,74,.25); }
.portfolio-contact-inner { display:flex; justify-content:space-between; align-items:center; gap:3rem; }
.portfolio-contact h2 { margin:.6rem 0 1rem; font-size:clamp(2rem,3.8vw,3rem); color:#f5e9d2; }
.portfolio-contact p:not(.portfolio-kicker) { color:#bfb8ab; }
.portfolio-contact .btn-primary { flex:0 0 auto; border-radius:6px; text-align:center; }
.project-filters { margin:2.2rem 0; display:flex; flex-wrap:wrap; gap:.65rem; }
.project-filter { cursor:pointer; background:#181613; border:1px solid #4b402c; padding:.65rem 1.05rem; border-radius:30px; color:#e2d8c8; font-family:var(--font-heading); font-size:.82rem; }
.project-filter[aria-pressed="true"] { background:#cda44a; color:#12100e; border-color:#cda44a; }
.project-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.35rem; margin-top:2rem; }
.project-card { overflow:hidden; border:1px solid #473c2a; border-radius:10px; background:#171512; }
.project-photo { display:block; width:100%; border:0; background:#27231c; cursor:zoom-in; aspect-ratio:4/3; padding:0; }
.project-photo img { height:100%; width:100%; object-fit:cover; display:block; transition:transform .4s; }
.project-card:hover .project-photo img { transform:scale(1.035); }
.project-details { padding:1.4rem; }
.project-label { color:#d7b26a; font-size:.7rem; font-family:var(--font-heading); font-weight:700; letter-spacing:.14em; text-transform:uppercase; }
.project-details h3 { margin:.45rem 0; color:#f5ecdc; font-family:var(--font-heading); font-size:1.15rem; }
.project-details p,.project-location { color:#b8b0a4; font-size:.88rem; }
.project-location { display:block; margin-top:1rem; }
.project-lightbox { width:min(92vw,1100px); max-height:92vh; margin:auto; background:#111; color:#f2eadc; border:1px solid #907442; border-radius:10px; padding:1.25rem; }
.project-lightbox::backdrop { background:rgba(0,0,0,.89); }
.project-lightbox img { max-width:100%; max-height:75vh; height:auto; display:block; margin:auto; object-fit:contain; }
.project-lightbox p { margin:.6rem 0 0; text-align:center; font-family:var(--font-heading); }
.lightbox-close { position:absolute; top:1rem; right:1rem; border:1px solid #96825e; color:#fff; background:#15120e; border-radius:50%; height:40px; width:40px; font-size:1.6rem; cursor:pointer; }
/* Preserve semantic hidden state despite layout rules. */
[hidden] { display:none !important; }
@media(max-width:1000px) { .portfolio-categories { grid-template-columns:repeat(2,minmax(0,1fr)); } .project-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
  .work-teaser { padding:4rem 0; }
  .work-teaser-inner,.portfolio-contact-inner,.portfolio-section-heading { flex-direction:column; align-items:flex-start; gap:1.5rem; }
  .portfolio-hero { min-height:530px; padding:9rem 0 6rem; }
  .portfolio-hero::after { background:linear-gradient(90deg,rgba(7,7,7,.92),rgba(7,7,7,.55)),linear-gradient(0deg,#0a0a0a,transparent 30%); }
  .portfolio-content { padding:4.5rem 0 5rem; }
  .portfolio-section-heading { gap:1rem; }
  .portfolio-hero-index { bottom:1.4rem; }
  .project-gallery { grid-template-columns:1fr; }
}
@media(max-width:440px) { .portfolio-categories { grid-template-columns:1fr; } .portfolio-category { min-height:220px; } .category-visual { margin:.6rem auto; } .portfolio-contact .btn-primary { width:100%; } }

/* Multiple photos grouped under one completed project */
.project-photo-strip{display:flex;gap:7px;overflow-x:auto;padding:9px;background:#11100e;border-bottom:1px solid #473c2a;}
.project-photo-strip button{flex:0 0 62px;width:62px;height:54px;padding:0;border:1px solid #665433;border-radius:5px;overflow:hidden;cursor:zoom-in;background:#27231c;}
.project-photo-strip img{width:100%;height:100%;object-fit:cover;display:block;}
.project-photo-strip button:hover,.project-photo-strip button:focus-visible{border-color:#e7ba57;outline-color:#e7ba57;}
