/* Tramgo — folded motion / editorial studio */
:root {
    --orange: #ff6a00;
    --orange-dark: #e95400;
    --black: #171715;
    --dark: #141414;
    --paper: #f6f5f0;
    --white: #fff;
    --gray: #65655f;
    --line: #d6d5cf;
    --heading: "Space Grotesk", "Manrope", sans-serif;
    --body: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ease: 220ms cubic-bezier(.2,.7,.3,1);
    --header-height: 72px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { color: var(--black); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
img[hidden] { display: none; }
h1, h2, h3 { font-family: var(--heading); font-weight: 500; line-height: 1.1; letter-spacing: -.045em; }
h2 { font-size: clamp(38px, 4vw, 56px); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; }
.container { width: calc(100% - 64px); max-width: 1160px; margin-inline: auto; }
.section { padding-block: 100px; scroll-margin-top: var(--header-height); }
.skip-link { position: fixed; z-index: 2000; top: 12px; left: 12px; padding: 12px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* Compact navigation, with the complete existing logo */
.navbar { position: sticky; top: 0; z-index: 100; height: 72px; background: var(--paper); transition: background var(--ease), box-shadow var(--ease); }
.navbar.scrolled { background: rgba(246,245,240,.96); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.navbar-container { width: calc(100% - 64px); max-width: 1160px; height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; flex: 0 0 110px; align-items: center; margin-right: auto; }
.logo-img { width: 110px; height: auto; object-fit: contain; }
.navbar-menu { display: flex; align-items: center; gap: 22px; padding: 0; list-style: none; }
.nav-link { position: relative; font-size: 13px; font-weight: 500; white-space: nowrap; }
.nav-link::after, .text-link::after { content: ""; position: absolute; right: 0; bottom: -5px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--ease); }
.nav-link:hover::after, .text-link:hover::after { transform: scaleX(1); }
.nav-link.active { color:var(--orange-dark); }
.nav-link.active::after { transform:scaleX(1); }
.hamburger, .mobile-menu-cta { display: none; }
.btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 22px; padding: 0 22px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; font-weight: 600; line-height: 1.3; transition: color var(--ease), background var(--ease); }
.btn-primary { color: #fff; background: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); }
.btn span { font-size: 20px; transition: transform var(--ease); }
.btn:hover span { transform: translate(2px,-2px); }
.navbar-cta { min-height: 42px; padding-inline: 16px; font-size: 12px; }
.text-link { position: relative; display: inline-flex; min-height: 44px; align-items: center; gap: 15px; font-size: 13px; font-weight: 500; }

/* The folded surface is the hero, rather than a product diagram. */
.hero { position: relative; overflow: clip; }
.hero-layout { display: grid; grid-template-columns: 58% 42%; align-items: center; min-height: 576px; }
.hero-copy { position: relative; z-index: 2; padding-block: 65px 60px; }
.hero h1 { font-size: clamp(42px, 4.4vw, 62px); line-height: 1.12; letter-spacing: -.055em; }
.hero h1 span { display: inline-block; margin-left: 25px; color: var(--orange-dark); }
.hero-copy > p { max-width: 430px; margin-top: 28px; color: var(--gray); font-size: 15px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.hero-art { position: relative; height: 550px; align-self: center; }
.hero-ribbon { position:absolute; width:440px; max-width:none; height:auto; left:10px; top:55px; object-fit:contain; animation:mark-drift 14s ease-in-out infinite; }
.technical-grid { position: absolute; inset: 80px 0 60px; background-image: linear-gradient(#deddd633 1px, transparent 1px),linear-gradient(90deg,#deddd633 1px,transparent 1px); background-size: 48px 48px; border-block: 1px solid #deddd670; }
.art-coordinate { position: absolute; right: 0; top: 42px; font: 11px var(--body); letter-spacing: .18em; color: var(--gray); }
.art-caption { position: absolute; left: 35px; bottom: 15px; font-size: 10px; letter-spacing: .3em; }
.service-strip { min-height: 84px; border-block: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; text-transform: uppercase; font-family: var(--heading); font-size: 14px; font-weight: 500; letter-spacing: .07em; }
.service-strip i { font-style: normal; color: #afaea7; }

/* Services are linked editorial rows. */
.services { padding-bottom: 110px; }
.services-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 60px; margin-bottom: 55px; }
.services-intro p { max-width: 410px; color: var(--gray); font-size: 17px; }
.service-list { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-row { position: relative; display: grid; grid-template-columns: 48px minmax(0,1.25fr) minmax(0,1fr) 30px; align-items: center; gap: 24px; min-height: 108px; padding: 18px 8px; border-bottom: 1px solid var(--line); transition: background var(--ease); }
.service-row::before { content: ""; position: absolute; bottom: -1px; left: 8px; width: 24px; height: 2px; background: var(--orange); opacity: 0; transition: opacity var(--ease); }
.service-row:hover::before, .service-row:focus-visible::before { opacity: 1; }
.service-row:hover { background: #fff3e650; }
.service-number { font-family: var(--heading); font-size: 13px; color: #77766f; transition: color var(--ease); }
.service-row:hover .service-number { color: var(--orange-dark); }
.service-row h3 { font-size: clamp(22px,2.15vw,30px); letter-spacing: -.04em; }
.service-row p { font-size: 13px; color: var(--gray); }
.service-arrow { justify-self: end; font-size: 29px; font-weight: 400; transition: transform var(--ease); }
.service-row:hover .service-arrow { transform: translate(4px,-4px); }

/* Unboxed, connected typography on a dark surface. */
.approach { background: var(--dark); color: var(--paper); overflow: clip; }
.approach-copy { display: grid; grid-template-columns: 1.5fr 1fr; gap: 70px; align-items: end; }
.approach h2 { font-size: clamp(32px,3.4vw,48px); }
.approach h2 span { color: #9f9f97; }
.approach-copy p { max-width: 330px; font-size: 14px; color: #a6a69f; }
.type-network { position: relative; height: 360px; max-width: 1050px; margin: 60px auto 30px; isolation: isolate; }
.type-connections { position:absolute; z-index:0; inset:0; width:100%; height:100%; fill:none; stroke:#ff6a0066; stroke-width:1; }
.network-word { position:absolute; z-index:2; font-family:var(--heading); letter-spacing:-.035em; font-size:clamp(32px,4vw,56px); line-height:1; }
.word-b2b { left: 7%; top: 14%; }
.word-erp { left: 55%; top: 7%; color: #ff8941; }
.word-web { left: 24%; top: 44%; }
.word-auto { right: 0; top: 37%; font-size: clamp(24px,3vw,42px); }
.word-crm { left:2%; bottom:9%; color:#aaa9a2; }
.word-wa { right: 5%; bottom: 3%; font-size: clamp(28px,3.6vw,48px); }
.network-ribbon { position:absolute; width:360px; height:auto; left:37%; top:-45px; opacity:.05; transform:rotate(18deg); z-index:-1; }
.approach-note { color: #b4b4ad; font-size: 14px; border-left: 1px solid var(--orange); padding-left: 22px; margin-left: 25%; }

/* A sticky narrator next to a scroll-led process. */
.process-layout { display: grid; grid-template-columns: 35% minmax(0,65%); align-items: start; gap: 0; }
.process-heading { position: sticky; top: 120px; padding-right: 32px; }
.process-heading h2 { font-size: clamp(38px,3.8vw,53px); }
.process-progress { display: flex; gap: 12px; margin-top: 35px; }
.step-marker { display: grid; width: 38px; min-height: 44px; align-items: center; border-top: 2px solid var(--line); color: #7c7b74; font-size: 11px; transition: border-color var(--ease),color var(--ease); }
.step-marker.active { border-color: var(--orange); color: var(--orange-dark); }
.process-list { padding: 0; list-style: none; }
.process-step { display: grid; grid-template-columns: 85px minmax(0,1fr); gap: 25px; align-items: start; padding: 46px 0; min-height: 200px; border-top: 1px solid var(--line); }
.process-step:last-child { border-bottom: 1px solid var(--line); }
.step-number { font: 500 66px/1 var(--heading); color: transparent; -webkit-text-stroke: 1px #aaa99f; letter-spacing: -.06em; transition: color var(--ease),-webkit-text-stroke-color var(--ease); }
.process-step.is-active .step-number { color: var(--orange); -webkit-text-stroke-color: var(--orange); }
.process-step h3 { margin-bottom: 15px; font-size: 26px; text-transform: uppercase; }
.process-step p { max-width: 420px; color: var(--gray); font-size: 15px; }

/* Each reason stands as a statement, not as a feature card. */
.why { background: #eae9e2; }
.why-layout { display: grid; grid-template-columns: 25% 75%; }
.why h2 { font-size: 36px; }
.why-statements { list-style: none; padding: 0; }
.why-statement { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 22px; padding: 40px 0 50px; border-top: 1px solid #c8c7bf; }
.why-statement:first-child { padding-top: 0; border-top: 0; }
.why-statement:last-child { padding-bottom: 0; }
.statement-number { padding-top: 8px; color: #737269; font-size: 12px; }
.why-statement h3 { font-size: clamp(28px,3.1vw,42px); text-transform: uppercase; letter-spacing: -.055em; line-height: 1.13; }
.why-statement h3 span { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.why-statement p { max-width: 490px; margin-top: 22px; font-size: 14px; color: var(--gray); }

/* One full-width, deliberate moment of colour. */
.brand-break { overflow: clip; background: var(--orange); color: var(--black); }
.brand-break-inner { position: relative; min-height: 355px; padding-block: 34px; display: flex; align-items: center; }
.brand-break p { position: relative; z-index: 1; font: 500 clamp(60px,6.3vw,88px)/.94 var(--heading); letter-spacing: -.06em; text-transform: uppercase; }
.brand-break p span { margin-left: 95px; color: #fff3e9; }
.break-ribbon { position:absolute; width:500px; height:auto; right:-5%; top:-26%; opacity:.1; }

/* Editorial contact form. */
.contact { padding-block: 110px; border-top:0; }
.contact::before { content:none; }
.contact-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 90px; }
.contact h2 { font-size: clamp(40px,4.2vw,58px); }
.contact h2 span { color: var(--orange); }
.contact-copy > p { max-width: 390px; margin-top: 24px; color: var(--gray); font-size: 15px; }
.contact-details { display: grid; gap: 20px; margin-top: 40px; }
.contact-details > a, .contact-details address { display: grid; grid-template-columns: 82px 1fr; gap: 10px; font-style: normal; }
.contact-details span { color: var(--gray); font-size: 12px; padding-top: 3px; }
.contact-details strong { font-size: 14px; font-weight: 500; line-height: 1.7; }
.contact-details a:hover strong { color: var(--orange-dark); }
.contact-form { display: grid; gap: 25px; margin-top: 9px; scroll-margin-top: var(--header-height); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.form-group { min-width: 0; }
.form-group label { display: block; font-size: 13px; color: #55554e; }
.form-group em { font-style: normal; color: var(--orange-dark); }
.form-group input, .form-group select, .form-group textarea { width: 100%; max-width: 100%; border: 0; border-bottom: 1px solid #aaa99f; border-radius: 0; padding: 10px 0; color: var(--black); background: transparent; font-size: 16px; line-height: 1.6; outline: none; }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-bottom: 2px solid var(--orange); }
.contact-form .btn { justify-self: start; min-width: 140px; margin-top: 8px; }
.form-message { position: fixed; right: 20px; bottom: 20px; z-index: 150; max-width: min(400px,calc(100% - 40px)); padding: 18px; background: var(--dark); border-left: 3px solid var(--orange); color: #fff; font-size: 14px; }
.form-message-error { border-color: #e3453a; }
.privacy-note { margin:18px 0 0; color:#77746b; font-size:12px; line-height:1.5; }
.privacy-note a { color:inherit; text-decoration:underline; }

/* Closing brand statement. */
.footer { position: relative; overflow: clip; background: var(--dark); color: var(--paper); padding-top: 64px; }
.footer > .container { position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1fr 240px; gap: 50px; padding-bottom: 65px; }
.footer-logo-surface { display:inline-flex; align-items:center; gap:10px; margin-bottom:30px; }
.footer-mark { width:46px; height:44px; object-fit:contain; }
.footer-wordmark { display:flex; align-items:baseline; font:600 25px/1 var(--heading); letter-spacing:-.055em; }
.footer-wordmark b { color:#fff; font-weight:600; }
.footer-wordmark strong { color:var(--orange); font-weight:600; }
.footer-brand p { font: 400 clamp(30px,3.7vw,50px)/1.13 var(--heading); letter-spacing: -.04em; }
.footer-brand p span { color: #8c8c83; }
.footer-nav { display: grid; align-content: end; gap: 17px; font-size: 18px; }
.footer-nav a { width: fit-content; border-bottom: 1px solid transparent; transition: border-color var(--ease); }
.footer-nav a:hover { border-color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 26px; border-top: 1px solid #ffffff26; font-size: 12px; color: #b8b8b0; }
.footer-fold { position:absolute; bottom:-210px; right:-110px; width:580px; height:auto; opacity:.055; transform:rotate(18deg); }

/* Content remains readable without JS or animation support. */
.fade-up { opacity: 1; }
.reveal-ready { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease,transform 600ms ease; }
.reveal-ready.is-visible { opacity: 1; transform: none; }
@keyframes mark-drift { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-7px); } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,*::before,*::after { animation: none !important; transition: none !important; }
    .reveal-ready { opacity: 1; transform: none; }
}
