
:root {
  --bg: #1d1d1d;
  --text: #e6e6e6;
  --muted: #a7a7a7;
  --accent: #4fb3c8;
  --rule: #313131;
}
* { box-sizing: border-box; }
html { min-width: 280px; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: "Quicksand", Arial, sans-serif;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.site-shell { position: relative; width: min(100% - 48px, 1010px); margin: 0 auto; padding: 16px 0 70px; }
.lang-switch {
  position: absolute;
  top: 26px;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1.5;
  color: #8f8f8f;
}
.lang-switch a { color: #999; text-decoration: none; transition: color .16s ease; }
.lang-switch a:hover, .lang-switch a:focus-visible { color: #a8deea; }
.lang-switch .lang-active { color: #e6e6e6; font-weight: 500; }
.lang-switch .lang-separator { color: #646464; }
.lang-switch a:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.hero {
  position: relative;
  isolation: isolate;
  width: min(100%, 735px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.background-art {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 0;
  width: 100%;
  height: auto;
  display: block;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}
.brand-logo {
  position: absolute;
  z-index: 1;
  top: 8.2%;
  left: 9.4%;
  width: 17%;
  height: auto;
  display: block;
}
.about { margin: 8px auto 0; max-width: 630px; text-align: center; }
.about p { margin: 0; color: #bdbdbd; font-size: clamp(14px, 1.7vw, 19px); line-height: 1.5; }
.projects { margin: 75px auto 0; }
.projects h2 {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 450;
  letter-spacing: .23em;
  line-height: 1.5;
  text-transform: uppercase;
  color: #8f8f8f;
}
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.project-card {
  display: block;
  min-width: 0;
  padding: 27px 28px 33px 0;
  border-top: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
  transition: color .16s ease;
}
.project-card:nth-child(2n) { border-left: 1px solid var(--rule); padding: 27px 0 33px 28px; }
.project-card:focus-visible { outline: 1px solid var(--accent); outline-offset: -2px; }
.project-card:hover .project-heading { color: var(--accent); }
.project-image {
  width: 100%;
  aspect-ratio: 2.85 / 1;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #1d1d1d;
  margin-bottom: 17px;
}
.project-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; transition: color .16s ease; }
.project-heading h3 { margin: 0; font-size: clamp(19px, 2.1vw, 26px); font-weight: 350; line-height: 1.25; }
.project-arrow { width: 20px; height: 20px; flex: 0 0 20px; align-self: center; fill: none; stroke: #888; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.project-description { margin: 8px 0 0; color: var(--muted); font-size: clamp(12px, 1.2vw, 14px); line-height: 1.4; }
.footer { margin-top: 72px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.footer p { color: #a3a3a3; font-size: 14px; margin: 0; }
.footer a { text-decoration: none; transition: color .16s ease, border-color .16s ease; }
/* Native <details> ensures Contact opens even without JavaScript. */
.contact-details { display: flex; flex-direction: column; align-items: center; }
.contact-details > summary { list-style: none; cursor: pointer; }
.contact-details > summary::-webkit-details-marker { display: none; }
.footer .contact-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 140px;
  min-height: 43px;
  padding: 8px 25px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  transition: color .16s ease, border-color .16s ease;
}
.footer .contact-button:hover, .footer .contact-button:focus-visible,
.contact-details[open] > .contact-button { border-color: #a8deea; color: #a8deea; }
.footer .contact-button:focus-visible, .copy-email:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.contact-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.footer .contact-email { color: #b8b8b8; font-size: 14px; }
.footer .contact-email:hover, .footer .contact-email:focus-visible { color: #a8deea; }
.copy-email {
  cursor: pointer;
  border: none;
  background: transparent;
  color: #8f8f8f;
  font: inherit;
  font-size: 12px;
  padding: 6px 12px;
}
.copy-email:hover { color: #a8deea; }
.contact-feedback { font-size: 12px; color: #a8deea; min-height: 16px; }
.keep-together { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 521px) and (max-width: 900px) {
  .about { max-width: 500px; }
}
@media (max-width: 700px) {
  .site-shell { width: calc(100% - 36px); padding-top: 16px; padding-bottom: 48px; }
  .hero { width: min(100%, 560px); }
  .lang-switch { top: 20px; }
  .brand-logo { top: 8%; left: 8%; width: 20%; }
  .about { margin-top: 0; }
  .about p { font-size: clamp(13px, 3vw, 16px); }
  .projects { margin-top: 58px; }
  .project-card { padding: 18px 17px 24px 0; }
  .project-card:nth-child(2n) { padding: 18px 0 24px 17px; }
  .project-image { margin-bottom: 14px; }
  .project-heading h3 { font-size: clamp(16px, 2.9vw, 22px); }
  .project-description { font-size: 12px; }
}
@media (max-width: 520px) {
  .site-shell { width: calc(100% - 32px); padding-top: 4px; }
  .about { margin-top: 4px; }
  .lang-switch { top: 14px; font-size: 10px; }
  .about p { font-size: 13px; }
  .projects { margin-top: 49px; }
  .projects h2 { margin-bottom: 12px; font-size: 10px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-card, .project-card:nth-child(2n) { padding: 18px 0 22px; border-left: 0; }
  .project-card:nth-child(2n) { border-left: 0; }
  .project-heading h3 { font-size: 21px; }
  .project-description { font-size: 13px; }
  .footer { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card, .project-heading, .footer a { transition: none; }
}
