/* Code Rent Co., Ltd. — company profile, built from mockup a "travel document"
   (itpay/design/coderent/mockups/a-*.png, owner pick 2026-11-10).
   Colours: the company's own logo + 2013 banners (Dropbox/coderent), sampled against the mockup.
   Type: Plus Jakarta Sans (Latin) + Anuphan (Thai), self-hosted. */

@font-face { font-family: "Plus Jakarta Sans"; src: url(/static/fonts/jakarta.woff2) format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anuphan"; src: url(/static/fonts/anuphan-thai.woff2) format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }

:root {
  color-scheme: light;
  --blue: #0061A5;       /* logo blue: header, history band, footer, Safari bar (L* 40) */
  --blue-deep: #004E86;
  --navy: #0A2C6B;       /* headings */
  --orange: #E75204;     /* logo orange: large text and graphics only (3.7:1 on white) */
  --sky: #DCEFFD;        /* brands band */
  --sky-line: #B9D9F1;
  --stamp: #3F7FC0;
  --text: #24324D;
  --muted: #4A5878;
  --line: #D8E3EE;
  --white: #FFFFFF;
  --font: "Plus Jakarta Sans", "Anuphan", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--blue); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--blue); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; }
:lang(th) { line-height: 1.75; }
main { background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { letter-spacing: 0; font-weight: 700; line-height: 1.3; }
p, ul, ol, dl, dd { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.i { width: 1.1em; height: 1.1em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--white); color: var(--blue); padding: 10px 14px; z-index: 30; border-radius: 6px; }
.skip:focus { top: 12px; }

.kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
:lang(th) .kicker { font-size: .9375rem; letter-spacing: 0; text-transform: none; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.625rem); line-height: 1.12; }
.sec-lead { margin-top: 16px; color: var(--muted); max-width: 38ch; }

