:root {
  --bg: #120e0a;
  --bg-2: #181410;
  --card: #1c1712;
  --gold: #e8792b;
  --gold-soft: #ffb454;
  --amber-deep: #b85a1c;
  --line: rgba(255, 180, 84, 0.12);
  --text: #fbf7ef;
  --muted: #9e9689;
  --steel: #c9bba4;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Sora", sans-serif;
  --body: "Inter", sans-serif;
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.65;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-soft);
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-gold:hover::after {
  transform: translateX(120%);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--amber-deep));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(232, 121, 43, 0.6);
}

.btn-gold:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -6px rgba(232, 121, 43, 0.75);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(251, 247, 239, 0.1);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(251, 247, 239, 0.28);
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 14, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 180, 84, 0.1);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(18, 14, 10, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.scroll-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  pointer-events: none;
}

.header-inner {
  position: relative;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--amber-deep));
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
}

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

.brand-text strong {
  font-weight: 600;
  font-size: 0.8rem;
  font-family: var(--sans);
  white-space: nowrap;
}

.brand-text em {
  font-style: normal;
  color: var(--steel);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a.is-active:not(.nav-cta)::after {
  width: 100%;
}

.nav-cta {
  color: #fff !important;
  background: linear-gradient(135deg, var(--gold), var(--amber-deep));
  padding: 11px 22px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.86rem !important;
  font-weight: 600;
  box-shadow: 0 8px 24px -8px rgba(232, 121, 43, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -6px rgba(232, 121, 43, 0.75);
}

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 140px 0 90px;
  overflow: hidden;
  background: #090807;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 6%;
  width: 42%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(232, 121, 43, 0.22), transparent 68%);
  filter: blur(40px);
  animation: glow-pulse 7s ease-in-out infinite;
  pointer-events: none;
}

.hero-visual img {
  position: absolute;
  top: 0;
  left: 2%;
  right: auto;
  width: min(56%, 720px);
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: contrast(1.06) saturate(0.95);
  animation: ken-burns 18s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, #090807 0%, rgba(9, 8, 7, 0.9) 32%, rgba(9, 8, 7, 0.28) 56%, transparent 78%),
    linear-gradient(to top, #090807 0%, transparent 22%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 0 var(--pad);
  margin-left: auto;
  margin-right: max(0px, calc((100% - var(--max) - 4rem) / 2));
}

.hero-copy > * {
  animation: rise-in 0.9s ease both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.26s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.36s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.46s; }

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.2rem;
}

.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
  text-shadow: 0 0 24px rgba(255, 180, 84, 0.25);
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.4vw, 1.12rem);
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2.2rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(251, 247, 239, 0.03);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.tag-pill:hover {
  border-color: rgba(232, 121, 43, 0.45);
  color: var(--gold-soft);
  background: rgba(232, 121, 43, 0.08);
  transform: translateY(-2px);
}

.section {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 4.6rem var(--pad);
  border-top: 1px solid rgba(255, 180, 84, 0.08);
  scroll-margin-top: 4.75rem;
}

.section-head {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  margin-bottom: 2.4rem;
  align-items: start;
}

.section-head .index {
  margin: 0.2rem 0 0;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.55rem;
  font-weight: 400;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  max-width: 18ch;
}

.profile-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.lede {
  font-size: 1.12rem;
  line-height: 1.8;
  color: #e8e0d4;
}

.profile-copy p {
  color: var(--muted);
}

