@layer layout {
  .hero{padding-top:44px}
  .hero-intro{grid-template-columns:1fr auto;align-items:end;column-gap:40px;row-gap:0}
  .hero-intro h1{font-size:clamp(35px,3.25vw,46px);line-height:1.12;margin-bottom:18px;font-weight:400}
  .hero-description{font-size:15px;line-height:1.65;max-width:55ch}
  .hero-description span{display:block}
  .hero-intro>.text-link{background:var(--ink);color:var(--paper);border:0;padding:14px 23px;min-height:49px;font-size:13px;align-self:center}
  .hero-footnote{margin-top:0;padding-top:15px;font-size:11px}
}
@layer components {
  .nav-action{background:var(--ink);color:var(--paper);padding:10px 17px;font-size:12px;min-height:43px;transition:background .2s}
  .nav-action:hover{background:#453a30}
  .position-story{margin-top:35px;border:1px solid #cec3b6;background:#faf7f2;container-type:inline-size}
  .story-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 30px;border-bottom:1px solid #e1d8ce}
  .story-identity{display:flex;align-items:center;gap:14px}
  .story-asset{display:grid;place-items:center;width:40px;height:43px;background:var(--ink);color:var(--paper);font-family:var(--display);font-size:26px;line-height:1}
  .story-identity h2{font-size:19px;letter-spacing:-.025em;font-weight:500}
  .story-identity p{font-size:11px;color:var(--muted);margin-top:5px}
  .story-mode{font-size:10px;letter-spacing:.06em;color:var(--copper-text);white-space:nowrap}
  .story-main{padding:22px 30px 0}
  .story-topline{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:9px;font-size:12px}
  #story-stage-title{font-weight:600}
  .story-topline>span:last-child{color:var(--muted);font-size:11px}
  .story-plot{inline-size:100%;margin-top:5px}
  .story-plot svg{inline-size:100%;block-size:246px;overflow:visible;max-inline-size:none}
  .story-liquidation-line{fill:none;stroke:#827569;stroke-width:1}
  .story-baseline{fill:none;stroke:#d7cdc2;stroke-width:1}
  .story-trigger-line{fill:none;stroke:#9c6c41;stroke-width:1;stroke-dasharray:4 5;opacity:.72}
  .story-axis-label,.story-trigger-label{font-family:var(--body);font-size:11px;letter-spacing:0}
  .story-axis-label{fill:#655a50}
  .story-trigger-label{fill:#85542e}
  .story-bar{fill:#d4c9bc;transition:fill .22s}
  .story-bar-value{fill:var(--ink);font-family:var(--display);font-size:30px;letter-spacing:-1px;font-weight:400;transition:fill .22s}
  .story-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:-12px}
  .story-stages button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:13px 7px 16px;min-height:64px;border-bottom:2px solid transparent;color:var(--muted);transition:color .2s,border-color .2s}
  .story-stages button>span{font-size:13px;font-weight:600}
  .story-stages button>small{font-size:10px;font-weight:400}
  .story-stages button[aria-pressed=true]{border-color:var(--copper);color:var(--ink)}
  .story-stages button:hover{color:var(--ink)}
  .story-totals{display:grid;grid-template-columns:1fr 1fr 1fr 1.4fr;margin:0;padding:22px 30px;background:#eee6dc;border-top:1px solid #e0d5c8;gap:25px}
  .story-totals>div{display:flex;flex-direction:column;gap:6px}
  .story-totals dt{font-size:11px;color:#655d53;line-height:1.5}
  .story-totals dd{font-family:var(--display);font-size:30px;line-height:1.2;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
  .story-totals>div:last-child dd{color:var(--copper-text)}
  .story-footer{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:17px 30px;border-top:1px solid #e0d5c8}
  .story-footer p{font-size:12px;color:var(--muted);max-width:80ch;line-height:1.7}
  .story-footer button{font-size:12px;white-space:nowrap;min-height:44px;padding-inline:15px;border:1px solid #c8b9a9;transition:background .2s}
  .story-footer button:hover{background:#eee6dc}
  .comparison{grid-template-columns:1fr 1fr;gap:28px}
  .comparison>div+div{border-left:1px solid var(--line);padding-left:24px}
  .result-symbol{display:none}
  .text-link{gap:0}
  .text-link:hover{gap:0}
  .primary-button{justify-content:center}
  .hero-intro>.text-link:hover{background:#453a30;color:var(--paper)}
}
@layer utilities {
  @media(max-width:1000px){.story-totals{gap:20px}.story-totals dd{font-size:27px}.story-totals dt{font-size:10px}.story-footer p{font-size:11px}}
  @media(max-width:700px){
    .hero{padding-top:29px}.hero-intro{display:block}.hero-intro h1{font-size:38px;max-width:14ch;margin-bottom:20px}.hero-description{font-size:13px;max-width:36ch;line-height:1.75}.hero-description span{display:block}.hero-intro>.text-link{display:inline-flex;font-size:12px;padding:12px 18px;margin-top:23px;min-height:47px}
    .position-story{margin-top:29px}.story-header{padding:18px 17px;gap:10px;align-items:start}.story-identity{gap:10px}.story-asset{width:32px;height:36px;font-size:23px}.story-identity h2{font-size:15px}.story-identity p{font-size:9px;margin-top:5px;max-width:23ch}.story-mode{font-size:8px;letter-spacing:0;max-width:9ch;white-space:normal;text-align:right;line-height:1.7}
    .story-main{padding:19px 12px 0}.story-topline{gap:10px;font-size:11px;margin-bottom:10px;padding-inline:4px}.story-topline>span:last-child{font-size:9px;max-width:10ch;text-align:right;line-height:1.5}.story-axis-label,.story-trigger-label{font-size:10px}.story-bar-value{font-size:23px;letter-spacing:-.7px}.story-stages{margin-top:-12px}.story-stages button{padding:10px 3px 14px;min-height:65px;gap:4px}.story-stages button>span{font-size:11px}.story-stages button>small{font-size:9px;max-width:10ch;line-height:1.5}
    .story-totals{grid-template-columns:1fr 1fr;padding:21px 17px;gap:20px 15px}.story-totals dt{font-size:10px;max-width:17ch}.story-totals dd{font-size:27px}.story-footer{display:block;padding:17px}.story-footer p{font-size:11px;line-height:1.8}.story-footer button{margin-top:14px;font-size:11px;padding-inline:15px;min-height:43px}.hero-footnote{font-size:9px;gap:15px;line-height:1.8}
    .comparison{gap:15px}.comparison>div+div{padding-left:15px}.nav-action{display:none}
  }
  @media(prefers-reduced-motion:reduce){.story-bar,.story-bar-value,.story-stages button{transition:none}}
}

/* Keep the explanation and interactive position on one continuous surface */
@layer utilities {
  .approach{padding-bottom:38px}
  .approach-row:last-child{border-bottom:0}
  .workspace-section{padding-block:38px 54px}
  .workspace-section .workspace-heading{display:block}
  .workspace-section .workspace-heading h2{max-width:none;text-wrap:balance}
  .workspace-section .workspace-heading .section-description{max-width:55ch;margin-top:18px}
  .workspace-section .workspace{margin-top:42px;background:transparent}
  .workspace-section .workspace-overview{padding:0 48px 0 0}
  .workspace-section .rule-form{padding:0 0 0 48px}
  .positions{padding-top:76px}
  .method-section{padding-block:60px}
  @media(max-width:1000px) and (min-width:701px){
    .workspace-section .workspace-overview{padding:0 28px 0 0}
    .workspace-section .rule-form{padding:0 0 0 28px}
  }
  @media(max-width:700px){
    .approach{padding-bottom:22px}
    .workspace-section{padding-block:30px 34px}
    .workspace-section .workspace-heading h2{max-width:18ch}
    .workspace-section .workspace-heading .section-description{margin-top:17px}
    .workspace-section .workspace{margin-top:32px}
    .workspace-section .workspace-overview{padding:0 0 30px;border-right:0}
    .workspace-section .rule-form{padding:30px 0 0}
    .positions{padding-top:52px}
    .method-section{padding-block:46px}
  }
}

/* A quieter type system and less visual weight around actions */
@layer utilities {
  body{font-size:16px;font-weight:400}
  h1,h2,h3{font-weight:400;letter-spacing:-.025em;line-height:1.12;font-optical-sizing:auto}
  .hero-intro h1{font-size:46px;letter-spacing:-.025em;line-height:1.14}
  .section-heading h2,.workspace-heading h2,.positions-heading h2,.method-intro h2{font-size:43px;line-height:1.13;letter-spacing:-.025em}
  .approach-row h3{font-size:31px;line-height:1.18;letter-spacing:-.02em}
  .closing h2{font-size:43px;line-height:1.16;max-width:21ch;letter-spacing:-.025em}
  .brand{font-family:var(--body);font-size:31px;font-weight:600;letter-spacing:-1px}
  .desktop-nav a,.nav-action{font-size:15px}
  .hero-description,.section-description,.method-intro>p:not(.eyebrow){font-size:16px;line-height:1.65}
  .approach-row p{font-size:16px;line-height:1.7}
  .story-identity h2,.position-identity h3,.form-title h3,.method-details summary{font-family:var(--body);font-weight:500;letter-spacing:-.015em}
  .story-identity h2{font-size:21px}
  .story-identity p,.position-identity p{font-size:14px;line-height:1.45}
  .story-asset,.asset-mark,.asset-monogram{font-family:var(--body);font-weight:500;letter-spacing:0}
  .story-topline{font-size:15px}
  .story-topline>span:last-child{font-size:14px}
  .story-bar-value,.story-totals dd,.position-summary strong,.comparison strong,.table-ltv,.range-heading output,.amount-field input{font-family:var(--body);font-variant-numeric:lining-nums tabular-nums;letter-spacing:-.025em;font-weight:400}
  .story-bar-value{font-size:32px}
  .story-axis-label,.story-trigger-label{font-size:13px}
  .story-stages button>span{font-size:15px;font-weight:500}
  .story-stages button>small{font-size:13px;line-height:1.45}
  .story-stages button{min-height:76px;gap:4px}
  .story-totals dt{font-size:14px;line-height:1.4}
  .story-totals dd{font-size:32px}
  .story-footer p{font-size:14px;line-height:1.6}
  .hero-footnote{font-size:14px;color:var(--muted);padding-top:14px}
  .light-label,.ltv-heading,.ltv-limit,.range-heading,.amount-field>label{font-size:15px}
  .ltv-scale,.range-endpoints{font-size:12px}
  .buffer-result>div>span{font-size:18px;font-weight:500}
  .buffer-result p,.comparison>div>span,.simulation-note,.amount-field p,.form-feedback{font-size:14px;line-height:1.55}
  .form-title h3{font-size:24px}
  .table-header,.price-observation,.response-label,.table-asset small,.table-footnote{font-size:14px;line-height:1.5}
  .table-asset{font-size:17px}
  .market-filter button,.row-detail,.row-detail .text-link,.method-details p{font-size:15px}
  .method-details p{line-height:1.65}
  .method-details summary{font-size:22px}
  .text-link,.method-intro .text-link{font-size:15px;font-weight:500}
  .method-intro .text-link{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
  .primary-button,.nav-action,.hero-intro>.text-link,.story-footer button{
    background:#eee4d8;color:var(--ink);border:1px solid #b6a28d;border-radius:4px;
    font-family:var(--body);font-size:15px;font-weight:500;line-height:1.3;
    min-height:48px;padding:12px 20px;gap:8px;
    transition:background-color .18s,border-color .18s,color .18s;
    text-decoration:none;box-shadow:none
  }
  .primary-button:hover,.nav-action:hover,.hero-intro>.text-link:hover,.story-footer button:hover{background:#e3d3c0;border-color:#92765b;color:var(--ink)}
  .primary-button:active,.nav-action:active,.hero-intro>.text-link:active,.story-footer button:active{background:#dac6ad}
  .primary-button:focus-visible,.nav-action:focus-visible,.hero-intro>.text-link:focus-visible,.story-footer button:focus-visible{outline:2px solid var(--copper-text);outline-offset:4px}
  .closing>.primary-button{min-width:0;width:max-content;bottom:117px;padding-inline:22px}
  .site-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:30px;padding-top:28px;padding-bottom:35px;position:relative}
  .site-footer::before{content:'';position:absolute;top:0;left:var(--gutter);right:var(--gutter);height:1px;background:var(--line)}
  .site-footer>p{font-size:14px;line-height:1.6;color:var(--muted);max-width:62ch}
  .dialog-head{justify-content:flex-end;margin-bottom:8px}
  dialog h2{font-size:32px;letter-spacing:-.025em}
  dialog p,.assumption-list dt,.assumption-list dd{font-size:15px;line-height:1.55}
  .preview-boundaries{margin-top:24px;border-top:1px solid var(--line)}
  .preview-boundaries summary{padding-block:17px;font-size:16px;font-weight:500;text-decoration:underline;text-underline-offset:5px}
  .preview-boundaries a{font-size:15px;text-decoration:underline}
  @media(max-width:1000px) and (min-width:701px){
    .workspace-overview,.rule-form{padding:30px}
    .closing h2{max-width:17ch;font-size:39px}
    .story-totals{gap:18px}.story-totals dt{font-size:13px}
    .price-observation,.response-label{font-size:13px}
  }
  @media(max-width:700px){
    .brand{font-size:29px}.nav-action{display:none}
    .hero-intro h1{font-size:37px;line-height:1.16;max-width:16ch;margin-bottom:19px}
    .hero-description,.section-heading .section-description,.workspace-heading .section-description,.method-intro>p:not(.eyebrow){font-size:16px;line-height:1.6;max-width:36ch}
    .hero-intro>.text-link{font-size:15px;padding:12px 18px;min-height:48px;margin-top:23px}
    .section-heading h2,.workspace-heading h2,.positions-heading h2,.method-intro h2,.closing h2{font-size:35px;line-height:1.16;max-width:18ch}
    .approach-row h3{font-size:28px}.approach-row p{font-size:16px;line-height:1.65}
    .story-header{padding:20px 17px}.story-identity h2{font-size:19px}.story-identity p{font-size:12px;max-width:28ch}
    .story-asset{width:32px;min-width:32px;height:36px}
    .story-topline{font-size:13px;gap:12px}.story-topline>span:last-child{font-size:12px;max-width:9ch}
    .story-bar-value{font-size:25px}.story-axis-label,.story-trigger-label{font-size:11px}
    .story-stages button>span{font-size:14px}.story-stages button>small{font-size:12px;max-width:12ch}
    .story-stages button{min-height:82px;padding-inline:2px}
    .story-totals{padding:22px 17px;gap:22px 18px}.story-totals dt{font-size:13px;max-width:20ch}.story-totals dd{font-size:29px}
    .story-footer p{font-size:14px}.story-footer button{font-size:14px;min-height:44px;margin-top:16px}
    .hero-footnote{font-size:13px;padding-top:14px}
    .position-identity h3{font-size:19px}.position-identity p{font-size:13px;max-width:25ch}.info-button{width:30px;height:30px}
    .light-label{font-size:14px}.position-summary strong{font-size:29px}.ltv-heading,.ltv-limit{font-size:13px}
    .ltv-scale,.range-endpoints{font-size:12px}.buffer-result>div>span{font-size:17px}.buffer-result p{font-size:14px;max-width:36ch}
    .comparison>div>span,.simulation-note,.form-feedback,.amount-field p{font-size:14px}
    .range-heading,.amount-field>label{font-size:15px}.range-heading output{font-size:20px}
    .form-title h3{font-size:23px}.rule-form .primary-button{font-size:15px;min-height:49px}
    .positions-heading{margin-bottom:25px}.market-filter button{font-size:15px}
    .table-header{font-size:12px;grid-template-columns:1.5fr .8fr 1fr}
    .position-row summary{grid-template-columns:1.5fr .8fr 1fr 10px;gap:7px}
    .table-asset{font-size:14px;gap:8px}.table-asset small{font-size:12px}.asset-monogram{font-size:24px;width:20px}
    .table-ltv{font-size:19px}.response-label{font-size:12px;white-space:normal}.row-detail{padding-left:28px;font-size:14px}.row-detail p strong{font-size:15px}.row-detail .text-link{font-size:14px}
    .table-footnote{font-size:13px;margin-top:17px}.method-details summary{font-size:21px}.method-details p{font-size:15px;line-height:1.65}
    .method-intro .text-link{font-size:15px}.closing>.primary-button{position:static;margin-top:26px;min-width:0;font-size:15px}
    .closing{padding-block:65px 60px}.site-footer{display:block;padding-top:25px;padding-bottom:30px}.site-footer>p{margin-top:22px;font-size:14px;line-height:1.65}
    dialog h2{font-size:29px}dialog p,.assumption-list dt,.assumption-list dd{font-size:14px}
  }
  @media(prefers-reduced-motion:reduce){.primary-button,.nav-action,.hero-intro>.text-link,.story-footer button{transition:none}}
}

@layer utilities {
  .brand{display:inline-flex;flex-shrink:0;line-height:1;min-height:44px}
  .brand>img{width:173px;height:auto;max-inline-size:none}
  .site-footer>.brand>img{width:160px}
  @media(max-width:700px){.brand>img{width:162px}.site-footer>.brand>img{width:154px}}
}

@layer utilities {
  .field-error,.form-feedback.error{color:#8a3c32}
  .amount-field>div:has(input[aria-invalid="true"]){border-color:#8a3c32}
  .rule-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:8px}
  .rule-actions button{min-height:44px;padding:8px 0;font-size:15px;color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
  .rule-actions button:disabled{color:var(--muted);text-decoration:none;cursor:not-allowed}
  dialog{overscroll-behavior:contain}
}

@layer utilities {
  .token-contract{display:flex;align-items:center;gap:28px;margin-top:28px;padding-block:17px;border-block:1px solid var(--line);scroll-margin-top:25px}
  .token-contract h2{font-family:var(--body);font-size:15px;font-weight:400;letter-spacing:0;line-height:1.5;color:var(--muted);margin:0}
  .contract-value{font-size:17px;font-weight:550;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}
  .contract-network{margin-left:auto;font-size:14px;line-height:1.5;color:var(--muted)}
  .site-footer .token-contract-link{display:inline-flex;align-items:center;min-height:44px;flex-shrink:0;font-size:15px;line-height:1.5;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;text-decoration-color:#b6a28d}
  .site-footer .token-contract-link:hover{color:var(--copper-text)}
  @media(max-width:700px){
    .token-contract{display:grid;grid-template-columns:1fr auto;gap:6px 16px;margin-top:27px;padding-block:16px}
    .token-contract h2{font-size:14px}.contract-value{font-size:16px}
    .contract-network{grid-column:1/-1;margin-left:0;font-size:14px}
    .site-footer .token-contract-link{display:flex;width:max-content;margin-top:12px}
  }
}
