/* Ivan Ramirez Rodriguez · portfolio (desktop layout) */
:root {
  --ink: #18212E; --muted: #5A6575; --line: #E3E7ED; --accent: #9B2C2C; --band: #EEF2F6;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Source Sans 3', system-ui, sans-serif; --ui: 'Figtree', 'Source Sans 3', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--sans); font-size: 19px; line-height: 1.65; min-width: 1200px; }
a { color: var(--accent); }
a:hover { color: #742020; }
button { font: inherit; }
:focus-visible { outline: 3px solid #2F6FD6; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
[hidden] { display: none !important; }

/* header */
header.site { display: flex; justify-content: space-between; align-items: center; padding: 20px 80px; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; }
.site-right { display: flex; align-items: center; gap: 28px; }
nav { display: flex; gap: 8px; font-size: 17px; }
nav a { color: var(--muted); text-decoration: none; padding: 10px 8px; }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.lang { display: inline-flex; border: 1px solid #D5DBE3; border-radius: 999px; padding: 3px; }
.lang button { border: 0; border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; cursor: pointer; background: transparent; color: var(--ink); min-height: 44px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }

/* buttons */
.btn { display: inline-block; padding: 12px 20px; font-weight: 600; border-radius: 6px; text-decoration: none; }
.btn.dark { background: var(--ink); color: #FFFFFF; }
.btn.dark:hover { background: #2A3546; color: #FFFFFF; }
.btn.outline { border: 1.5px solid var(--ink); color: var(--ink); font-size: 17px; }
.btn.outline:hover { background: #F3F6F9; color: var(--ink); }

/* hero */
.hero { padding: 72px 80px 48px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: end; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: 68px; line-height: 1.02; letter-spacing: -0.02em; }
.hero-side p { margin: 0 0 18px; color: var(--muted); }

/* screenshot band */
.band { background: var(--band); padding: 48px 24px; }
.shot { border-radius: 16px; box-shadow: 0 30px 60px -36px rgba(24, 33, 46, .5); font-family: var(--ui); color: #1B2230; position: relative; overflow: hidden; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 24px; }
.caption { margin: 0; font-size: 15px; color: var(--muted); }
.viewer-ctl { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #C9D1DB; background: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.arrow:hover { border-color: var(--ink); }
.vdot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #9AA4B2; padding: 0; background: transparent; cursor: pointer; }
.vdot[aria-pressed="true"] { border: 0; background: var(--accent); }
.count { font-size: 15px; color: var(--muted); min-width: 48px; }

/* slide 1: session dashboard */
.dash { background: #E4E9F1; padding: 24px 14px 16px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; padding: 0 4px; }
.dash-title { font-size: 25px; line-height: 1.2; }
.dash-title span { color: #4B5565; }
.dash-sub { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 15px; color: #4B5565; }
.updated { display: inline-flex; align-items: center; gap: 6px; background: #FFFFFF; border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 600; color: #1B2230; }
.dash-tools { display: flex; gap: 10px; }
.dash-tools span { width: 46px; height: 46px; border-radius: 12px; background: #FFFFFF; border: 1px solid #D5DCE6; display: inline-flex; align-items: center; justify-content: center; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { background: #FFFFFF; border-radius: 16px; padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 18px; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #4B5565; }
.sdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; border: 2px solid #8A929E; background: #FFFFFF; }
.sdot.in { background: #1F7A4A; border-color: #1F7A4A; }
.sdot.done { background: #8A929E; }
.st { font-weight: 600; color: #3A4555; }
.st.in { color: #145C36; }
.eye { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.eye.on { border-radius: 50%; background: #DCE6FB; }
.ibtn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #D5DCE6; display: inline-flex; align-items: center; justify-content: center; background: #FFFFFF; flex-shrink: 0; }
.ibtn.sm { width: 30px; height: 30px; border-radius: 8px; }
.ibtn.round { border-radius: 50%; }
.crow { display: flex; justify-content: space-between; align-items: center; background: #F1F4F8; border-radius: 9px; padding: 9px 12px; font-size: 14px; font-weight: 600; margin-top: 8px; }
.crow.sm { padding: 8px 10px; margin-top: 0; }
.crow span[aria-hidden] { color: #4B5565; }
.pill { white-space: nowrap; display: inline-flex; border-radius: 999px; overflow: hidden; font-size: 12.5px; font-weight: 700; min-width: 128px; }
.pill .d, .pill .g { flex: 1; text-align: center; padding: 4px 10px; }
.pill .d { border-radius: 999px 0 0 999px; border: 1.5px solid; }
.pill .d.grn { background: #1E6B45; border-color: #1E6B45; color: #FFFFFF; }
.pill .d.yel { background: #E9B93A; border-color: #E9B93A; color: #1B2230; }
.pill .g { background: #FFFFFF; border: 1.5px solid; border-left: 0; border-radius: 0 999px 999px 0; }
.pill .g.ok { color: #1E6B45; border-color: #1E6B45; }
.pill .g.mid { color: #9A6A00; border-color: #9A6A00; }
.pill .g.low { color: #B42318; border-color: #B42318; }
.actions { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; margin-top: 2px; }
.cbtn { border: 1px solid #C6CCD5; background: #FFFFFF; color: #1B1F24; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 6px 11px; min-height: 32px; cursor: pointer; }
.cbtn.view { border-color: #1E5BB8; color: #1E5BB8; }
.cbtn.in { border-color: #1E5BB8; background: #1E5BB8; color: #FFFFFF; }
.cbtn.out { border-color: #ED6A2D; background: #ED6A2D; color: #FFFFFF; }
.split { display: inline-flex; border: 1px solid #C6CCD5; border-radius: 999px; overflow: hidden; }
.seg { border: 0; background: #FFFFFF; color: #1B1F24; font-size: 13px; font-weight: 600; padding: 6px 11px; cursor: pointer; min-height: 32px; }
.seg + .seg { border-left: 1px solid #C6CCD5; }
.seg.talked { background: #1F7A4A; color: #FFFFFF; }
.seg.doc { background: #8E3BC9; color: #FFFFFF; }
.note-prev { background: #F3F6F9; border-radius: 10px; padding: 8px 12px; font-size: 13px; line-height: 1.45; color: #3A4555; white-space: pre-wrap; }
.editor label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: #5C6470; }
.editor textarea { width: 100%; padding: 10px 12px; border: 1px solid #1E5BB8; border-radius: 12px; background: #F3F6F9; color: #1B1F24; font: inherit; font-size: 14px; font-weight: 400; resize: vertical; }
.editor-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }

/* slides 2–3: full card */
.modal-shot { background: #E4E9F1; padding: 28px; min-height: 760px; }
.ghost-grid { position: absolute; inset: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; opacity: .45; }
.ghost-grid div { background: #FFFFFF; border-radius: 16px; height: 170px; }
.modal-shot::after { content: ''; position: absolute; inset: 0; background: rgba(27, 34, 48, .18); }
.modal { position: relative; z-index: 1; width: 620px; margin: 0 auto; background: #FFFFFF; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(24, 33, 46, .45); padding: 22px 24px; }
.m-head { display: flex; justify-content: space-between; align-items: flex-start; }
.m-name { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; }
.m-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 13px; color: #4B5565; }
.tag { background: #EEF1F5; border-radius: 6px; padding: 2px 8px; font-weight: 700; color: #1B2230; }
.m-btns { display: flex; gap: 8px; }
.mtabs { display: flex; border-bottom: 1px solid #DCE2E9; margin: 16px 0 14px; }
.mtab { flex: 1; text-align: center; padding: 10px 0; font-size: 14px; font-weight: 500; color: #5C6470; }
.mtab.on { font-weight: 700; color: #1B2230; box-shadow: inset 0 -2px 0 #2F6FD6; }
.lps { display: flex; gap: 6px; margin-bottom: 12px; }
.lp { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid #CDD4DE; }
.lp.on { font-weight: 700; border: 1.5px solid #2F6FD6; background: #E5EEFC; color: #1E5BB8; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 16px; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav span { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #D5DCE6; display: inline-flex; align-items: center; justify-content: center; }
.cal-days, .cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cal-days { font-size: 12.5px; font-weight: 600; color: #5C6470; text-align: center; margin-bottom: 6px; }
.day { border-radius: 8px; padding: 6px 8px; font-size: 13px; min-height: 30px; border: 1px solid #DCE2E9; color: #8A929E; }
.day small { font-size: 11px; }
.day.out { border-color: #E6EAF0; color: #B4BCC8; }
.day.hatch { color: #5C6470; background: repeating-linear-gradient(135deg, #F1F4F8 0 6px, #E6EAF0 6px 12px); }
.day.in { background: #BDF0D4; color: #0F5132; border-color: #BDF0D4; }
.day.left { background: #ED6A2D; color: #FFFFFF; border-color: #ED6A2D; }
.day.abs { border: 1.5px solid #D9534F; color: #B42318; }
.day.today { border: 2px solid #1B2230; color: #1B2230; }
.day.up { border: 1.5px solid #8A929E; color: #1B2230; }
.day-detail { background: #F3F6F9; border-radius: 12px; padding: 14px 16px; margin-top: 12px; font-size: 14px; }
.watch { background: #FBEAEA; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.watch-h { font-size: 13px; font-weight: 700; color: #B42318; }
.watch-h span { color: #5C6470; font-weight: 600; margin-left: 6px; }
.chips { display: flex; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
.chip { border: 1px solid #CDD4DE; border-radius: 999px; padding: 4px 12px; color: #4B5565; }
.chip.on { border: 1.5px solid #1B2230; color: #1B2230; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.dot.blue { background: #2F6FD6; } .dot.red { background: #C0392B; }
.add-note { border: 1.5px dashed #CDD4DE; border-radius: 12px; padding: 10px 14px; font-size: 14px; color: #6B7482; margin: 0 0 14px 18px; }
.timeline { border-left: 2px solid #DCE2E9; margin-left: 5px; padding-left: 16px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.tl { position: relative; }
.tl .dot { position: absolute; left: -22px; top: 5px; width: 9px; height: 9px; margin: 0; }
.tl-h { font-size: 12.5px; font-weight: 700; }
.tl-h span { color: #6B7482; font-weight: 600; margin-left: 6px; }

/* slide 4: student check-in */
.kiosk { background: #11151C; height: 760px; color: #F2F4F7; }
.k-brand { position: absolute; left: 72px; top: 48px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.k-main { position: absolute; left: 72px; top: 260px; width: 520px; }
.k-h { font-size: 54px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 18px; }
.k-sub { font-size: 20px; color: #9AA6B6; line-height: 1.5; }
.k-btn { display: inline-block; margin-top: 30px; background: #3D63DD; color: #FFFFFF; font-weight: 700; font-size: 18px; border-radius: 999px; padding: 16px 30px; }
.k-clock { position: absolute; left: 72px; bottom: 44px; font-size: 48px; font-weight: 800; font-variant-numeric: tabular-nums; }
.k-clock span { display: block; font-size: 15px; color: #9AA6B6; font-weight: 600; }
.k-mark { position: absolute; right: -40px; top: 30px; }

/* case study */
.story { padding: 72px 80px; display: grid; grid-template-columns: 260px minmax(0, 1fr) 260px; gap: 64px; }
.facts { font-size: 16px; }
.facts > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts > div:first-child { padding-top: 0; }
.facts > div:last-child { border-bottom: 0; }
.story h2, .building h2, .about h2 { font-family: var(--serif); font-weight: 600; font-size: 32px; margin-bottom: 12px; }
.story article p { margin: 0 0 16px; }
.story article p:last-child { margin: 0; }
.story article h2 { margin-top: 20px; }
.story article h2:first-child { margin-top: 0; }
.numbers { font-size: 16px; border-top: 3px solid var(--accent); padding-top: 16px; align-self: start; }
.num { font-family: var(--serif); font-size: 56px; font-weight: 600; line-height: 1; }
.numbers .muted { margin-bottom: 20px; }
.numbers .muted:last-child { margin-bottom: 0; }

/* engineer / designer */
.lens { padding: 0 80px 72px; }
.lens-head { border-top: 1px solid var(--line); padding-top: 56px; display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.lens-head h2 { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.1; }
.lens-tabs { display: flex; gap: 28px; }
.lens-tabs button { border: 0; background: transparent; padding: 6px 2px; font-family: var(--serif); font-size: 26px; font-weight: 500; color: #8A93A0; cursor: pointer; }
.lens-tabs button[aria-selected="true"] { font-weight: 600; color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.lens-panel.eng { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; }
.lede-lg { margin: 0 0 32px; font-size: 21px; max-width: 64ch; }
.items { display: grid; gap: 32px 48px; }
.items.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.items.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.items.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.item { border-top: 3px solid var(--accent); padding-top: 14px; }
.item h3 { font-size: 20px; margin-bottom: 6px; }
.item p { margin: 0; color: var(--muted); font-size: 17px; }
.flow { background: #F3F6F9; border-radius: 12px; padding: 22px; font-size: 16px; }
.flow > .strong { margin-bottom: 12px; font-weight: 700; }
.flow-box { background: #FFFFFF; border: 1px solid #DCE2E9; border-radius: 10px; padding: 10px 12px; margin-bottom: 4px; }
.flow-box .muted { font-size: 14px; }
.flow-box.end { background: var(--ink); color: #FFFFFF; border-color: var(--ink); margin-bottom: 0; }
.flow-box.end div:last-child { color: #C9D3E3; font-size: 14px; }
.flow-arrow { text-align: center; color: #9AA4B2; line-height: 1; margin-bottom: 4px; }
.stack { margin-top: 20px; color: var(--muted); font-size: 16px; }
.stack .strong { color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.process { background: #F3F6F9; border-radius: 16px; padding: 28px; margin-bottom: 48px; }
.process > .strong { font-weight: 700; margin-bottom: 18px; }
.proc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.proc-grid > div > .strong { margin-top: 12px; }
.proc-grid .muted { font-size: 16px; }
.mini { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-family: var(--ui); font-size: 13px; color: #1B2230; }
.mini-name { font-weight: 700; margin-bottom: 2px; }
.mini-row { display: flex; justify-content: space-between; align-items: center; background: #F3F6F9; border-radius: 8px; padding: 6px 8px; margin-top: 6px; font-weight: 600; }
.mini .pill { min-width: 0; font-size: 11px; }
.mini .pill .d, .mini .pill .g { padding: 2px 8px; }
.gtags { display: inline-flex; gap: 4px; }
.gtags span { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #E8ECF1; }
.ltr { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.ltr.ok { background: #E3EFE8; color: #1E6B45; }
.ltr.bad { background: #FBE7E4; color: #B42318; }
.chosen { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; margin-bottom: 4px; }

.next > a { margin-left: auto; display: block; width: max-content; }
.next { border-top: 1px solid var(--line); margin: 0 80px; padding: 32px 0 80px; }

/* about */
.about { padding: 72px 80px 64px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 80px; }
.about h1, .contact h1 { font-family: var(--serif); font-weight: 600; font-size: 60px; line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 28px; }
.about p { margin: 0 0 18px; }
.about h2 { font-size: 28px; margin: 12px 0 16px; }
.about h2.gap { margin-top: 40px; }
.exp { padding: 14px 0; border-top: 1px solid var(--line); }
.exp.last { border-bottom: 1px solid var(--line); }
.exp .muted:first-child { font-size: 16px; }
.exp .muted:last-child { font-size: 17px; }
.building { padding: 56px 80px 80px; border-top: 1px solid var(--line); }
.building h2 { font-size: 28px; margin-bottom: 24px; }

/* contact */
.contact { padding: 88px 80px 112px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.contact h1 { margin-bottom: 24px; }
.contact p { margin: 0 0 16px; }
.rows { border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row:hover .row-h { color: var(--accent); }
.row-h { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.row-v { color: var(--accent); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .arrow, .cbtn, .seg { transition: background-color .15s, border-color .15s, color .15s; }
}
