/* =============================================================================
   Indentity — style.css
   ============================================================================= */


/* 1. Custom fonts
   ============================================================================= */

/* Drop Colaborate woff2 files into assets/fonts/ and they take over automatically.
   Free at fontsquirrel.com/fonts/colaborate — Maven Pro is by the same designer
   (Sorkin Type) and serves as the live fallback. */
@font-face {
  font-family: "Colaborate";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ColabReg.woff2") format("woff2"),
       url("../assets/fonts/ColabReg.woff")  format("woff");
}
@font-face {
  font-family: "Colaborate";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/ColabMed.woff2") format("woff2"),
       url("../assets/fonts/ColabMed.woff")  format("woff");
}
@font-face {
  font-family: "Colaborate";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/ColabBol.woff2") format("woff2"),
       url("../assets/fonts/ColabBol.woff")  format("woff");
}
@font-face {
  font-family: "Colaborate";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/ColabHea.woff2") format("woff2"),
       url("../assets/fonts/ColabHea.woff")  format("woff");
}


/* 2. Design tokens
   ============================================================================= */

:root {
  /* Brand — sampled directly from the logo PNG */
  --cyan:       #00AEEF;
  --ink:        #231F20;
  --paper:      #FAFAF7;
  --paper-warm: #F4F2EC;

  /* Tints */
  --line:       rgba(35, 31, 32, 0.08);
  --dim:        rgba(35, 31, 32, 0.55);
  --dim2:       rgba(35, 31, 32, 0.40);

  /* Typography */
  --sans: "Colaborate", "Maven Pro", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}


/* 3. Reset & base
   ============================================================================= */

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--sans);
  color: var(--ink);
}


/* 4. Page shell
   ============================================================================= */

#site {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Subtle radial cyan wash — gives depth without competing with content */
#bg-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 90%  10%, rgba(0, 174, 239, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at  0% 100%, rgba(0, 174, 239, 0.04) 0%, transparent 60%);
}

#bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


/* 5. Navigation
   ============================================================================= */

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 56px;
  flex-shrink: 0;
}

.site-logo {
  height: 28px;
  width: auto;
  display: block;
}

.site-meta {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  align-items: center;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 10px;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.18);
}


/* 6. Main layout
   ============================================================================= */

.site-main {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  padding: 24px 56px 32px;
  align-items: center;
  min-height: 0;
}


/* 7. Hero
   ============================================================================= */

.hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

/* Each service word sits on its own line via display:block on the span.
   Using spans (not <br>) keeps the h1 text meaningful in the DOM and lets
   CSS own the layout decision — on mobile we can switch to inline. */
.headline {
  font-family: var(--sans);
  font-size: clamp(52px, 7.4vw, 116px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}

.headline span {
  display: block;
}

/* Cyan accent dot after each service word, rendered in CSS */
.headline span::after {
  content: ".";
  color: var(--cyan);
}

.contact {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  font-style: normal; /* <address> resets italic */
}

.contact-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.contact-link {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 3px;
  transition: color 0.15s ease;
}

.contact-link:hover {
  color: var(--cyan);
}


/* 8. Terminal
   ============================================================================= */

.terminal {
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(35, 31, 32, 0.04),
    0 30px 60px -30px rgba(35, 31, 32, 0.18);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(35, 31, 32, 0.18);
}

.terminal-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--dim2);
}

.terminal-body {
  padding: 20px 22px;
  min-height: 280px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink);
  background: #fff;
}

/* Terminal line types */
.terminal-body .t-cmd              { color: var(--ink); }
.terminal-body .t-cmd .t-prompt    { color: var(--cyan); margin-right: 8px; }
.terminal-body .t-dim              { color: var(--dim); }
.terminal-body .t-ok               { color: #1a8f5a; }
.terminal-body .t-cy               { color: var(--cyan); }

.cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--cyan);
  margin-left: 4px;
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  0%,  49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}


/* 9. Footer
   ============================================================================= */

.site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 20px 56px 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim2);
  flex-shrink: 0;
}


/* 10. Mobile
   ============================================================================= */

@media (max-width: 768px) {
  /* Full-page flow instead of fixed so landscape can scroll if needed */
  #site {
    position: relative;
    min-height: 100svh;
    overflow: visible;
  }

  #bg-wash,
  #bg-svg {
    position: fixed;
  }

  /* Nav: logo centered, location below */
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 24px 20px;
  }

  .site-logo {
    height: 26px;
  }

  .site-meta {
    font-size: 10px;
    gap: 0;
    justify-content: center;
  }

  .site-meta .meta-est {
    display: none;
  }

  /* Single column, everything centered */
  .site-main {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px 32px 24px;
    align-items: center;
    justify-items: center;
    flex: 0;
  }

  .hero {
    align-items: center;
    text-align: center;
    gap: 28px;
    width: 100%;
  }

  .eyebrow {
    justify-content: center;
  }

  .headline span {
    display: inline;
  }

  .headline span::before {
    content: "";
    display: block;
  }

  .contact {
    justify-content: center;
    margin-top: 4px;
  }

  .contact-link {
    font-size: 15px;
  }

  /* Terminal hidden on mobile */
  .terminal {
    display: none;
  }

  .site-footer {
    padding: 20px 24px 28px;
    font-size: 10px;
    justify-content: center;
    gap: 16px;
  }
}
