/* ============================================================
   Calornet LLC — design tokens
   Subject: fiber optic distributed temperature sensing (DTS)
   for ultra-high-temperature materials research.
   Signature idea: the blackbody heat-color progression
   (deep ember -> amber -> pale gold) used as the one accent
   gradient, standing in for the temperature profile itself.
   ============================================================ */

:root{
  --ink:        #12181C;
  --ink-soft:   #3D474D;
  --bg:         #EDEFF0;   /* cool steel-white, not cream */
  --bg-deep:    #0F1418;   /* furnace-chamber dark, used sparingly */
  --panel:      #F6F7F7;
  --line:       #CBD2D4;
  --line-deep:  #262E33;

  --ember:      #7A231C;
  --amber:      #D9822B;
  --gold:       #F2C879;
  --steel:      #3B5A6B;   /* fiber / laser light accent */
  --steel-soft: #A9BDC6;

  --grad-heat: linear-gradient(90deg, var(--ember) 0%, var(--amber) 55%, var(--gold) 100%);

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body:    "Source Serif 4", Georgia, serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --radius: 3px;
  --max: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em 0;
  color: var(--ink);
}

p{ margin: 0 0 1em 0; }

a{ color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover{ color: var(--ember); }

.mono{ font-family: var(--font-mono); letter-spacing: 0.01em; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(237,239,240,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height: 72px;
}
.brand{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display:flex; align-items:center; gap:10px;
}
.brand .mark{
  width: 22px; height: 22px; flex: none;
}
.nav{
  display:flex; gap: 28px; align-items:center;
}
.nav a{
  color: var(--ink-soft);
  text-decoration:none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav a:hover{ color: var(--ember); }
.nav .cta{
  color: var(--bg);
  background: var(--ink);
  padding: 9px 16px;
  border-radius: var(--radius);
}
.nav .cta:hover{ background: var(--ember); color: var(--bg); }

/* ---------- hero ---------- */
.hero{
  background: var(--bg-deep);
  color: #E9ECEE;
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-deep);
}
.hero .eyebrow{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.hero h1{
  color: #F4F5F6;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.08;
  max-width: 15ch;
}
.hero .sub{
  font-family: var(--font-body);
  font-size: 19px;
  color: #C7CDD0;
  max-width: 56ch;
  margin-top: 18px;
}
.hero-actions{
  display:flex; gap: 14px; margin-top: 34px; flex-wrap: wrap;
}
.btn{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration:none;
  display:inline-block;
  border: 1px solid transparent;
}
.btn-primary{
  background: var(--grad-heat);
  color: #1A0E08;
}
.btn-primary:hover{ filter: brightness(1.08); color:#1A0E08; }
.btn-ghost{
  color: #E9ECEE;
  border-color: #4A555C;
}
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold); }

/* signature: fiber temperature-profile graphic */
.profile-graphic{
  margin-top: 56px;
  border: 1px solid var(--line-deep);
  background: #141A1F;
  border-radius: var(--radius);
  padding: 26px 26px 14px;
}
.profile-graphic svg{ width: 100%; height: auto; display:block; }
.profile-caption{
  display:flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7C8991;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- sections ---------- */
section{ padding: 84px 0; }
.section-head{
  max-width: 62ch;
  margin-bottom: 46px;
}
.section-head .eyebrow{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ember);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-head h2{ font-size: clamp(26px, 3vw, 36px); }
.section-head p{ color: var(--ink-soft); font-size: 18px; }

.audience-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.audience-card{
  background: var(--panel);
  padding: 28px;
}
.audience-card h3{ font-size: 18px; }
.audience-card p{ color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.audience-card .tag{
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display:block;
}

/* comparison table */
.compare{
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.compare th, .compare td{
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
}
.compare thead th{
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
}
.compare td.metric{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.compare tr.ours td{ background: #FBF3E8; }
.compare tr.ours td:first-child{ border-left: 3px solid var(--amber); }

/* how it works — real sequence, numbering earned */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}
.step .num{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--steel);
  display:block;
  margin-bottom: 10px;
}
.step h3{ font-size: 18px; }
.step p{ color: var(--ink-soft); font-size: 15px; }

/* applications list */
.app-list{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
  margin-top: 8px;
}
.app-list li{
  list-style:none;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display:flex; gap: 14px; align-items:baseline;
}
.app-list li .idx{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ember);
  flex: none;
  width: 2.4em;
}
.app-list{ padding:0; margin: 8px 0 0; }

/* about / dark band */
.band-dark{
  background: var(--bg-deep);
  color: #C7CDD0;
}
.band-dark h2{ color: #F4F5F6; }
.band-dark .section-head p{ color: #9AA5AB; }
.about-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items:start;
}
.spec-list{ margin:0; padding:0; list-style:none; }
.spec-list li{
  display:flex; justify-content:space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-deep);
  font-family: var(--font-mono);
  font-size: 13.5px;
}
.spec-list li span:first-child{ color: #8791979; color:#8A959B; }
.spec-list li span:last-child{ color: #E9ECEE; }

/* contact */
.contact-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}
.contact-emails{ list-style:none; margin: 0; padding:0; }
.contact-emails li{ margin-bottom: 10px; font-family: var(--font-mono); font-size: 15px; }

footer{
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
footer a{ color: var(--ink-soft); }

/* ---------- article / blog page ---------- */
.page-hero{
  background: var(--bg-deep);
  color:#E9ECEE;
  padding: 64px 0 46px;
  border-bottom: 1px solid var(--line-deep);
}
.page-hero .eyebrow{ font-family: var(--font-mono); font-size:13px; color:var(--gold); text-transform:uppercase; letter-spacing:0.1em; margin-bottom:14px;}
.page-hero h1{ color:#F4F5F6; font-size: clamp(28px, 3.6vw, 42px); max-width: 20ch; }
.page-hero p{ color:#C7CDD0; max-width: 60ch; font-size:17px; }

.article-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}
.article-card{
  background: var(--panel);
  padding: 28px;
  display:flex; flex-direction:column; gap:10px;
}
.article-card .meta{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article-card h3{ font-size: 19px; margin-bottom: 2px; }
.article-card p{ color: var(--ink-soft); font-size: 15px; margin:0; }
.article-card .read{ font-family: var(--font-display); font-size: 13px; font-weight:600; margin-top:auto; }

.submit-panel{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.submit-panel h2{ font-size: 24px; }
.form-row{ margin-bottom: 18px; }
.form-row label{
  display:block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-row input, .form-row textarea, .form-row select{
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus{
  outline: 2px solid var(--steel);
  outline-offset: 1px;
}
.form-note{
  font-size: 13.5px;
  color: var(--ink-soft);
  background: #FBF3E8;
  border-left: 3px solid var(--amber);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-top: 8px;
}

@media (max-width: 860px){
  .audience-grid, .steps, .app-list, .article-grid{ grid-template-columns: 1fr; }
  .about-grid, .contact-card{ grid-template-columns: 1fr; }
  .nav{ gap: 16px; }
  .nav a:not(.cta){ display:none; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation: none !important; transition: none !important; }
}

/* keyboard focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}