.identity-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem 1.5rem 1.2rem;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.identity-card:hover {
  border-color: rgba(232, 121, 43, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.identity-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
  color: var(--gold-soft);
}

.identity-card dl {
  margin: 0;
}

.identity-card dl div {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(251, 247, 239, 0.06);
}

.identity-card dt {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.identity-card dd {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.company-intro {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.4rem;
}

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

.capability-grid article {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.45rem 1.25rem 1.5rem;
  transition: border-color 0.35s ease, transform 0.35s ease;
}

.capability-grid article:hover {
  border-color: rgba(232, 121, 43, 0.45);
  transform: translateY(-3px);
}

.cap-no {
  margin: 0 0 1.1rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.capability-grid h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.capability-grid p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.company-note {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 180, 84, 0.08);
}

.company-note h3 {
  font-size: 1.3rem;
  margin-bottom: 0.45rem;
}

.company-note p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.15rem;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 2.4rem 1.6rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.3rem;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  border-radius: 50%;
}

.when {
  margin: 0 0 0.3rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.where {
  color: var(--steel);
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
}

.timeline p:last-child {
  color: var(--muted);
  max-width: 46rem;
  margin: 0;
}

.qual-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.2rem;
}

.qual-list h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.qual-list p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

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

.cert-card {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f0c0a;
  cursor: pointer;
  text-align: left;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.4s ease;
}

.cert-card img {
  width: 100%;
  height: 11.5rem;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s ease;
}

.cert-card span {
  display: block;
  padding: 0.7rem 0.75rem 0.85rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cert-card:hover,
.cert-card:focus-visible {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.cert-card:hover img {
  transform: scale(1.06);
}

.contact-details address {
  font-style: normal;
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 1.6rem;
}

.contact-details ul {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}

.contact-details li {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(251, 247, 239, 0.06);
}

.contact-details li span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-details a {
  color: var(--text);
  word-break: break-word;
}

.contact-details a:hover {
  color: var(--gold-soft);
}

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

.contact-form {
  display: grid;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #0f0c0a;
  border: 1px solid rgba(251, 247, 239, 0.08);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
}

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

.form-note {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}

.site-footer {
  padding: 3rem var(--pad) 2.4rem;
  text-align: center;
  border-top: 1px solid rgba(255, 180, 84, 0.08);
  color: var(--muted);
}

.fine {
  font-size: 0.78rem;
}

.lightbox {
  position: relative;
  width: min(920px, 94vw);
  max-height: 92vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #120e0a;
  color: var(--text);
  padding: 1.4rem;
  animation: rise-in 0.4s ease;
}

.lightbox::backdrop {
  background: rgba(9, 8, 7, 0.84);
  animation: fade-in 0.35s ease;
}

.lightbox img {
  max-height: 74vh;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  background: none;
  border: 0;
  color: var(--gold-soft);
  font-size: 1.8rem;
  cursor: pointer;
}

.lightbox-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.85rem 0 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s ease, transform 0.85s ease;
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes ken-burns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@media (max-width: 980px) {
  .profile-grid,
  .contact-grid,
  .capability-grid,
  .qual-list,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    gap: 0.7rem;
  }

  .brand {
    min-width: 0;
    gap: 0.6rem;
  }

  .brand-text strong {
    font-size: 0.74rem;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: auto;
    padding: 0.6rem 0 2.4rem;
    overflow: visible;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    height: min(52svh, 440px);
    width: 100%;
  }

  .hero-visual::before {
    top: 10%;
    left: 50%;
    width: 72%;
    transform: translateX(-50%);
  }

  .hero-visual::after {
    background: linear-gradient(to top, #090807 0%, transparent 22%);
  }

  .hero-visual img {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: min(90vw, 400px);
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    animation: none;
    filter: contrast(1.08) saturate(1);
  }

  .hero-copy {
    margin: 0;
    max-width: none;
    padding: 0.35rem var(--pad) 0;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9.5vw, 3.15rem);
    margin-bottom: 0.9rem;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .hero-actions {
    justify-content: center;
  }

  .tag-cloud {
    justify-content: center;
    margin-top: 1.35rem;
  }

  .section {
    padding: 3.1rem var(--pad);
  }

  .nav-toggle {
    display: block;
    flex-shrink: 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 0.8rem var(--pad);
  }

  .site-nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    width: calc(100% - (var(--pad) * 2));
    margin: 0.4rem var(--pad) 0;
    text-align: center;
  }

  .company-note {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 560px) {
  .section-head {
    grid-template-columns: 1fr;
  }

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

  .brand-mark {
    width: 2.05rem;
    height: 2.05rem;
    font-size: 0.9rem;
  }

  .brand-text strong {
    white-space: nowrap;
    font-size: 0.68rem;
  }

  .hero-visual {
    height: min(54svh, 460px);
  }

  .hero-visual img {
    max-width: min(94vw, 360px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
