:root {
  --forest: #1f4d3a;
  --forest-dark: #0d3025;
  --forest-deep: #08251c;
  --timber: #a67c52;
  --timber-light: #c99a69;
  --cream: #f5f2e9;
  --paper: #fffdf8;
  --ink: #14251f;
  --muted: #52665e;
  --line: rgba(31, 77, 58, 0.18);
  --shadow: 0 24px 60px rgba(11, 42, 32, 0.12);
  --radius: 18px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 14px; background: white; color: var(--forest); transform: translateY(-160%); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 100; background: rgba(255, 253, 248, 0.97); border-bottom: 1px solid rgba(31, 77, 58, 0.08); }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 72px; color: var(--forest); fill: currentColor; }
.brand-mark-accent { color: var(--timber); fill: currentColor; }
.brand-type { display: grid; line-height: 1; }
.brand-name { font-weight: 900; font-size: 1.62rem; letter-spacing: -0.05em; color: var(--forest); }
.brand-name > span { color: var(--timber); }
.brand-tagline { margin-top: 5px; color: var(--forest); font-size: 0.52rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.site-nav a { position: relative; padding: 29px 0 27px; text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 650; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 2px; background: var(--timber); transition: right 180ms ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { right: 0; }
.site-nav .mobile-login { display: none; }
.menu-toggle { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 8px; text-decoration: none; font-weight: 750; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-link:focus-visible, .site-nav a:focus-visible, .brand:focus-visible, .menu-toggle:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--timber-light); outline-offset: 4px; }
.button-small { min-height: 46px; padding-inline: 20px; font-size: 0.9rem; }
.button-primary { background: var(--forest); color: white; box-shadow: 0 12px 24px rgba(31, 77, 58, 0.2); }
.button-primary:hover { background: var(--forest-dark); box-shadow: 0 16px 30px rgba(31, 77, 58, 0.26); }
.button-accent { background: var(--timber); color: white; box-shadow: 0 14px 30px rgba(58, 36, 18, 0.24); }
.button-accent:hover { background: #936b45; box-shadow: 0 18px 36px rgba(58, 36, 18, 0.3); }
.login-button { background: var(--forest); color: white; }
.login-button svg { width: 18px; fill: currentColor; }
.text-link { display: inline-flex; gap: 7px; align-items: center; color: var(--forest); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link-light { color: white; }

.hero { position: relative; min-height: 620px; display: grid; align-items: center; isolation: isolate; background: var(--forest-dark) url("assets/forestry-hero.png") center / cover no-repeat; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 130px; z-index: -1; background: linear-gradient(transparent, rgba(4, 21, 15, 0.42)); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 28, 20, 0.92) 0%, rgba(5, 28, 20, 0.78) 34%, rgba(5, 28, 20, 0.22) 63%, rgba(5, 28, 20, 0.05) 100%); }
.hero-inner { display: flex; justify-content: space-between; align-items: flex-end; padding-block: 90px; }
.hero-copy { max-width: 720px; color: white; }
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 14px; color: var(--forest); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.19em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--timber); }
.eyebrow-light { color: white; }
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(3.4rem, 6.1vw, 6.25rem); line-height: 0.92; letter-spacing: -0.065em; text-wrap: balance; }
.hero h1 span { color: var(--timber-light); }
.hero-summary { max-width: 620px; margin: 28px 0 0; font-size: clamp(1.06rem, 1.8vw, 1.28rem); line-height: 1.5; color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.hero-note { margin: 0 0 15px 20px; color: white; font-family: "Segoe Print", "Bradley Hand", cursive; font-size: clamp(1.65rem, 2.6vw, 2.35rem); line-height: 1.45; transform: rotate(-4deg); text-align: center; text-shadow: 0 2px 18px rgba(0,0,0,0.7); }

.tools-section { padding: 96px 0 108px; }
.section-heading { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: end; gap: 80px; margin-bottom: 42px; }
h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.65rem); line-height: 1.04; letter-spacing: -0.05em; text-wrap: balance; }
.section-heading > p, .values-intro > p { margin: 0 0 6px; color: var(--muted); font-size: 1.04rem; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.75fr); gap: 22px; }
.tool-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.tool-card-featured { min-height: 420px; display: grid; grid-template-columns: 1.05fr 0.95fr; box-shadow: var(--shadow); border-top: 5px solid var(--forest); }
.tool-card-copy { padding: 42px; align-self: center; }
.tool-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 13px; background: var(--forest); box-shadow: 0 10px 22px rgba(31,77,58,0.22); }
.tool-icon svg { width: 38px; fill: white; }
.tool-icon .icon-cut { fill: var(--forest); }
.tool-label { margin: 0 0 5px; color: var(--timber); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; }
.tool-card h3 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -0.04em; }
.tool-card p { color: var(--muted); }
.tool-card .tool-tagline { margin: 9px 0 18px; color: var(--forest); font-size: 1.12rem; font-weight: 750; }
.tool-card .button { margin-top: 14px; }
.tool-visual { display: grid; place-items: end center; min-height: 100%; padding: 35px 22px 0 0; background: linear-gradient(145deg, rgba(31,77,58,0.07), rgba(166,124,82,0.2)); }
.tool-visual svg { width: 100%; }
.hill-back { fill: rgba(31,77,58,0.16); }
.hill-front { fill: rgba(31,77,58,0.33); }
.forest { fill: var(--forest); }
.truck { fill: var(--forest-dark); }
.truck-window { fill: var(--cream); }
.wheel-hub, .log-end { fill: var(--timber); }
.log { fill: #745236; }
.coming-card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 420px; padding: 42px; background: rgba(255,253,248,0.55); border-style: dashed; }
.coming-card h3 { margin-top: 3px; }
.plus-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 28px; border: 1px solid var(--timber); border-radius: 13px; color: var(--timber); font-size: 2.2rem; font-weight: 300; }
.coming-card .text-link { margin-top: 12px; }