/* Header */
.top { background: var(--blue); color: var(--white); position: sticky; top: 0; z-index: 20; }
.top-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; min-height: 64px; }
.mark { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; color: var(--white); text-decoration: none; line-height: 1; }
.nav { display: flex; justify-content: center; gap: 40px; font-size: 1rem; font-weight: 500; }
.nav a { color: var(--white); text-decoration: none; padding: 8px 0; }
.nav a:hover { text-decoration: underline; }
.lang { display: inline-flex; padding: 10px 8px; margin: -10px -8px; justify-self: end; }
.lang img { display: block; width: 28px; height: 21px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.top :focus-visible { outline-color: var(--white); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--white); padding: clamp(48px, 7vw, 96px) 0 clamp(150px, 17vw, 260px); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.04; letter-spacing: -.035em; }
:lang(th) .hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
.hero-alt { margin-top: 10px; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 600; color: var(--navy); }
.hero-alt:lang(en) { font-weight: 700; letter-spacing: -.01em; }
.pn { letter-spacing: -.1em; margin-left: -.06em; }
.ph { white-space: nowrap; }
.lead { margin-top: 22px; max-width: 46ch; font-size: 1.1875rem; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 30px; border-radius: 8px;
  font-size: 1.1875rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .15s var(--ease), color .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-orange, .btn-solid { background: var(--orange); color: var(--white); }
.btn-orange:hover, .btn-solid:hover { background: #CC4700; }
.btn-line { border: 2px solid var(--blue); color: var(--blue); background: var(--white); }
.btn-line:hover { background: var(--blue); color: var(--white); }

.route { position: absolute; z-index: 3; top: 6px; left: 26%; width: min(62vw, 940px); color: var(--stamp); pointer-events: none; }
.route-text { font: 700 13px/1 var(--font); letter-spacing: .22em; fill: var(--stamp); }
.route-plane { fill: var(--blue); }

/* Boarding pass */
.pass { display: grid; grid-template-columns: minmax(0, 1fr) 128px; background: var(--white); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(10,44,107,.08), 0 24px 48px -18px rgba(10,44,107,.32); transform: rotate(-2deg); margin-top: clamp(56px, 6.5vw, 100px); }
.pass-main { position: relative; overflow: hidden; padding: 26px 28px 24px; border-radius: 18px 0 0 18px; }
.pass-map { position: absolute; z-index: 0; right: -40px; top: 54px; width: 420px; max-width: none; opacity: .35; pointer-events: none; }
.pass-main > :not(.pass-map) { position: relative; z-index: 1; }
.pass-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.pass-brand { font-weight: 800; font-size: 1rem; color: var(--navy); line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.pass-brand span, .pass-title span { display: block; font-size: .625rem; font-weight: 600; letter-spacing: .16em; color: var(--muted); margin-top: 4px; }
.pass-title { text-align: right; font-weight: 800; font-size: 1.125rem; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; }
:lang(th) .pass-title { text-transform: none; letter-spacing: 0; }
:lang(th) .pass-brand span, :lang(th) .pass-title span { letter-spacing: .04em; font-size: .75rem; }
.pass-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 22px 0 20px; }
.pass-route p { display: grid; }
.pass-route strong { font-size: clamp(1.75rem, 2.9vw, 2.5rem); font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
:lang(th) .pass-route strong { text-transform: none; letter-spacing: 0; line-height: 1.2; }
.pass-k { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
:lang(th) .pass-k { letter-spacing: .02em; font-size: .8125rem; }
.pass-route p .pass-k:first-child { margin-bottom: 4px; }
.pass-route p .pass-k:last-child { margin-top: 6px; }
.pass-line { display: flex; justify-content: center; align-items: center; height: 26px; color: var(--blue); font-size: 26px;
  background: repeating-linear-gradient(90deg, var(--sky-line) 0 6px, transparent 6px 12px) center / 100% 2px no-repeat; }
.pass-line .i { background: var(--white); padding: 0 4px; width: 34px; height: 26px; }
.pass-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pass-facts > div { padding: 0 12px; }
.pass-office { grid-column: 1 / -1; padding: 0 0 14px !important; border-bottom: 1px solid var(--line); }
.pass-facts > div:nth-child(2) { padding-left: 0; }
.pass-facts > div:nth-child(n+3) { box-shadow: inset 1px 0 0 var(--line); }
.pass-facts dt { font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
:lang(th) .pass-facts dt { font-size: .75rem; letter-spacing: 0; }
.pass-facts dd { font-weight: 700; color: var(--navy); font-size: .9375rem; }
.pass-office address { font-style: normal; font-weight: 600; font-size: .9375rem; line-height: 1.5; color: var(--navy); }
.pass-stub { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px; padding: 26px 16px 22px;
  background: repeating-linear-gradient(180deg, var(--sky-line) 0 7px, transparent 7px 14px) left top / 2px 100% no-repeat; }
.pass-globe { color: var(--blue); font-size: 40px; display: inline-flex; }
.pass-stub ul { list-style: none; padding: 0; display: grid; gap: 6px; text-align: center; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
:lang(th) .pass-stub ul { letter-spacing: 0; font-size: .875rem; text-transform: none; }
.barcode { width: 112px; height: 40px; color: var(--navy); }

/* Stamps (decoration, wide screens only) */
.stamp { position: absolute; z-index: 1; color: var(--stamp); pointer-events: none; }
.stamp-rect { display: grid; justify-items: center; gap: 2px; left: max(24px, calc(50% - 680px)); bottom: clamp(56px, 6vw, 96px); padding: 10px 18px 12px;
  border: 2.5px solid currentColor; border-radius: 8px; outline: 1.5px solid currentColor; outline-offset: 3px; transform: rotate(-12deg); opacity: .75;
  font-weight: 800; font-size: .875rem; letter-spacing: .18em; text-transform: uppercase; line-height: 1.2; }
.stamp-big { font-size: 1rem; letter-spacing: .12em; margin-top: 4px; }
.stamp-round { right: max(24px, calc(50% - 690px)); bottom: clamp(70px, 8vw, 130px); width: 132px; height: 132px; transform: rotate(10deg); opacity: .7; }
.stamp-round text { font: 800 10.5px/1 var(--font); letter-spacing: .14em; fill: currentColor; }
.stamp-plane { position: absolute; z-index: 1; right: calc(max(24px, calc(50% - 690px)) + 47px); bottom: calc(clamp(70px, 8vw, 130px) + 48px); font-size: 36px; color: var(--stamp); opacity: .75; transform: rotate(10deg); }
.skyline { position: absolute; z-index: 0; left: 0; bottom: 0; width: 100%; min-width: 900px; max-width: none; height: auto; opacity: .72; }

/* Brands */
.brands { background: var(--sky); padding: clamp(56px, 7vw, 88px) 0; }
.brands-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.brands .sec-head { padding-right: 40px; }
.brand { padding: 6px 40px; box-shadow: inset 1px 0 0 var(--sky-line); }
.brand h3 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.1; }
.brand p { margin-top: 14px; color: var(--text); }
.brand a { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--blue); }
.brand a .i { color: var(--orange); }

/* What we do */
.work { background: var(--white); padding: clamp(64px, 8vw, 104px) 0; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.work-list { list-style: none; padding: 0; }
.work-list li { display: grid; grid-template-columns: 52px minmax(0, 15rem) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.work-list li:first-child { padding-top: 4px; }
.num { font-size: 1.25rem; font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; }
.work-list h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; }
.work-list p { color: var(--muted); }

/* History */
.history { background: var(--blue); color: var(--white); padding: clamp(64px, 8vw, 96px) 0; }
.history h2 { color: var(--white); }
.history .kicker { color: #CFE6F8; }
.history .sec-lead { color: #E3EEF7; }
.history-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.stops { list-style: none; padding: 2px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 6px, transparent 6px 12px) 0 13px / 100% 2px no-repeat; }
.dot { display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--white); margin-bottom: 18px; }
.year { display: block; font-size: 1.625rem; font-weight: 800; line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stops p { color: #E3EEF7; font-size: .9375rem; line-height: 1.5; }

/* Contact */
.contact { background: var(--white); padding: clamp(64px, 8vw, 96px) 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); align-items: center; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; font-size: 1.1875rem; font-weight: 600; color: var(--navy); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.ci { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--white); flex: none; }
.ci .i { width: 22px; height: 22px; }
.map-link { margin-top: 22px; padding-left: 60px; font-weight: 600; color: var(--blue); }
.contact-art { position: relative; }
.contact-art img { display: block; width: 100%; }
.contact-route { position: absolute; left: 0; top: 10%; width: 100%; height: auto; color: var(--stamp); }
.contact-plane { position: absolute; right: 2%; top: 12%; font-size: 30px; color: var(--blue); transform: rotate(-20deg); }
.contact-stamp { position: absolute; right: 18%; top: 34%; transform: rotate(-10deg); color: var(--stamp); font-weight: 800; font-size: .8125rem;
  letter-spacing: .18em; text-transform: uppercase; text-align: center; line-height: 1.6; opacity: .85; }

/* Privacy / 404 */
.doc { padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); }
.doc-inner { max-width: 760px; }
.doc h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.1; }
.doc h2 { font-size: 1.375rem; margin-top: 40px; }
.doc p, .doc ul { margin-top: 12px; max-width: 68ch; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a:not(.btn) { color: var(--blue); }
.doc-date { color: var(--muted); }
.doc-company { margin-top: 48px !important; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }

/* Footer */
.foot { background: var(--blue); color: var(--white); padding: 34px 0; }
.foot-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 32px; }
.foot-mark { justify-self: start; font-size: 1.625rem; font-weight: 800; letter-spacing: -.03em; color: var(--white); text-decoration: none; }
.foot-link { color: var(--white); font-size: .9375rem; }
.foot-copy { justify-self: end; font-size: .9375rem; color: #E3EEF7; }
.foot :focus-visible { outline-color: var(--white); }

@media (max-width: 1200px) {
  .stamp, .stamp-plane { display: none; }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pass { max-width: 640px; transform: none; margin-top: 0; }
  .route { display: none; }
  .brands-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .brands .sec-head { grid-column: 1 / -1; padding-right: 0; }
  .brand:nth-of-type(1) { box-shadow: none; padding-left: 0; }
  .work-grid, .history-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact .sec-head { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top-inner { grid-template-columns: auto 1fr; }
  .pass { grid-template-columns: 1fr; }
  .pass-main { border-radius: 18px 18px 0 0; padding: 22px 20px 20px; }
  .pass-stub { flex-direction: row; flex-wrap: wrap; justify-content: space-between; padding: 18px 20px 20px;
    background: repeating-linear-gradient(90deg, var(--sky-line) 0 7px, transparent 7px 14px) left top / 100% 2px no-repeat; }
  .pass-stub ul { grid-auto-flow: column; gap: 14px; font-size: .6875rem; }
  .pass-globe { display: none; }
  .barcode { width: 100%; height: 34px; }
  .brands-grid { grid-template-columns: 1fr; }
  .brand, .brand:nth-of-type(1) { padding: 24px 0 0; box-shadow: inset 0 1px 0 var(--sky-line); }
  .work-list li { grid-template-columns: 40px minmax(0, 1fr); row-gap: 4px; }
  .work-list p { grid-column: 2; }
  .stops { grid-template-columns: 1fr; gap: 26px; padding-left: 44px;
    background: repeating-linear-gradient(180deg, rgba(255,255,255,.55) 0 6px, transparent 6px 12px) 11px 0 / 2px 100% no-repeat; }
  .stops li { position: relative; }
  .dot { position: absolute; left: -44px; top: 0; margin: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-art { max-width: 420px; }
  .foot-inner { grid-template-columns: 1fr auto; }
  .foot-copy { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .actions .btn { flex: 1 1 100%; }
  .pass-route strong { font-size: 1.75rem; }
  .pass-route { gap: 10px; }
  .hero { padding-bottom: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
