:root {
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(212, 175, 55, 0.24);

  --text: #f8f5ee;
  --muted: rgba(248, 245, 238, 0.76);

  --gold: #d4af37;
  --gold-strong: #f0c758;
  --gold-soft: rgba(212, 175, 55, 0.16);

  --shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;

  --container: 1160px;
  --font-scale: 1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: calc(16px * var(--font-scale));
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(212, 175, 55, 0.15), transparent 60%),
    radial-gradient(850px 520px at 90% 0%, rgba(212, 175, 55, 0.08), transparent 55%),
    linear-gradient(180deg, #090909 0%, #0d0d0d 100%);
}

body.large-text {
  --font-scale: 1.14;
}

body.high-contrast {
  --bg: #000000;
  --bg-soft: #000000;
  --panel: #0a0a0a;
  --panel-strong: #111111;
  --border: #ffd84d;
  --text: #ffffff;
  --muted: #f3f3f3;
  --gold: #ffd84d;
  --gold-strong: #ffea8a;
  --gold-soft: rgba(255, 216, 77, 0.2);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #ffffff;
  color: #000000;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 7, 7, 0.84);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.notebar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: #d4af37; 
  border-bottom: 1px solid var(--border);
}

.notebar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.notebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 800;
  color:rgb(194, 24, 24);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
}

.topbar-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-btn {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.08));
  color: var(--text);
  font-weight: 700;
}

.tool-btn:hover,
.tool-btn:focus-visible {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.28), rgba(212, 175, 55, 0.12));
}

.hero {
  padding: 34px 0 10px;
}

.hero-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(700px 320px at 10% 0%, rgba(212, 175, 55, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(10, 10, 10, 0.88);
  box-shadow: var(--shadow);
  padding: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-strong);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  max-width: 14ch;
}

.hero-subtitle {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 800;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
  color: #111111;
  border-color: rgba(255, 222, 121, 0.7);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.highlight-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
}

.highlight-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-strong);
}

.highlight-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 34px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--gold-strong);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.card-grid {
  display: grid;
  gap: 16px;
}

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

.info-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.info-card h3 {
  margin: 0 0 10px;
  color: var(--gold-strong);
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

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

.portfolio-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-card figcaption {
  padding: 14px;
  color: var(--muted);
  font-weight: 700;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-pill {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-weight: 700;
  color: var(--text);
}

.social-pill:hover,
.social-pill:focus-visible {
  background: var(--panel-strong);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 18px;
}

.contact-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(212, 175, 55, 0.1), transparent 60%),
    var(--panel);
  padding: 22px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--gold-strong);
}

.contact-card p {
  color: var(--muted);
}

.contact-form {
  margin-top: 14px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  padding: 12px 14px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(248, 245, 238, 0.6);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.btn:focus,
.tool-btn:focus,
.nav-link:focus,
.social-pill:focus {
  outline: 3px solid rgba(255, 217, 92, 0.35);
  outline-offset: 2px;
}

.form-submit {
  margin-top: 16px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.contact-item {
  display: grid;
  gap: 4px;
}

.contact-label {
  color: var(--gold-strong);
  font-weight: 800;
}

.footer {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-highlights,
  .services-grid,
  .portfolio-grid,
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-card {
    padding: 22px;
  }

  .hero-highlights,
  .services-grid,
  .portfolio-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.services-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-tile {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(500px 220px at 10% 0%, rgba(212, 175, 55, 0.10), transparent 60%),
    rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.service-tile:hover,
.service-tile:focus-within,
.service-tile:focus {
  transform: translateY(-3px);
  border-color: rgba(240, 199, 88, 0.55);
  outline: none;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: auto;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 10px 24px rgba(0,0,0,0.20);
}

.service-tile h3 {
  margin: 18px 0 6px;
  color: var(--gold-strong);
}

.service-brief {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background:
    linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.74));
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.service-overlay p {
  margin: 0;
  color: #f8f5ee;
  line-height: 1.45;
}

.service-tile:hover .service-overlay,
.service-tile:focus .service-overlay,
.service-tile:focus-within .service-overlay {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 640px) {
  .services-tiles {
    grid-template-columns: 1fr;
  }

  /* On mobile, always show the text instead of relying on hover */
  .service-overlay {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
    padding: 14px 0 0;
  }

  .service-tile {
    min-height: unset;
  }
}

/* Floating accessibility widget */
.a11y-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.a11y-fab {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.a11y-fab:hover,
.a11y-fab:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.30), rgba(212, 175, 55, 0.12));
  border-color: rgba(240, 199, 88, 0.7);
}

.a11y-panel {
  width: min(260px, calc(100vw - 24px));
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  background:
    radial-gradient(300px 180px at 100% 0%, rgba(212, 175, 55, 0.10), transparent 60%),
    rgba(12, 12, 12, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  padding: 14px;
  backdrop-filter: blur(12px);
}

.a11y-panel-head {
  margin-bottom: 10px;
  color: var(--gold-strong);
  font-size: 0.95rem;
}

.a11y-actions {
  display: grid;
  gap: 10px;
}

.a11y-option {
  width: 100%;
  text-align: left;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.20);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.a11y-option:hover,
.a11y-option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(240, 199, 88, 0.45);
  transform: translateY(-1px);
}

.a11y-option[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.10));
  border-color: rgba(240, 199, 88, 0.55);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .a11y-widget {
    right: 12px;
    bottom: 12px;
  }

  .a11y-fab {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }
}