@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto+Slab:wght@600;700&display=swap');

:root {
  --ink: #030d11;
  --gold: #f7b821;
  --paper: #f8f8f5;
  --line: #dfe2df;
  --surface: #fff;
  --hover: #eee;
  --muted: #65757b;
  --muted-2: #718086;
  --faint: #849096;
  --error: #b3261e;
  --nav-height: 82px;
  color-scheme: light;
}

/* Dark theme (set on <html> by the script in index.html) */
:root[data-theme="dark"] {
  --ink: #e9eeec;
  --paper: #0b1215;
  --line: #243138;
  --surface: #121b1f;
  --hover: #1c272c;
  --muted: #9aa8ad;
  --muted-2: #8d9ba0;
  --faint: #7d8b91;
  --error: #ff8a80;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }

.menu-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;

  width: 44px;
  height: 44px;
  padding: 0;

  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 0;
  padding: 0;

  background: currentColor;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Hamburger turns into a cross while the menu is open */
.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu {
  display: none;
  position: absolute;
  top: calc(var(--nav-height) - 12px);
  right: 20px;

  background: var(--surface);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.menu.open {
  display: flex;
  flex-direction: column;
}

.menu a {
  padding: 10px 20px;
  text-decoration: none;
  color: var(--ink);
}

.menu a:hover {
  background: var(--hover);
}

.nav {
  height: var(--nav-height);
  padding: 0 clamp(24px, 6vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  transition: height .2s;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: .08em; }
.brand img { width: 34px; height: 34px; object-fit: contain; transition: width .2s, height .2s; }
.nav-contact { font-weight: 600; }
.nav-contact:hover { color: var(--gold); }

.hero {
  min-height: calc(100vh - 82px);
  padding: clamp(70px, 10vw, 140px) clamp(24px, 9vw, 140px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  max-width: 1500px;
  margin: auto;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--gold);
}
h1, h2, h3 { margin-top: 0; }
h1 {
  margin-bottom: 28px;
  font-size: clamp(68px, 9vw, 130px);
  line-height: .86;
  letter-spacing: -.06em;
  font-weight: 700;
}
h1 span { color: var(--gold); }
.lead {
  max-width: 580px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.6;
  color: var(--muted);
}
h2 span { color: var(--gold); }
.lead {
  max-width: 580px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.6;
  color: var(--muted);
}
.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Inline <svg><use> so the logo's black parts follow the theme's text colour */
.hero-logo svg {
  width: min(81%, 487px);
  height: auto;
  color: var(--ink);
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-weight: 600;
  transition: transform .15s, background .15s;
}
.button:hover { transform: translateY(-2px); }
.primary { background: var(--gold); color: white; }
.primary:hover { background: #9f9c39; }
.secondary { border: 1px solid var(--line); }

.services {
  padding: 110px clamp(24px, 9vw, 140px);
  background: var(--surface);
}
.services > div:first-child { max-width: 1500px; margin: auto; }
h2 { font-size: clamp(38px, 5vw, 70px); letter-spacing: -.045em; }
.cards {
  max-width: 1500px;
  margin: 55px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.cards article { background: var(--surface); padding: 38px; min-height: 230px; }
.cards span { color: var(--gold); font-weight: 700; }
.cards h3 { margin: 45px 0 10px; font-size: 22px; }
.cards p { margin: 0; line-height: 1.7; color: var(--muted-2); }

.cta {
  max-width: 1500px;
  margin: auto;
  padding: 110px clamp(24px, 9vw, 140px);
  display: flex;
  align-items: center;
  gap: 30px;
}
.cta img { width: 75px; height: 75px; object-fit: contain; }
.cta > div { flex: 1; }
.cta h2 { margin: 0; }

footer {
  padding: 28px clamp(24px, 6vw, 90px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--faint);
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 80px; }
  .hero-logo { order: -1; }
  .hero-logo svg { max-width: 357px; }
  .cards { grid-template-columns: 1fr; }
  .cta { flex-wrap: wrap; }
  footer { gap: 10px; flex-direction: column; }
}

.contact-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}

.contact-header {
  margin-bottom: 50px;
}

.contact-header h1 span {
  display: inline-block;
}

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.contact-card-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.contact-card-info {
  flex: 1;
}

.contact-label {
  margin: 0 0 4px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  opacity: 0.6;
}

.contact-card h2 {
  margin: 0 0 25px;
  font-size: 2rem;
}

.contact-details {
  display: flex;
  gap: 30px;
}

.contact-details a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.contact-details a:hover {
  opacity: 0.7;
}

.contact-icon {
  font-size: 1.4rem;
}

.contact-details small {
  display: block;
  margin-bottom: 2px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.contact-card-tagline {
  position: absolute;
  right: 40px;
  bottom: 25px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  opacity: 0.3;
}

@media (max-width: 700px) {
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
  }

  .contact-details {
    flex-direction: column;
    gap: 18px;
  }

  .contact-card-tagline {
    position: static;
    margin-top: 15px;
  }
}

.about-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}

.about-hero {
  max-width: 800px;
  margin-bottom: 80px;
}

.about-hero h1 {
  margin: 0 0 30px;
}

.about-hero h1 span {
  display: inline-block;
}

.about-hero .lead {
  max-width: 700px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.about-card > span {
  display: block;
  margin-bottom: 35px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  opacity: 0.4;
}

.about-card h2 {
  margin: 0 0 15px;
}

.about-card p {
  margin: 0;
  line-height: 1.7;
  opacity: 0.7;
}

.about-statement {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 80px;
  padding: 40px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.about-statement img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.about-statement h2 {
  margin: 0 0 10px;
}

.about-statement p:last-child {
  margin: 0;
  opacity: 0.6;
}

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

  .about-statement {
    align-items: flex-start;
    flex-direction: column;
  }
}

.contact-photo {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 25px;
}
.doc-card {
  display: block;
  background: var(--surface);
  border-color: var(--line);
  transition: transform .15s, border-color .15s;
}

.doc-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.doc-card h3 {
  margin-bottom: 25px;
}

.doc-viewer {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-height));
  height: calc(100dvh - var(--nav-height));
}

.doc-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(24px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.doc-viewer-bar a {
  white-space: nowrap;
}

.doc-viewer-bar a:hover {
  color: var(--gold);
}

.doc-viewer-bar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.doc-viewer iframe {
  flex: 1;
  width: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .doc-viewer-bar strong {
    display: none;
  }
}

.team-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

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

/* While a document is open: slim navbar, no footer, and only the document scrolls */
body.doc-open {
  --nav-height: 52px;
  overflow: hidden;
}

body.doc-open .brand img {
  width: 26px;
  height: 26px;
}

body.doc-open footer {
  display: none;
}

[hidden] {
  display: none !important;
}

button.button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

button.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
}

.key-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 580px;
}

.key-form input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font: inherit;
}

.key-form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
}

.key-error {
  flex-basis: 100%;
  margin: 0;
  min-height: 1.5em;
  color: var(--error);
  font-weight: 600;
}

.file-list {
  display: grid;
  gap: 12px;
  max-width: 700px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.file-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 600;
  transition: transform .15s, border-color .15s;
}

.file-list a:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.file-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-list small {
  flex-shrink: 0;
  color: var(--muted);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch,
.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.lang-switch:hover,
.theme-switch:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.theme-switch svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.theme-switch .icon-moon { stroke: none; }
.theme-switch .icon-sun { display: none; }
:root[data-theme="dark"] .theme-switch .icon-sun { display: block; }
:root[data-theme="dark"] .theme-switch .icon-moon { display: none; }

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  margin-bottom: 12px;
}

.project-card p {
  margin-bottom: 25px;
}

.project-card small {
  margin-top: auto;
  color: var(--muted);
  font-weight: 600;
  overflow-wrap: anywhere;
  transition: color .15s;
}

.project-card:hover small {
  color: var(--gold);
}