.values-section { padding: 104px 0; color: white; background: var(--forest-dark); }
.values-intro { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: 90px; margin-bottom: 64px; }
.values-intro .eyebrow { color: white; }
.values-intro > p { color: rgba(255,255,255,0.7); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,0.18); }
.values-grid article { min-height: 205px; padding: 30px 27px 0 0; }
.values-grid article + article { padding-left: 27px; border-left: 1px solid rgba(255,255,255,0.18); }
.value-number { color: var(--timber-light); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; }
.values-grid h3 { margin: 30px 0 9px; font-size: 1.08rem; }
.values-grid p { margin: 0; color: rgba(255,255,255,0.66); font-size: 0.92rem; }

.future-section { padding: 108px 0; background: var(--paper); }
.future-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(50px, 8vw, 110px); align-items: start; }
.future-heading { position: sticky; top: 40px; }
.future-story { max-width: 680px; }
.future-story p { margin: 0 0 22px; color: var(--muted); font-size: 1.04rem; }
.future-story .future-lead { color: var(--ink); font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.45; font-weight: 650; }
.future-story blockquote { margin: 40px 0 0; padding: 25px 0 25px 30px; border-left: 4px solid var(--timber); color: var(--forest); font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.35; font-weight: 800; }

.contact-section { position: relative; padding: 112px 0; overflow: hidden; color: white; background: var(--forest); }
.contact-section::after { content: ""; position: absolute; right: -8%; bottom: -55px; width: 46%; height: 200px; opacity: 0.12; background: radial-gradient(ellipse at center, transparent 0 47%, var(--cream) 48% 49%, transparent 50% 63%, var(--cream) 64% 65%, transparent 66%); transform: rotate(-8deg); pointer-events: none; }
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 0.78fr 1.22fr; align-items: start; gap: clamp(55px, 9vw, 120px); }
.contact-intro > p:not(.eyebrow) { color: rgba(255,255,255,0.78); }
.contact-intro .contact-note { padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.9rem; }
.suggestion-form { padding: 0 0 8px; color: white; border-top: 1px solid rgba(255,255,255,0.34); border-bottom: 1px solid rgba(255,255,255,0.22); }
.form-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0 28px; }
.form-heading span { color: var(--timber-light); font-size: 0.74rem; font-weight: 850; letter-spacing: 0.17em; text-transform: uppercase; }
.form-heading p { margin: 0; color: rgba(255,255,255,0.58); font-family: "Segoe Print", "Bradley Hand", cursive; font-size: 1rem; transform: rotate(-2deg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field-group { display: grid; gap: 8px; margin-bottom: 25px; }
.field-group label { color: rgba(255,255,255,0.88); font-weight: 750; font-size: 0.88rem; }
.field-group label span { color: rgba(255,255,255,0.5); font-weight: 500; }
.field-group input, .field-group textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,0.42); border-radius: 0; padding: 10px 1px 12px; color: white; background: transparent; font: inherit; transition: border-color 180ms ease, background 180ms ease; }
.field-group input { min-height: 50px; }
.field-group textarea { min-height: 118px; resize: vertical; line-height: 1.5; }
.field-group input:hover, .field-group textarea:hover, .field-group input:focus, .field-group textarea:focus { border-color: var(--timber-light); background: rgba(255,255,255,0.035); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-submit-row { display: flex; align-items: center; gap: 22px; padding: 2px 0 22px; }
.suggestion-form .button { flex: 0 0 auto; cursor: pointer; }
.suggestion-form .button:disabled { opacity: 0.62; cursor: wait; transform: none; }
.form-status { min-height: 1.5em; margin: 0; color: rgba(255,255,255,0.72); font-size: 0.88rem; }
.form-status[data-state="success"] { color: #d5ebd9; }
.form-status[data-state="error"] { color: #ffd4c8; }
.site-footer { padding: 34px 0; color: white; background: #061d16; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; }
.brand-footer .brand-mark, .brand-footer .brand-name, .brand-footer .brand-tagline { color: white; }
.brand-footer .brand-name > span, .brand-footer .brand-mark-accent { color: var(--timber-light); }
.footer-statement { margin: 0; color: var(--timber-light); font-family: "Segoe Print", "Bradley Hand", cursive; font-size: 1.2rem; line-height: 1.35; transform: rotate(-2deg); }
.footer-meta { text-align: right; color: rgba(255,255,255,0.66); font-size: 0.82rem; }
.footer-meta p { margin: 0 0 5px; }
.footer-meta a { color: white; text-underline-offset: 4px; }

@media (max-width: 1020px) {
  .header-inner { min-height: 76px; }
  .site-nav { gap: 21px; }
  .site-nav a { font-size: 0.86rem; }
  .login-button { display: none; }
  .hero { min-height: 600px; }
  .hero-note { display: none; }
  .section-heading, .values-intro { grid-template-columns: 1fr; gap: 20px; }
  .tool-card-featured { grid-template-columns: 1fr; }
  .tool-visual { min-height: 270px; padding-top: 0; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid article:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,0.18); }
  .values-grid article:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.18); }
  .future-inner { grid-template-columns: 1fr; gap: 30px; }
  .future-heading { position: static; }
  .contact-inner { gap: 45px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-statement { display: none; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 28px, 680px); }
  .header-inner { min-height: 70px; justify-content: space-between; }
  .brand-mark { width: 55px; }
  .brand-name { font-size: 1.26rem; }
  .brand-tagline { font-size: 0.4rem; }
  .menu-toggle { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; background: transparent; }
  .menu-toggle span:not(.sr-only) { width: 24px; height: 2px; background: var(--forest); transition: transform 180ms ease, opacity 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: absolute; inset: 70px 0 auto; display: grid; gap: 0; padding: 10px 20px 22px; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 18px 35px rgba(8,37,28,0.16); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity 180ms ease, transform 180ms ease, visibility 180ms; }
  .site-nav[data-open="true"] { visibility: visible; opacity: 1; transform: translateY(0); }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .site-nav .mobile-login { display: block; margin-top: 14px; padding: 12px 16px; border: 0; border-radius: 7px; background: var(--forest); color: white; text-align: center; font-weight: 750; }
  .hero { min-height: 660px; background-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,28,20,0.91), rgba(5,28,20,0.62)), linear-gradient(0deg, rgba(5,28,20,0.55), transparent); }
  .hero-inner { padding-block: 76px; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 4.7rem); }
  .hero-summary { font-size: 1rem; }
  .tools-section, .values-section { padding-block: 74px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card-copy, .coming-card { padding: 31px 26px; }
  .tool-visual { min-height: 220px; }
  .coming-card { min-height: 340px; }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid article { min-height: 160px; padding: 26px 0; }
  .values-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.18); }
  .values-grid h3 { margin-top: 20px; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-section { padding-block: 82px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; }
  .footer-meta { text-align: left; }
}

@media (max-width: 430px) {
  .brand-tagline { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .button { width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-heading, .form-submit-row { align-items: flex-start; flex-direction: column; }
  .form-heading { gap: 6px; }
  .form-submit-row { gap: 14px; }
  .coming-card .text-link { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
