/* ============================================
   TensorBee — Single Screen
   ============================================ */

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

:root {
  --bg: #141210;
  --text: #e0e0e0;
  --text-dim: #666;
  --text-muted: #333;
  --accent: #c9a84c;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
  height: 100svh;
}

::selection {
  background-color: rgba(201, 168, 76, 0.2);
  color: #fff;
}


/* --- Decorative Linework --- */

.linework {
  position: fixed;
  left: -4%;
  top: -6%;
  width: 50vw;
  height: 100vh;
  color: rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom right, transparent 0%, transparent 12%, rgba(0,0,0,0.2) 18%, black 28%, black 33%, rgba(0,0,0,0.5) 55%, transparent 75%);
  mask-image: linear-gradient(to bottom right, transparent 0%, transparent 12%, rgba(0,0,0,0.2) 18%, black 28%, black 33%, rgba(0,0,0,0.5) 55%, transparent 75%);
}


/* --- Page Layout --- */

.page {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 2rem 2.5rem;
}



/* --- Brand Header --- */

.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  animation: fade-in 1s ease 0.3s forwards;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.4s ease;
}

.brand-link:hover {
  color: var(--text);
}

.brand-logo {
  width: 22px;
  height: 21px;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 200;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}


/* --- Content (two-column grid) --- */

.content {
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 4rem;
  row-gap: 2.2rem;
  align-content: center;
  padding-left: 1rem;
}


/* --- Headline Typography --- */

.headline-group {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  opacity: 0;
  animation: fade-up 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.headline {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.35);
}

.h-em {
  font-weight: 400;
  color: #f0f0f0;
}

.h-accent {
  font-weight: 400;
  color: #f0f0f0;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-decoration-skip-ink: auto;
}


/* --- Clients --- */

.clients {
  display: block;
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1.8rem;
}


/* --- Story --- */

.story {
  grid-column: 2;
  align-self: start;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.8;
  color: var(--text-dim);
  opacity: 0;
  animation: fade-up 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.s-em {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}


/* --- Services Row --- */

.services {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fade-up 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

.service {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-name {
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 210px;
}

.service-desc {
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.35);
}


/* --- Footer --- */

footer {
  flex-shrink: 0;
  padding: 0.8rem 0 0.5rem 1rem;
  opacity: 0;
  animation: fade-in 1s ease 1s forwards;
}

.hidden-field {
  display: none;
}

.contact-form {
  grid-column: 2;
  margin-top: 0.8rem;
  opacity: 0;
  animation: fade-up 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s forwards;
}

.form-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 0.35rem 0.2rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}

.contact-form textarea {
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.18);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.contact-form button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  padding: 0.35rem 1.2rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
  white-space: nowrap;
}

.contact-form button:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
}

.form-status {
  font-size: 0.75rem;
  font-weight: 300;
  margin-left: 0.8rem;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-email {
  font-weight: 300;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-email:hover {
  color: var(--accent);
}

.copyright {
  font-weight: 300;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
}


/* --- Animations --- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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


/* --- Accessibility --- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .headline-group, .story, .services, .brand, footer {
    opacity: 1;
    transform: none;
  }
}

a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}


/* --- Responsive --- */

@media (max-width: 768px) {
  .page {
    padding: 1.5rem;
  }

  .content {
    grid-template-columns: 1fr;
    row-gap: 1.4rem;
    padding-left: 0;
  }

  .headline-group, .story, .services, .contact-form {
    grid-column: 1 !important;
  }

  .linework { display: none; }

  .service {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0;
  }

  .service-name {
    font-size: 0.72rem;
    min-width: 0;
  }

  .service-desc {
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 1.25rem;
  }

  .brand-name {
    font-size: 0.7rem;
  }

  footer {
    padding-left: 0;
  }
}

/* Tall-enough screens: keep everything comfortably centered */
@media (min-height: 700px) {
  .content {
    padding-bottom: 4rem;
  }
}
