/* Copperwood website styles, shared by every page. */
  :root {
    --graphite: #14181A;
    --graphite-2: #1C2225;
    --bone: #EEEAE3;
    --bone-2: #E3DDD3;
    --steel: #9AA3A7;
    --ink: #1A2023;
    --ink-soft: #55605F;
    --copper: #C8834F;
    --copper-deep: #9A5A2E;
    --hair-dark: rgba(238, 234, 227, 0.12);
    --hair-light: rgba(26, 32, 35, 0.14);
    --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --text: "Manrope", "Helvetica Neue", Arial, sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body { margin: 0; background: var(--graphite); color: var(--bone); font: 400 1.0625rem/1.65 var(--text); }
  a { color: inherit; }
  [hidden] { display: none !important; }
  h1, h2, h3 { text-wrap: balance; }
  a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
  .wrap { max-width: 110rem; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 6rem); }

  /* Header */
  .masthead { position: absolute; inset: 0 0 auto 0; z-index: 10; }
  .masthead .wrap { display: flex; align-items: center; justify-content: space-between; height: 5.5rem; }
  .brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
  .brand svg { width: 30px; height: 30px; flex: none; }
  .brand b { font: 700 1.05rem/1 var(--display); font-stretch: 125%; letter-spacing: 0.2em; }
  .menu { display: flex; align-items: center; gap: 2rem; }
  .menu a { font: 500 0.9375rem/1 var(--text); text-decoration: none; color: var(--bone); opacity: 0.85; }
  .menu a:hover { opacity: 1; color: var(--copper); }
  .menu a.cta { opacity: 1; border: 1px solid var(--copper); padding: 0.65rem 1.1rem; border-radius: 2px; }
  .menu a.cta:hover { background: var(--copper); color: var(--graphite); }
  .menu-toggle { display: none; }

  /* Hero */
  .hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
    background: radial-gradient(70rem 40rem at 70% 110%, rgba(200, 131, 79, 0.16), transparent 60%), var(--graphite); }
  .hero .skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; -webkit-mask-image: linear-gradient(to top, #000 45%, transparent); mask-image: linear-gradient(to top, #000 45%, transparent); }
  .hero .skyline path { stroke: var(--copper); stroke-width: 1.6; opacity: 0.5; }
  .hero .content { position: relative; width: 100%; padding-top: 9rem; padding-bottom: 16rem; }
  .hero h1 { font: 700 clamp(2.5rem, 1.3rem + 4.2vw, 4.75rem)/1.04 var(--display); font-stretch: 112%; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
  .hero h1 span, .hero p span { display: block; }
  .hero .lede { width: fit-content; max-width: 100%; }
  .hero p { font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem); color: var(--bone); opacity: 0.82; margin: 1.75rem 0 2.5rem; contain: inline-size; }
  @media (prefers-reduced-motion: no-preference) {
    .hero .skyline g { transform-origin: 50% 100%; transform: scaleY(0); animation: rise 1.6s cubic-bezier(.2,.7,.2,1) .2s forwards; }
    @keyframes rise { to { transform: scaleY(1); } }
  }

  .btn { display: inline-block; font: 600 0.9375rem/1 var(--text); text-decoration: none; padding: 1rem 1.5rem; border-radius: 2px; margin: 0 0.75rem 0.75rem 0; }
  .btn.solid { background: var(--copper); color: var(--graphite); }
  .btn.solid:hover { background: #D99566; }
  .btn.line { border: 1px solid var(--hair-dark); color: var(--bone); }
  .btn.line:hover { border-color: var(--bone); }

  /* Sections */
  .band { padding: 7rem 0; }
  .band.light { background: var(--bone); color: var(--ink); }
  .band.raised { background: var(--graphite-2); }
  .band.raised + .band.raised { border-top: 1px solid var(--hair-dark); }
  .band h2 { font: 700 clamp(2rem, 1.3rem + 2.4vw, 3.25rem)/1.08 var(--display); font-stretch: 112%; letter-spacing: -0.015em; margin: 0 0 1.25rem; }
  .band .intro { font-size: 1.1875rem; margin: 0 0 3.5rem; opacity: 0.85; }
  .band.light .intro { color: var(--ink-soft); opacity: 1; }

  /* Divisions */
  .divisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .division { position: relative; border: 1px solid var(--hair-dark); padding: 2.5rem 2.25rem 2.25rem; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(238, 234, 227, 0.03), transparent 55%); }
  .division::before { content: ""; position: absolute; top: -1px; left: -1px; width: 4.5rem; height: 3px; background: var(--copper); }
  .division .kind { font: 500 0.9375rem/1.4 var(--text); color: var(--copper); margin: 0 0 0.75rem; }
  .division h3 { font: 700 2.125rem/1.1 var(--display); font-stretch: 118%; margin: 0 0 1rem; }
  .division p { margin: 0 0 1.75rem; opacity: 0.82; }
  .division a { margin-top: auto; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--copper); align-self: flex-start; padding-bottom: 2px; }
  .division a:hover { color: var(--copper); }

  /* Copperwood Forward */
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6rem; align-items: start; }
  .engagements { margin: 0.5rem 0 0; padding: 0; list-style: none; }
  .engagements li { padding: 0.55rem 0 0.55rem 1.4rem; position: relative; color: var(--ink-soft); }
  .engagements li b { color: var(--ink); font-weight: 600; }
  .engagements li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 0.7rem; height: 2px; background: var(--copper-deep); }
  .split .lead .kind { font: 500 0.9375rem/1.4 var(--text); color: var(--copper-deep); margin: 0 0 0.75rem; }
  .split .lead .intro { margin-bottom: 0; }
  .split .fixes h3 { font: 600 1.0625rem/1.4 var(--text); margin: 0.6rem 0 0.5rem; color: var(--ink); }

  /* The story in three pictures: tangled systems, we drop in, connected systems */
  .story { list-style: none; margin: 4.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
  .story figure { position: relative; margin: 0 0 1.5rem; padding: 1.25rem; background: #F7F4EF; border: 1px solid var(--hair-light); border-radius: 14px; }
  .story li:not(:last-child) figure::after { content: ""; position: absolute; top: 50%; right: calc(-1.5rem - 6px); width: 12px; height: 12px; border-top: 2px solid var(--copper-deep); border-right: 2px solid var(--copper-deep); transform: translateY(-50%) rotate(45deg); }
  .story svg { display: block; width: 100%; height: auto; overflow: visible; }
  .story h3 { font: 700 1.375rem/1.3 var(--display); font-stretch: 112%; margin: 0 0 0.4rem; }
  .story p { margin: 0; color: var(--ink-soft); }
  .story text { dominant-baseline: central; text-anchor: middle; font: 600 13px var(--text); fill: var(--ink); }
  .story .box rect { fill: #fff; stroke: rgba(26, 32, 35, 0.3); stroke-width: 1.3; }
  .story .tangle path { fill: none; stroke: rgba(26, 32, 35, 0.45); stroke-width: 1.4; }
  .story .warn circle { fill: #C9472F; }
  .story .warn text { fill: #fff; font: 700 12px var(--text); }
  .story .ground .dash { fill: none; stroke: rgba(26, 32, 35, 0.3); stroke-width: 1.4; stroke-dasharray: 4 5; }
  .story .ground rect { fill: none; stroke: rgba(26, 32, 35, 0.25); stroke-width: 1.3; }
  .story .chute { transform-box: fill-box; transform-origin: 50% 0; }
  .story .canopy { fill: var(--copper); }
  .story .gore { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.3; }
  .story .cords { fill: none; stroke: rgba(26, 32, 35, 0.5); stroke-width: 1; }
  .story .laptop { fill: var(--ink); }
  .story .base { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
  .story .laptop-ai { fill: var(--copper); font: 700 11px var(--display); }
  .story .done .box rect { stroke: rgba(154, 90, 46, 0.8); }
  .story .links path { fill: none; stroke: var(--copper); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
  .story .tick { transform-box: fill-box; transform-origin: center; }
  .story .tick circle { fill: var(--copper); }
  .story .tick path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  /* Before it scrolls into view the story waits at its first frame; without script it shows the finished pictures. */
  .story.armed .chute { opacity: 0; }
  .story.armed .links path { stroke-dashoffset: 1; opacity: 0; }
  .story.armed .tick { opacity: 0; }
  .story.play .chute { animation: drop 2.2s cubic-bezier(0.2, 0.7, 0.3, 1) 0.3s both; }
  .story.play .links path { animation: draw 0.5s ease-out 2.6s both; }
  .story.play .links path:nth-child(2) { animation-delay: 2.8s; }
  .story.play .links path:nth-child(3) { animation-delay: 3s; }
  .story.play .links path:nth-child(4) { animation-delay: 3.2s; }
  .story.play .links path:nth-child(5) { animation-delay: 3.4s; }
  .story.play .links path:nth-child(6) { animation-delay: 3.6s; }
  .story.play .links path:nth-child(7) { animation-delay: 3.8s; }
  .story.play .links path:nth-child(8) { animation-delay: 4s; }
  .story.play .tick { animation: pop 0.4s ease-out 4.5s both; }
  @keyframes drop { 0% { opacity: 0; transform: translateY(-80px) rotate(-6deg); } 15% { opacity: 1; } 55% { transform: translateY(-22px) rotate(4deg); } 80% { transform: translateY(-5px) rotate(-1.5deg); } 100% { opacity: 1; transform: none; } }
  @keyframes draw { from { stroke-dashoffset: 1; opacity: 0; } 1% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
  @keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

  /* Products page */
  .page-head { padding: 11rem 0 5rem; background: radial-gradient(60rem 30rem at 80% 120%, rgba(200, 131, 79, 0.14), transparent 60%), var(--graphite); }
  .page-head .kind { font: 500 0.9375rem/1.4 var(--text); color: var(--copper); margin: 0 0 0.75rem; }
  .page-head h1 { font: 700 clamp(2.5rem, 1.3rem + 4.2vw, 4.75rem)/1.04 var(--display); font-stretch: 112%; letter-spacing: -0.02em; margin: 0 0 1.25rem; text-wrap: balance; }
  .page-head .lede-line { font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem); opacity: 0.82; margin: 0; }

  /* Skein */
  .product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6rem; align-items: center; }
  .shot { margin: 0; }
  .shot img { display: block; width: 100%; height: auto; border: 1px solid var(--hair-dark); border-radius: 4px; }
  .shot figcaption { margin-top: 0.9rem; font-size: 0.9375rem; color: var(--steel); }
  .product .intro { margin-bottom: 0; }
  .product .kind { font: 500 0.9375rem/1.4 var(--text); color: var(--copper); margin: 0 0 0.75rem; }
  .product .intro { margin-bottom: 1.5rem; }
  .product ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
  .product li { padding: 0.5rem 0 0.5rem 1.4rem; position: relative; opacity: 0.88; }
  .product li::before { content: ""; position: absolute; left: 0; top: 1.2em; width: 0.7rem; height: 2px; background: var(--copper); }
  .product .status { font-size: 0.9375rem; color: var(--steel); border-left: 2px solid var(--copper); padding-left: 1rem; margin: 0; }

  /* Contact: one box to type or speak the problem, add an email and send */
  .ask-wrap { text-align: center; }
  .ask-wrap .kind { font: 500 0.9375rem/1.4 var(--text); color: var(--copper); margin: 0 0 0.75rem; }
  .ask-wrap h2 { font-size: clamp(2.5rem, 1.3rem + 3.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.02em; }
  .ask-wrap h2 { margin-bottom: 2.75rem; }
  .composer { max-width: 60rem; margin: 0 auto; text-align: left; background: var(--graphite); border: 1px solid var(--hair-dark); border-radius: 1.25rem; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
  .problem { padding: 1.25rem 1.25rem 1rem; }
  .problem-foot { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
  .problem-foot .speak { margin-left: auto; }
  .composer:focus-within { border-color: rgba(200, 131, 79, 0.7); box-shadow: 0 0 0 4px rgba(200, 131, 79, 0.12); }
  .composer textarea { display: block; width: 100%; min-height: 7.5rem; max-height: 22rem; resize: none; border: 0; outline: none; background: transparent; color: var(--bone); font: 400 1.25rem/1.5 var(--text); padding: 0.25rem 0.35rem; }
  .composer ::placeholder { color: var(--steel); opacity: 0.8; }
  .composer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .composer svg.solid { fill: currentColor; stroke: none; }
  .composer-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.25rem; border-top: 1px solid var(--hair-dark); background: var(--graphite-2); }
  .composer-bar input { flex: 1; min-width: 0; height: 3rem; border-radius: 999px; border: 1px solid var(--hair-dark); background: var(--graphite); color: var(--bone); font: 400 1rem/1 var(--text); padding: 0 1.15rem; outline: none; }
  .composer-bar input:focus { border-color: var(--copper); }
  .speak, .send { height: 3rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0 1.25rem; font: 600 1rem/1 var(--text); cursor: pointer; white-space: nowrap; }
  .speak { background: transparent; color: var(--bone); border: 1px solid var(--hair-dark); }
  .speak:hover { border-color: var(--bone); }
  .send { background: var(--copper); color: var(--graphite); border: 0; padding: 0 1.4rem; }
  .send:hover { background: #D99566; }
  .send:disabled { opacity: 0.6; cursor: default; }
  .rec-bar { display: flex; align-items: center; gap: 0.9rem; min-height: 7.5rem; padding: 0 0.35rem; }
  .rec-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #E5484D; flex: none; animation: blink 1s ease-in-out infinite; }
  @keyframes blink { 50% { opacity: 0.25; } }
  .rec-bar canvas { flex: 1; min-width: 0; height: 3rem; }
  .rec-time { font: 600 1rem/1 var(--text); font-variant-numeric: tabular-nums; }
  .rec-stop { height: 2.5rem; border-radius: 999px; border: 1px solid var(--hair-dark); background: transparent; color: var(--bone); font: 600 0.9375rem/1 var(--text); padding: 0 1.1rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; }
  .rec-stop:hover { border-color: var(--bone); }
  .clip { display: inline-flex; align-items: center; gap: 0.75rem; margin: 0; padding: 0.35rem 0.5rem 0.35rem 0.35rem; border-radius: 999px; background: var(--graphite-2); border: 1px solid var(--hair-dark); font-size: 0.9375rem; }
  .clip-play { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 0; background: var(--copper); color: var(--graphite); display: grid; place-items: center; cursor: pointer; }
  .clip-remove { width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: transparent; color: var(--steel); display: grid; place-items: center; cursor: pointer; }
  .clip-remove:hover { color: var(--bone); }
  .ask-result { max-width: 60rem; margin: 1rem auto 0; text-align: left; font-weight: 600; }
  .ask-result:empty { display: none; }
  .ask-result.error { color: #E7A57C; }
  .ask-wrap .alt { margin: 1.5rem 0 0; color: var(--steel); font-size: 0.9375rem; }
  .ask-wrap .alt a { color: var(--bone); text-decoration-color: var(--copper); text-underline-offset: 3px; }
  .ask-done { max-width: 60rem; margin: 0 auto; text-align: left; background: var(--graphite); border: 1px solid var(--hair-dark); border-radius: 1.25rem; padding: 2rem 2.25rem; display: flex; gap: 1.25rem; align-items: center; }
  .ask-done .tick { width: 3rem; height: 3rem; border-radius: 50%; background: var(--copper); color: var(--graphite); display: grid; place-items: center; flex: none; }
  .ask-done svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  .ask-done h3 { font: 700 1.5rem/1.2 var(--display); font-stretch: 112%; margin: 0 0 0.25rem; }
  .ask-done p { margin: 0; opacity: 0.85; }
  .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

  footer { border-top: 1px solid var(--hair-dark); padding: 2.5rem 0 3rem; color: var(--steel); font-size: 0.9375rem; }
  footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
  footer .brand b { color: var(--bone); font-size: 0.9rem; }

  @media (max-width: 960px) {
    .split, .product { grid-template-columns: 1fr; gap: 3rem; }
    .story { grid-template-columns: 1fr; max-width: 34rem; }
    .story li:not(:last-child) figure::after { display: none; }
  }
  @media (max-width: 760px) {
    .band { padding: 4.5rem 0; }
    .divisions { grid-template-columns: 1fr; }
    .division { min-height: 0; }
    .menu-toggle { display: block; position: relative; }
    .menu-toggle summary { list-style: none; cursor: pointer; font: 600 0.9375rem/1 var(--text); border: 1px solid var(--hair-dark); padding: 0.65rem 1rem; border-radius: 2px; }
    .menu-toggle summary::-webkit-details-marker { display: none; }
    .menu-toggle nav { position: absolute; right: 0; top: 3rem; background: var(--graphite-2); border: 1px solid var(--hair-dark); padding: 1rem 1.25rem; display: grid; gap: 0.9rem; min-width: 12rem; }
    .menu-toggle nav a { text-decoration: none; }
    .menu { display: none; }
    .problem, .composer-bar { padding-left: 1rem; padding-right: 1rem; }
    .composer textarea, .rec-bar { min-height: 6rem; }
    .composer-bar { flex-wrap: wrap; }
    .composer-bar input { flex-basis: 100%; }
    .send { flex: 1; }
    .hero .content { padding-top: 7rem; padding-bottom: 11rem; }
    .page-head { padding: 8rem 0 3.5rem; }
  }
