html{scroll-behavior:smooth;scroll-padding-top:72px}
body{margin:0;background:#F8F6F1;color:#1E1D1B;font-family:'Hanken Grotesk',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
[hidden]{display:none !important}
a{color:#1E1D1B;text-decoration:none}
a:hover{color:#3F6B6A}
::selection{background:#D6E2E0}
:focus-visible{outline:2px solid #3F6B6A;outline-offset:3px}
input::placeholder,textarea::placeholder{color:#8E8981}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}*{transition:none !important;animation:none !important}}

/* Header */
.site-header{position:sticky;top:0;z-index:10;background:#F8F6F1;border-bottom:1px solid #E3DED4}
.site-nav{max-width:1280px;margin:0 auto;padding:0 clamp(20px,4vw,48px);height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center}
.brand img{height:32px;width:auto;display:block}
.nav-links{display:flex;align-items:center;gap:clamp(16px,3vw,36px)}
.nav-link{font-size:14px;color:#4A4743}
.nav-link:hover{color:#1E1D1B}
.nav-cta{font-size:14px;font-weight:500;padding:10px 16px;border:1px solid #1E1D1B;color:#1E1D1B;transition:background .25s,color .25s}
.nav-cta:hover{background:#1E1D1B;color:#F8F6F1}

/* Products menu */
.nav-menu{position:relative}
.nav-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px}
.nav-menu summary::-webkit-details-marker{display:none}
.nav-menu summary::after{content:'';width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s}
.nav-menu[open] summary{color:#1E1D1B}
.nav-menu[open] summary::after{transform:translateY(1px) rotate(225deg)}
.nav-menu-panel{position:absolute;top:calc(100% + 22px);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);display:grid;grid-template-columns:repeat(2,minmax(200px,auto));gap:24px 40px;padding:28px 32px;background:#FBFAF7;border:1px solid #E3DED4;box-shadow:0 18px 40px -24px rgba(30,29,27,.35)}
.nav-menu-group{display:flex;flex-direction:column;gap:12px}
.nav-menu-label{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.14em;color:#3F6B6A;margin-bottom:4px}
.nav-menu-panel a{font-size:15px;color:#1E1D1B}
.nav-menu-panel a:hover{color:#3F6B6A}
.nav-menu-panel .nav-menu-all{grid-column:1 / -1;padding-top:18px;border-top:1px solid #E3DED4;font-size:14px;font-weight:500;display:flex;gap:10px}

/* Shared type */
.eyebrow{display:flex;gap:16px;align-items:baseline;font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:0.14em;color:#6B6760}
.eyebrow-num{color:#3F6B6A}
.section-title{margin:0;font-family:'Newsreader',Georgia,serif;font-weight:300;font-size:clamp(38px,4.8vw,68px);line-height:1.04;letter-spacing:-0.02em;text-wrap:balance}
.section-lede{margin:0;font-size:clamp(17px,1.4vw,19px);line-height:1.6;color:#4A4743;text-wrap:pretty}

/* Hero */
.hero{max-width:1280px;margin:0 auto;padding:clamp(28px,4vw,56px) clamp(20px,4vw,48px) clamp(48px,6vw,88px)}
/* Each slide: copy on top (title beside the lede on wide screens), wide drawing below */
.slide{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(28px,3.5vw,48px);margin-bottom:48px}
/* Stacked slides share three rows (copy, tabs, drawing) through subgrid, so the tabs and drawing sit at the same
   height on every slide, and the tabs sit above the drawing where they show without scrolling */
.carousel-ready .slides{display:grid;grid-template-rows:auto auto auto}
.carousel-ready .slide{grid-area:1 / 1 / 4 / 2;grid-template-rows:subgrid;row-gap:0;margin:0;opacity:0;visibility:hidden;transition:opacity .5s,visibility .5s}
.carousel-ready .hero-copy{margin-bottom:clamp(24px,2.5vw,36px)}
.carousel-ready .hero-figure{grid-row:3}
.carousel-ready .slide.is-active{opacity:1;visibility:visible}
.carousel-controls{grid-area:2 / 1;position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:center;gap:0 clamp(12px,2vw,28px);border-top:1px solid #E3DED4}
.carousel-tab,.carousel-pause{background:none;border:0;padding:14px 0;font:inherit;font-size:14px;color:#6B6760;cursor:pointer}
.carousel-tab{position:relative;margin-top:-1px;border-top:2px solid transparent}
.carousel-tab:hover,.carousel-pause:hover{color:#3F6B6A}
.carousel-tab.is-active{color:#1E1D1B;border-top-color:#3F6B6A}
/* While the slides play, the active tab's line fills up until the next slide */
.is-playing .carousel-tab.is-active{border-top-color:#C9C3B8}
.carousel-tab::after{content:"";position:absolute;left:0;right:0;top:-2px;height:2px;background:#3F6B6A;transform:scaleX(0);transform-origin:left}
.is-playing .carousel-tab.is-active::after{animation:tab-progress var(--slide-interval,8s) linear forwards}
@keyframes tab-progress{to{transform:scaleX(1)}}
.carousel-num{font-family:'IBM Plex Mono',monospace;font-size:11px;color:#3F6B6A}
.carousel-pause{margin-left:auto}
/* Phones: only the active tab shows its name (the others keep it for screen readers), so the tabs fit on one line */
@media (max-width:479px){
  .carousel-tab:not(.is-active) .carousel-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
.hero-copy{display:flex;flex-direction:column;gap:clamp(28px,3.5vw,40px)}
.hero-eyebrow{margin:0 0 clamp(16px,2vw,28px);font-weight:400;font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:0.14em;color:#3F6B6A}
.hero-title{margin:0;font-family:'Newsreader',Georgia,serif;font-weight:300;font-size:clamp(38px,4.8vw,68px);line-height:1.04;letter-spacing:-0.02em;text-wrap:balance}
.hero-title em{font-style:italic;font-weight:300}
.hero-lede{margin:0;max-width:52ch;font-size:clamp(18px,1.6vw,21px);line-height:1.5;color:#4A4743;text-wrap:pretty}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:24px;padding-top:8px}
.hero-actions .text-link{align-self:center}
.hero-points{padding:0;list-style:none;display:grid;gap:4px}
.hero-points li::before{content:"—";margin-right:12px;color:#3F6B6A}
.btn-primary{display:inline-flex;align-items:center;gap:14px;background:#1E1D1B;color:#F8F6F1;font-size:15px;font-weight:500;padding:16px 26px;transition:background .3s}
.btn-primary:hover{background:#3F6B6A;color:#F8F6F1}
.hero-figure{margin:0;position:relative;background:#F0EDE6;border:1px solid #E3DED4;aspect-ratio:1200 / 480;overflow:hidden}
.hero-visual{position:absolute;inset:0;width:100%;height:100%;display:block}
.fig-node{font-family:'Newsreader',Georgia,serif;font-size:27px}
.fig-tag{font-family:'IBM Plex Mono',monospace;font-size:16px;letter-spacing:0.08em}
.fig-small{font-size:18px}
.fig-mini{font-size:16px}
@media (min-width:900px){
  .hero-copy{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-content:start;column-gap:clamp(32px,6vw,96px);row-gap:24px}
  .hero-title{grid-row:1 / 3;align-self:center}
  .hero-lede{align-self:end}
  .hero-actions{align-self:start}
}
.fig-xl{font-size:40px}
.fig-xtag{font-size:17px}
.fig-ui{font-size:21px}
.fig-tile{font-size:29px}
.fig-chip{font-size:17px}
@media (max-width:639px){.fig-xtag,.hero-caption{display:none}}
.hero-caption{position:absolute;left:16px;top:14px;font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:0.14em;color:#6B6760}

/* AI Drilling Assistant */
.section-assistant{background:#1E1D1B;color:#F8F6F1;border-top:0}
.section-assistant .eyebrow{color:#A9A49B}
.section-assistant .eyebrow-num{color:#8FB5B3}
.section-assistant .section-title em{font-style:italic;color:#8FB5B3}
.section-assistant .section-lede{color:#CFCAC0}
.assistant-inner{max-width:1280px;margin:0 auto;padding:clamp(72px,10vw,136px) clamp(20px,4vw,48px);display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:clamp(48px,7vw,112px);align-items:center}
.assistant-copy{display:flex;flex-direction:column;gap:28px;align-items:flex-start}
.assistant-lede{max-width:34ch}
.assistant-points{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px;max-width:46ch}
.assistant-points li{position:relative;padding-left:22px;font-size:16px;line-height:1.55;color:#CFCAC0}
.assistant-points li::before{content:'';position:absolute;left:0;top:9px;width:7px;height:7px;background:#8FB5B3}
.assistant-points strong{font-weight:500;color:#F8F6F1}
.section-assistant .btn-primary{background:#F8F6F1;color:#1E1D1B}
.section-assistant .btn-primary:hover{background:#8FB5B3;color:#1E1D1B}
.section-assistant :focus-visible{outline-color:#8FB5B3}
.chat-figure{margin:0;display:flex;flex-direction:column;gap:14px;min-width:0}
.chat{background:#FBFAF7;color:#1E1D1B;border:1px solid #3A3835;box-shadow:0 30px 60px -30px rgba(0,0,0,.6);display:flex;flex-direction:column}
.chat-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 18px;border-bottom:1px solid #E3DED4;font-size:14px;font-weight:500}
.chat-avatar{width:24px;height:24px;display:block}
.msg .fig{font-family:'IBM Plex Mono',monospace;font-size:.92em;font-weight:500;letter-spacing:-0.01em;color:#2F5554;white-space:nowrap}
.chat-well{margin-left:auto;font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.06em;color:#6B6760;font-weight:400}
.chat-body{padding:20px 18px;display:grid}
.exchange{display:flex;flex-direction:column;gap:14px;margin-bottom:28px}
.chat-ready .exchange{grid-area:1 / 1;margin:0;opacity:0;visibility:hidden;transition:opacity .4s,visibility .4s}
.chat-ready .exchange.is-active{opacity:1;visibility:visible}
.msg{margin:0;font-size:15px;line-height:1.5}
.msg-user{align-self:flex-end;max-width:85%;background:#1E1D1B;color:#F8F6F1;padding:10px 14px}
.msg-text:empty::after,.is-typing .msg-text::after{content:'';display:inline-block;width:1px;height:1em;margin-left:2px;vertical-align:-2px;background:currentColor;animation:caret 1s steps(1) infinite}
@keyframes caret{50%{opacity:0}}
.msg-ai{align-self:stretch;border:1px solid #E3DED4;background:#F4F1EB;padding:14px 16px;min-height:52px}
.msg-ai p{margin:0}
.msg-answer{display:flex;flex-direction:column;gap:12px}
.thinking{display:none;gap:5px;padding:6px 0}
.thinking i{width:6px;height:6px;border-radius:50%;background:#8E8981;animation:think 1s infinite}
.thinking i:nth-child(2){animation-delay:.15s}
.thinking i:nth-child(3){animation-delay:.3s}
@keyframes think{0%,80%,100%{opacity:.3}40%{opacity:1}}
.is-thinking .thinking{display:flex}
.is-thinking .msg-answer,.is-typing .msg-ai{display:none}
.is-thinking .msg-ai{display:block}
.chat-note{font-size:13px;color:#6B6760}
.chat-input{display:flex;justify-content:space-between;align-items:center;margin:0 18px 18px;padding:12px 14px;border:1px solid #D6D0C5;font-size:14px;color:#8E8981}
.chat-send{color:#3F6B6A}
.chat-tabs{display:flex;flex-wrap:wrap;gap:8px}
.chat-tab{background:none;border:1px solid #4A4743;color:#CFCAC0;font:inherit;font-size:13px;padding:7px 12px;cursor:pointer;transition:border-color .2s,color .2s}
.chat-tab:hover{border-color:#8FB5B3;color:#F8F6F1}
.chat-tab.is-active{border-color:#8FB5B3;color:#F8F6F1;background:#2A2927}
.chat-caption{font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:0.14em;color:#A9A49B}
.product.product-featured{background:#1E1D1B;color:#F8F6F1}
.product.product-featured:hover,.product.product-featured:target{background:#2A2927}
.product.product-featured .product-num{color:#8FB5B3}
.product.product-featured p{color:#CFCAC0}
.product.product-featured:target h4{color:#8FB5B3}
.product-link{margin-top:auto;padding-top:6px;font-size:14px;font-weight:500;color:#8FB5B3;display:inline-flex;gap:8px}
.product-link:hover{color:#F8F6F1}

/* Platform and demo sections */
.section{border-top:1px solid #E3DED4}
.section-platform{background:#F8F6F1}
.platform-inner{max-width:1280px;margin:0 auto;padding:clamp(72px,10vw,144px) clamp(20px,4vw,48px);display:flex;flex-direction:column;gap:clamp(48px,6vw,88px)}
.split{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:clamp(24px,5vw,80px)}
.split-main{grid-column:span 2;min-width:0;max-width:760px;display:flex;flex-direction:column;gap:24px}
.platform-lede{max-width:46ch}
.product-group{display:flex;flex-direction:column;gap:24px}
.product-group-title{margin:0;font-family:'IBM Plex Mono',monospace;font-weight:400;font-size:12px;letter-spacing:0.14em;color:#6B6760}
.products{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:1px;background:#E3DED4;border:1px solid #E3DED4}
.product{background:#F8F6F1;padding:clamp(24px,2.6vw,36px);display:flex;flex-direction:column;gap:14px;scroll-margin-top:96px;transition:background .25s}
.product:hover,.product:target{background:#FBFAF7}
.product:target h4{color:#3F6B6A}
.product-num{font-family:'IBM Plex Mono',monospace;font-size:12px;color:#3F6B6A}
.product h4{margin:0;font-family:'Newsreader',Georgia,serif;font-weight:400;font-size:clamp(23px,2vw,28px);line-height:1.15;letter-spacing:-0.01em;transition:color .25s}
.product p{margin:0;font-size:16px;line-height:1.6;color:#4A4743;text-wrap:pretty}
.built-in{display:flex;flex-wrap:wrap;align-items:baseline;gap:20px clamp(24px,5vw,80px);padding-top:clamp(24px,3vw,40px);border-top:1px solid #E3DED4}
.built-in .product-group-title{flex:0 0 clamp(140px,20vw,280px)}
.built-in-list{flex:1 1 300px;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px 40px}
.built-in-list li{position:relative;padding-left:34px;display:flex;flex-direction:column;gap:3px;font-size:16px;line-height:1.45}
.built-in-list li::before{content:'';position:absolute;left:0;top:1px;width:20px;height:20px;border:1px solid #3F6B6A;background:#E8EEEC}
.built-in-list li::after{content:'';position:absolute;left:7px;top:4px;width:5px;height:10px;border-right:1.5px solid #3F6B6A;border-bottom:1.5px solid #3F6B6A;transform:rotate(45deg)}
.built-in-list strong{font-weight:500;color:#1E1D1B}
.built-in-list span{font-size:15px;color:#6B6760}
.section-demo{background:#FBFAF7}
.demo-inner{max-width:1280px;margin:0 auto;padding:clamp(72px,10vw,152px) clamp(20px,4vw,48px)}
.demo-main{gap:28px}
.demo-lede{max-width:44ch}
.text-link{align-self:flex-start;display:inline-flex;gap:10px;font-size:15px;font-weight:500;padding-bottom:6px;border-bottom:1px solid #3F6B6A;color:#1E1D1B}
.text-link:hover{color:#3F6B6A}

/* Contact */
.section-contact{background:#F0EDE6}
.contact-inner{max-width:1280px;margin:0 auto;padding:clamp(72px,10vw,144px) clamp(20px,4vw,48px);display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:clamp(48px,7vw,112px);align-items:start}
.contact-copy{display:flex;flex-direction:column;gap:28px}
.contact-lede{margin:0;max-width:36ch;font-size:17px;line-height:1.6;color:#4A4743;text-wrap:pretty}
.contact-card{background:#FBFAF7;border:1px solid #E0DBD1;padding:clamp(24px,4vw,48px)}
.success{display:flex;flex-direction:column;gap:20px;min-height:360px;justify-content:center}
.success-mark{width:36px;height:36px;border:1px solid #3F6B6A;display:flex;align-items:center;justify-content:center;color:#3F6B6A;font-size:16px}
.success h3{margin:0;font-family:'Newsreader',Georgia,serif;font-weight:400;font-size:32px;letter-spacing:-0.01em}
.success p{margin:0;max-width:38ch;font-size:16px;line-height:1.6;color:#4A4743}
.btn-reset{align-self:flex-start;background:none;border:none;border-bottom:1px solid #C9C3B8;padding:0 0 4px;font:inherit;font-size:14px;color:#4A4743;cursor:pointer}
.btn-reset:hover{color:#1E1D1B;border-bottom-color:#1E1D1B}
.demo-form{display:flex;flex-direction:column;gap:28px}
.field-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:28px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.12em;color:#6B6760}
.label-split{display:flex;justify-content:space-between;gap:12px}
.label-optional{color:#8E8981}
.field input,.field textarea{border:none;border-bottom:1px solid #C9C3B8;background:transparent;padding:10px 0;font:inherit;font-size:17px;color:#1E1D1B;border-radius:0;outline:none;transition:border-color .2s}
.field textarea{line-height:1.5;resize:vertical}
.field .is-invalid{border-bottom-color:#A4472F}
.field input:focus,.field textarea:focus{border-bottom-color:#3F6B6A;box-shadow:0 1px 0 #3F6B6A}
.field-error{min-height:18px;font-size:13px;color:#A4472F}
.choice-field{margin:0;padding:0;border:0;min-width:0}
.choice-field legend{padding:0;margin-bottom:14px;font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.12em;color:#6B6760}
.choices{display:flex;flex-wrap:wrap;gap:10px}
.field .choice{position:relative;display:inline-flex;cursor:pointer;font-family:inherit;font-size:14px;letter-spacing:normal;color:#4A4743}
.choice input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.choice span{display:inline-flex;align-items:center;gap:10px;padding:9px 14px;border:1px solid #C9C3B8;font-size:14px;color:#4A4743;line-height:1.3;transition:border-color .2s,background .2s,color .2s}
.choice span::before{content:'';flex:none;width:12px;height:12px;border:1px solid #8E8981;background:#FBFAF7;transition:background .2s,border-color .2s}
.choice:hover span{border-color:#3F6B6A;color:#1E1D1B}
.choice input:checked + span{border-color:#3F6B6A;background:#E8EEEC;color:#1E1D1B}
.choice input:checked + span::before{background:#3F6B6A;border-color:#3F6B6A;box-shadow:inset 0 0 0 2px #E8EEEC}
.choice input:focus-visible + span{outline:2px solid #3F6B6A;outline-offset:2px}
.choice input:disabled + span{opacity:.6;cursor:default}
.choice-field.is-invalid .choice span{border-color:#C99A8C}
.other-field{margin-top:12px}
.other-field input{width:100%}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Honeypot: hidden from people, filled in by spam bots */
.hp-field{display:none}
.form-alert{display:flex;gap:14px;padding:16px 18px;border:1px solid #E2C6BC;background:#F8EEEA}
.form-alert-mark{flex:none;width:7px;height:7px;margin-top:7px;background:#A4472F;display:block}
.form-alert-text{display:flex;flex-direction:column;gap:4px}
.form-alert strong{font-size:14px;font-weight:600;color:#1E1D1B}
.form-alert span{font-size:14px;line-height:1.5;color:#4A4743}
.form-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;padding-top:4px}
.form-note{margin:0;max-width:34ch;font-size:13px;line-height:1.5;color:#6B6760}
.btn-submit{display:inline-flex;align-items:center;gap:14px;background:#1E1D1B;color:#F8F6F1;border:none;border-radius:0;font:inherit;font-size:15px;font-weight:500;padding:16px 26px;cursor:pointer;transition:background .3s}
.btn-submit:hover{background:#3F6B6A}
.btn-submit:disabled{opacity:.75}
.btn-submit-mark{display:inline-block;width:14px;text-align:center}

/* Footer */
.site-footer{border-top:1px solid #E3DED4;background:#F8F6F1}
.footer-inner{max-width:1280px;margin:0 auto;padding:32px clamp(20px,4vw,48px);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.footer-inner img{height:26px;width:auto;display:block}
.footer-meta{font-size:13px;color:#6B6760}

@media (max-width:700px){
  /* One column: "span 2" here would add a stray grid track and overflow the page */
  .split{grid-template-columns:minmax(0,1fr)}
  .split-main{grid-column:auto}
}
@media (max-width:639px){
  .nav-link,.nav-menu{display:none}
}
.chat-ready .exchange.is-active .msg-answer{animation:reveal .45s ease-out}
@keyframes reveal{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.footer-legal{flex-basis:100%;margin:0;font-size:12px;color:#6B6760}
